This fixes the following PDCurses warnings:
    CC         curses/pdcurses-backend/pdcsetsc.libcurses.o
curses/pdcurses-backend/pdcsetsc.c: In function 'PDC_curs_set':
curses/pdcurses-backend/pdcsetsc.c:17:9: warning: implicit declaration of function 'serial_cursor_enable' [-Wimplicit-function-declaration]
curses/pdcurses-backend/pdcsetsc.c:22:9: warning: implicit declaration of function 'video_console_cursor_enable' [-Wimplicit-function-declaration]
    CC         curses/pdcurses-backend/pdcutil.libcurses.o
curses/pdcurses-backend/pdcutil.c:30:6: warning: no previous prototype for 'curses_enable_serial' [-Wmissing-prototypes]
curses/pdcurses-backend/pdcutil.c:35:6: warning: no previous prototype for 'curses_enable_vga' [-Wmissing-prototypes]
curses/pdcurses-backend/pdcutil.c:40:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
curses/pdcurses-backend/pdcutil.c:45:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
Change-Id: If0d4d475d3006f1a77f67ec46c6bdf4ee2906981
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/2908
Reviewed-by: Dave Frodin <dave.frodin@se-eng.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			692 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			692 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* Public Domain Curses */
 | |
| /* This file is BSD licensed, Copyright 2011 secunet AG */
 | |
| 
 | |
| #include <libpayload.h>
 | |
| #include "lppdc.h"
 | |
| 
 | |
| int PDC_curs_set(int visibility)
 | |
| {
 | |
|     int ret_vis;
 | |
| 
 | |
|     PDC_LOG(("PDC_curs_set() - called: visibility=%d\n", visibility));
 | |
| 
 | |
|     ret_vis = SP->visibility;
 | |
|     SP->visibility = visibility;
 | |
| 
 | |
| #ifdef CONFIG_SERIAL_CONSOLE
 | |
|     if (curses_flags & F_ENABLE_SERIAL) {
 | |
|         serial_cursor_enable(visibility);
 | |
|     }
 | |
| #endif
 | |
| #ifdef CONFIG_VIDEO_CONSOLE
 | |
|     if (curses_flags & F_ENABLE_CONSOLE) {
 | |
|         video_console_cursor_enable(visibility);
 | |
|     }
 | |
| #endif
 | |
| 
 | |
|     return ret_vis;
 | |
| }
 | |
| 
 | |
| int PDC_set_blink(bool blinkon)
 | |
| {
 | |
| 	if (pdc_color_started)
 | |
| 		COLORS = 16;
 | |
| 
 | |
| 	return ERR;
 | |
| }
 |