diff options
Diffstat (limited to 'ui/common/ps3.h')
-rw-r--r-- | ui/common/ps3.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/ui/common/ps3.h b/ui/common/ps3.h new file mode 100644 index 0000000..8a7fe1c --- /dev/null +++ b/ui/common/ps3.h @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2009 Sony Computer Entertainment Inc. + * Copyright 2009 Sony Corp. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#if !defined(_PB_COMMON_PS3_H) +#define _PB_COMMON_PS3_H + +#include <stdint.h> + +int ps3_get_video_mode(unsigned int *mode_id); +int ps3_set_video_mode(unsigned int mode_id); + +/** + * enum ps3_flash_flags + * @ps3_flag_telnet: Allow telnet connections. System use. + */ + +enum ps3_flash_flags { + ps3_flag_telnet = 1, +}; + +/** + * struct ps3_flash_values - Values from PS3 flash memory. + * @default_item: The default menu item. + * @video_mode: The default video_mode. + * @flags: Logical OR of enum ps3_flash_flags. + */ + +struct ps3_flash_values { + uint32_t default_item; + uint16_t video_mode; + /* uint16_t flags; */ +}; + +int ps3_flash_get_values(struct ps3_flash_values *values); +int ps3_flash_set_values(const struct ps3_flash_values *values); + +#endif |