diff options
author | Geoff Levand <geoffrey.levand@am.sony.com> | 2009-03-25 12:36:03 +0000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2009-03-30 21:43:28 +1100 |
commit | ea45e832b0d3e4a6e8c63f6a1c4741795b0b33dd (patch) | |
tree | a5a6a06ad8be53793a65244e70ce441275403699 /ui/common/ps3.h | |
parent | 47a9f94bb346817b6767d5dac578a43beee47c1f (diff) | |
download | talos-petitboot-ea45e832b0d3e4a6e8c63f6a1c4741795b0b33dd.tar.gz talos-petitboot-ea45e832b0d3e4a6e8c63f6a1c4741795b0b33dd.zip |
PS3 platform routines
Add new files ui/common/ps3.h and ui/common/ps3.c with
platform specific routines to access the PS3 flash
memory and to get and set the PS3 video mode.
The flash routines use the ps3-utils library.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
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 |