mb/google/brya/var/orisa: Update Type C DisplayPort HPD Configuration
[coreboot2.git] / payloads / libpayload / curses / pdcurses-backend / pdcsetsc.c
blobadcf06926a6d214b0cd58266a793074e3011c890
1 /* Public Domain Curses */
2 /* This file is BSD licensed, Copyright 2011 secunet AG */
4 #include <libpayload.h>
5 #include "lppdc.h"
7 int PDC_curs_set(int visibility)
9 int ret_vis;
11 PDC_LOG(("PDC_curs_set() - called: visibility=%d\n", visibility));
13 ret_vis = SP->visibility;
14 SP->visibility = visibility;
16 #if CONFIG(LP_SERIAL_CONSOLE)
17 if (curses_flags & F_ENABLE_SERIAL) {
18 serial_cursor_enable(visibility);
20 #endif
21 #if CONFIG(LP_VIDEO_CONSOLE)
22 if (curses_flags & F_ENABLE_CONSOLE) {
23 video_console_cursor_enable(visibility);
25 #endif
27 return ret_vis;
30 int PDC_set_blink(bool blinkon)
32 if (pdc_color_started)
33 COLORS = 16;
35 return ERR;