mb/google/brya/var/orisa: Update Type C DisplayPort HPD Configuration
[coreboot2.git] / payloads / libpayload / curses / pdcurses-backend / pdcgetsc.c
blob835b840fbaaad42b2bcec46eac8ec9cf344afde1
1 /* Public Domain Curses */
2 /* This file is BSD licensed, Copyright 2011 secunet AG */
4 #include "lppdc.h"
6 #include <stdlib.h>
8 /* return width of screen/viewport */
10 int PDC_get_columns(void)
12 int cols;
14 PDC_LOG(("PDC_get_columns() - called\n"));
16 /* hardcode to 80 */
17 cols = 80;
19 PDC_LOG(("PDC_get_columns() - returned: cols %d\n", cols));
21 return cols;
24 /* get the cursor size/shape */
26 int PDC_get_cursor_mode(void)
28 PDC_LOG(("PDC_get_cursor_mode() - called\n"));
30 /* only have one cursor type */
31 return SP->visibility;
34 /* return number of screen rows */
36 int PDC_get_rows(void)
38 int rows;
40 PDC_LOG(("PDC_get_rows() - called\n"));
42 /* hardcode to 25 */
43 rows = 25;
45 PDC_LOG(("PDC_get_rows() - returned: rows %d\n", rows));
47 return rows;