Re: [patch 6/6] PS3: Add os-area database routines

2007-10-09 Thread Geert Uytterhoeven
On Mon, 8 Oct 2007, Ranulf Doswell wrote: On 08/10/2007, Geoff Levand [EMAIL PROTECTED] wrote: How do we go about claiming one of these OS_AREA_DB_OWNER_ keys? I'd very much like to use this functionality in my python-ps3 games library. It sounds like you should be storing your info in

Re: [patch 6/6] PS3: Add os-area database routines

2007-10-09 Thread Ranulf Doswell
On 09/10/2007, Geert Uytterhoeven [EMAIL PROTECTED] wrote: On Mon, 8 Oct 2007, Ranulf Doswell wrote: However, in this case the only data required is a single identifier used to identify one PS3 from another, and in fact this single 64-bit token can be shared amongst many other

Re: [patch 6/6] PS3: Add os-area database routines

2007-10-08 Thread Geert Uytterhoeven
On Sat, 6 Oct 2007 [EMAIL PROTECTED] wrote: --- a/arch/powerpc/platforms/ps3/os-area.c +++ b/arch/powerpc/platforms/ps3/os-area.c @@ -112,10 +114,91 @@ struct os_area_params { u8 _reserved_5[8]; }; +/** + * struct os_area_db - Shared flash memory database. + * @magic_num: Always

Re: [patch 6/6] PS3: Add os-area database routines

2007-10-08 Thread Geert Uytterhoeven
On Sat, 6 Oct 2007 [EMAIL PROTECTED] wrote: --- a/arch/powerpc/platforms/ps3/os-area.c +++ b/arch/powerpc/platforms/ps3/os-area.c +static int db_get_video_mode(const struct os_area_db *db, + unsigned int *video_mode) ^^ +{ + return db_get_64(db,

Re: [patch 6/6] PS3: Add os-area database routines

2007-10-08 Thread Ranulf Doswell
On 06/10/2007, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: enum os_area_db_owner { OS_AREA_DB_OWNER_ANY = -1, OS_AREA_DB_OWNER_NONE = 0, OS_AREA_DB_OWNER_PROTOTYPE = 1, OS_AREA_DB_OWNER_LINUX = 2, OS_AREA_DB_OWNER_PETITBOOT = 3, OS_AREA_DB_OWNER_MAX = 32,

Re: [patch 6/6] PS3: Add os-area database routines

2007-10-08 Thread Geoff Levand
Ranulf Doswell wrote: On 06/10/2007, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: enum os_area_db_owner { OS_AREA_DB_OWNER_ANY = -1, OS_AREA_DB_OWNER_NONE = 0, OS_AREA_DB_OWNER_PROTOTYPE = 1, OS_AREA_DB_OWNER_LINUX =

Re: [patch 6/6] PS3: Add os-area database routines

2007-10-08 Thread Geoff Levand
Ranulf Doswell wrote: On 08/10/2007, *Geoff Levand* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: How do we go about claiming one of these OS_AREA_DB_OWNER_ keys? I'd very much like to use this functionality in my python-ps3 games library. It sounds like you should

Re: [patch 6/6] PS3: Add os-area database routines

2007-10-08 Thread Geoff Levand
Geert Uytterhoeven wrote: On Sat, 6 Oct 2007 [EMAIL PROTECTED] wrote: --- a/arch/powerpc/platforms/ps3/os-area.c +++ b/arch/powerpc/platforms/ps3/os-area.c @@ -112,10 +114,91 @@ struct os_area_params { u8 _reserved_5[8]; }; +/** + * struct os_area_db - Shared flash memory

Re: [patch 6/6] PS3: Add os-area database routines

2007-10-08 Thread Geoff Levand
Geert Uytterhoeven wrote: On Sat, 6 Oct 2007 [EMAIL PROTECTED] wrote: --- a/arch/powerpc/platforms/ps3/os-area.c +++ b/arch/powerpc/platforms/ps3/os-area.c +static int db_get_video_mode(const struct os_area_db *db, +unsigned int *video_mode) ^^ +{ +return

[patch 6/6] PS3: Add os-area database routines

2007-10-06 Thread geoffrey . levand
Add support for a simple tagged database in the PS3 flash rom os-area. The database allows the flash rom os-area to be shared between a bootloder and installed operating systems. The application ps3-flash-util or the library libps3-utils from the ps3-utils package can be used for userspace