summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/visual_io.h
diff options
context:
space:
mode:
authorDan McDonald <danmcd@mnx.io>2022-05-13 17:20:24 -0400
committerGitHub <noreply@github.com>2022-05-13 17:20:24 -0400
commitbb7d6c9b47695f41cbacbcf6662baf3d0e152fdf (patch)
tree75f2d0cab5fb92f97f2ab2c3186a0b5d1579a33a /usr/src/uts/common/sys/visual_io.h
parent8ca5534c77e93c25d2c1f777499b12da0f7cc0cd (diff)
parent402559e299331588f209b3a9693e3bcd6a83d22c (diff)
downloadillumos-joyent-OS-8149.tar.gz
Merge branch 'master' into OS-8149OS-8149
Diffstat (limited to 'usr/src/uts/common/sys/visual_io.h')
-rw-r--r--usr/src/uts/common/sys/visual_io.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/src/uts/common/sys/visual_io.h b/usr/src/uts/common/sys/visual_io.h
index 0194d00206..c894bb48bc 100644
--- a/usr/src/uts/common/sys/visual_io.h
+++ b/usr/src/uts/common/sys/visual_io.h
@@ -167,6 +167,7 @@ typedef union {
unsigned char eight; /* eight bit */
unsigned char sixteen[2]; /* 16 bit */
unsigned char twentyfour[3]; /* 24 bit */
+ unsigned char thirtytwo[4]; /* 32 bit */
} color_t;
/*
@@ -178,7 +179,7 @@ typedef union {
* ioctl(fd, VIS_DEVINIT, struct vis_devinit *)
*/
#define VIS_DEVINIT (VIOC|1)
-#define VIS_CONS_REV 4 /* Console IO interface version */
+#define VIS_CONS_REV 5 /* Console IO interface version */
/* Modes */
#define VIS_TEXT 0 /* Use text mode when displaying data */
#define VIS_PIXEL 1 /* Use pixel mode when displaying data */
@@ -237,7 +238,7 @@ typedef union {
#define VIS_CONSCLEAR (VIOC|8)
struct vis_consclear {
- unsigned char bg_color; /* Background color */
+ color_t bg_color; /* Background color */
};
struct vis_consdisplay {
@@ -246,8 +247,8 @@ struct vis_consdisplay {
screen_size_t width; /* Width of data */
screen_size_t height; /* Height of data */
unsigned char *data; /* Data to display */
- unsigned char fg_color; /* Foreground color */
- unsigned char bg_color; /* Background color */
+ color_t fg_color; /* Foreground color */
+ color_t bg_color; /* Background color */
};
struct vis_conscopy {