Author: mcayland Date: Sat Jul 27 12:14:19 2013 New Revision: 1174 URL: http://tracker.coreboot.org/trac/openbios/changeset/1174
Log: packages: rename video.c to molvideo.c ready for MOL-specific video routines
While we are here, remove the INSTALL_OPEN flag since this is now handled by is-install (removing the "open is not unique" warning on the serial console during startup).
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk
Added: trunk/openbios-devel/packages/molvideo.c - copied, changed from r1173, trunk/openbios-devel/packages/video.c Deleted: trunk/openbios-devel/packages/video.c Modified: trunk/openbios-devel/packages/build.xml
Modified: trunk/openbios-devel/packages/build.xml ============================================================================== --- trunk/openbios-devel/packages/build.xml Sat Jul 27 12:14:17 2013 (r1173) +++ trunk/openbios-devel/packages/build.xml Sat Jul 27 12:14:19 2013 (r1174) @@ -11,7 +11,7 @@ <object source="nvram.c"/> <object source="pc-parts.c" condition="PC_PARTS"/> <object source="sun-parts.c" condition="SUN_PARTS"/> - <object source="video.c"/> + <object source="molvideo.c"/> <object source="xcoff-loader.c" condition="LOADER_XCOFF"/> </library>
Copied and modified: trunk/openbios-devel/packages/molvideo.c (from r1173, trunk/openbios-devel/packages/video.c) ============================================================================== --- trunk/openbios-devel/packages/video.c Sat Jul 27 12:14:17 2013 (r1173, copy source) +++ trunk/openbios-devel/packages/molvideo.c Sat Jul 27 12:14:19 2013 (r1174) @@ -29,11 +29,11 @@ /* OF methods */ /************************************************************************/
-DECLARE_NODE( video, INSTALL_OPEN, 0, "Tdisplay" ); +DECLARE_NODE( video, 0, 0, "Tdisplay" );
/* ( -- width height ) (?) */ static void -video_dimensions( void ) +molvideo_dimensions( void ) { int w, h; (void) video_get_res( &w, &h ); @@ -43,7 +43,7 @@
/* ( table start count -- ) (?) */ static void -video_set_colors( void ) +molvideo_set_colors( void ) { int count = POP(); int start = POP(); @@ -59,7 +59,7 @@
/* ( r g b index -- ) */ static void -video_color_bang( void ) +molvideo_color_bang( void ) { int index = POP(); int b = POP(); @@ -71,11 +71,18 @@ refresh_palette(); }
+/* ( color_ind x y width height -- ) (?) */ +static void +molvideo_fill_rect ( void ) +{ + video_fill_rect(); +} + NODE_METHODS( video ) = { - {"dimensions", video_dimensions }, - {"set-colors", video_set_colors }, - {"fill-rectangle", video_fill_rect }, - {"color!", video_color_bang }, + {"dimensions", molvideo_dimensions }, + {"set-colors", molvideo_set_colors }, + {"fill-rectangle", molvideo_fill_rect }, + {"color!", molvideo_color_bang }, };