[Cbe-oss-dev] [patch 24/24] petitboot: Add PS3 ncurses CUI program

Geert Uytterhoeven Geert.Uytterhoeven at sonycom.com
Fri Apr 17 22:37:55 EST 2009


On Sun, 12 Apr 2009, Geoff Levand wrote:
> +	i = pmenu_item_init(m, 1, "480i    (576 x 384)", NULL);
> +	i->on_execute = ps3_svm_cb;
> +	i->data = (void *)1;
> +
> +	i = pmenu_item_init(m, 2, "480p    (576 x 384)", NULL);
> +	i->on_execute = ps3_svm_cb;
> +	i->data = (void *)2;
> +
> +	i = pmenu_item_init(m, 3, "576i    (576 x 460)", NULL);
> +	i->on_execute = ps3_svm_cb;
> +	i->data = (void *)6;
> +
> +	i = pmenu_item_init(m, 4, "576p    (576 x 460)", NULL);
> +	i->on_execute = ps3_svm_cb;
> +	i->data = (void *)7;
> +
> +	i = pmenu_item_init(m, 5, "720p   (1124 x 644)", NULL);
> +	i->on_execute = ps3_svm_cb;
> +	i->data = (void *)3;
> +
> +	i = pmenu_item_init(m, 6, "1080i  (1688 x 964)", NULL);
> +	i->on_execute = ps3_svm_cb;
> +	i->data = (void *)4;
> +
> +	i = pmenu_item_init(m, 7, "1080p  (1688 x 964)", NULL);
> +	i->on_execute = ps3_svm_cb;
> +	i->data = (void *)5;
> +
> +	i = pmenu_item_init(m, 8, "wxga   (1280 x 768)", NULL);
> +	i->on_execute = ps3_svm_cb;
> +	i->data = (void *)11;
> +
> +	i = pmenu_item_init(m, 9, "sxga   (1280 x 1024)", NULL);
> +	i->on_execute = ps3_svm_cb;
> +	i->data = (void *)12;
> +
> +	i = pmenu_item_init(m, 10, "wuxga  (1920 x 1200)", NULL);
> +	i->on_execute = ps3_svm_cb;
> +	i->data = (void *)13;

If you want to make this part of the code more platform-independent, you can
read the list of video modes from /sys/class/graphics/fb0/modes.
To switch to a video mode, just write its corresponding line to
/sys/class/graphics/fb0/mode.

With kind regards,

Geert Uytterhoeven
Software Architect

Sony Techsoft Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

Phone:    +32 (0)2 700 8453
Fax:      +32 (0)2 700 8622
E-mail:   Geert.Uytterhoeven at sonycom.com
Internet: http://www.sony-europe.com/

A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010



More information about the cbe-oss-dev mailing list