- add display_has_statusline member

Signed-off-by: Jacek Jendrzej <satbaby@kawaii.com>
This commit is contained in:
vanhofen
2017-11-13 10:10:19 +01:00
committed by Jacek Jendrzej
parent 6c0d55da96
commit 70cdad0db1
8 changed files with 8 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ hw_caps_t *get_hwcaps(void)
caps.has_HDMI = 1; caps.has_HDMI = 1;
caps.display_xres = 8; caps.display_xres = 8;
caps.display_can_deepstandby = 0; caps.display_can_deepstandby = 0;
caps.display_has_statusline = 0;
strcpy(caps.boxvendor, "AZBox"); strcpy(caps.boxvendor, "AZBox");
const char *tmp; const char *tmp;
char buf[64]; char buf[64];

View File

@@ -33,6 +33,7 @@ hw_caps_t *get_hwcaps(void)
caps.has_HDMI = 1; caps.has_HDMI = 1;
caps.display_xres = 8; caps.display_xres = 8;
caps.display_can_deepstandby = 0; caps.display_can_deepstandby = 0;
caps.display_has_statusline = 0;
strcpy(caps.boxvendor, "Generic"); strcpy(caps.boxvendor, "Generic");
strcpy(caps.boxname, "PC"); strcpy(caps.boxname, "PC");
if (! uname(&u)) if (! uname(&u))

View File

@@ -38,6 +38,7 @@ typedef struct hw_caps
int display_yres; int display_yres;
int display_can_set_brightness; int display_can_set_brightness;
int display_can_deepstandby; int display_can_deepstandby;
int display_has_statusline;
char boxvendor[64]; char boxvendor[64];
char boxname[64]; char boxname[64];
char boxarch[64]; char boxarch[64];

View File

@@ -35,6 +35,7 @@ hw_caps_t *get_hwcaps(void)
caps.display_xres = 16; caps.display_xres = 16;
caps.display_type = HW_DISPLAY_LINE_TEXT; caps.display_type = HW_DISPLAY_LINE_TEXT;
caps.display_can_set_brightness = 1; caps.display_can_set_brightness = 1;
caps.display_has_statusline = 0;
caps.has_HDMI = 1; caps.has_HDMI = 1;
strcpy(caps.boxvendor, "AX-Technologies"); strcpy(caps.boxvendor, "AX-Technologies");
strcpy(caps.boxname, "HD51"); strcpy(caps.boxname, "HD51");

View File

@@ -31,6 +31,7 @@ hw_caps_t *get_hwcaps(void)
int fd = open("/proc/stb/info/model", O_RDONLY); int fd = open("/proc/stb/info/model", O_RDONLY);
caps.display_can_set_brightness = 0; caps.display_can_set_brightness = 0;
caps.display_can_deepstandby = 0; caps.display_can_deepstandby = 0;
caps.display_has_statusline = 0;
if (fd != -1) { if (fd != -1) {
len = read(fd, buf, sizeof(buf) - 1); len = read(fd, buf, sizeof(buf) - 1);
close(fd); close(fd);

View File

@@ -36,6 +36,7 @@ hw_caps_t *get_hwcaps(void)
caps.display_type = HW_DISPLAY_LED_NUM; caps.display_type = HW_DISPLAY_LED_NUM;
caps.display_can_set_brightness = 0; caps.display_can_set_brightness = 0;
caps.display_can_deepstandby = 0; caps.display_can_deepstandby = 0;
caps.display_has_statusline = 0;
caps.has_HDMI = 1; caps.has_HDMI = 1;
caps.has_SCART = 1; caps.has_SCART = 1;
caps.display_xres = 4; caps.display_xres = 4;

View File

@@ -21,6 +21,7 @@ static hw_caps_t caps = {
.display_xres = 128, .display_xres = 128,
.display_yres = 64, .display_yres = 64,
.display_can_deepstandby = 0; .display_can_deepstandby = 0;
.display_has_statusline = 0;
.boxvendor = "Armas", .boxvendor = "Armas",
.boxname = "TripleDragon" .boxname = "TripleDragon"
}; };

View File

@@ -31,6 +31,7 @@ hw_caps_t *get_hwcaps(void)
caps.has_HDMI = 1; caps.has_HDMI = 1;
caps.display_xres = 8; caps.display_xres = 8;
caps.display_can_deepstandby = 0; caps.display_can_deepstandby = 0;
caps.display_has_statusline = 0;
strcpy(caps.boxvendor, "Raspberry"); strcpy(caps.boxvendor, "Raspberry");
strcpy(caps.boxname, "Pi"); strcpy(caps.boxname, "Pi");