2 * Copyright (C) 2009 Sony Computer Entertainment Inc.
3 * Copyright 2009 Sony Corp.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #if !defined(_PB_COMMON_PS3_H)
20 #define _PB_COMMON_PS3_H
24 int ps3_get_video_mode(unsigned int *mode_id);
25 int ps3_set_video_mode(unsigned int mode_id);
28 * enum ps3_flash_flags
29 * @ps3_flag_telnet: Allow telnet connections. System use.
32 enum ps3_flash_flags {
37 ps3_timeout_forever = 255,
41 * struct ps3_flash_values - Values from PS3 flash memory.
42 * @default_item: The default menu item.
43 * @timeout: The timeout in seconds.
44 * @video_mode: The default video_mode.
45 * @flags: Logical OR of enum ps3_flash_flags.
48 struct ps3_flash_values {
49 uint32_t default_item;
55 static const struct ps3_flash_values ps3_flash_defaults = {
58 .timeout = ps3_timeout_forever,
61 int ps3_flash_get_values(struct ps3_flash_values *values);
62 int ps3_flash_set_values(const struct ps3_flash_values *values);