tty: add pieces ready for UDG setting
authorAlan Cox <alan@linux.intel.com>
Fri, 11 May 2018 22:39:00 +0000 (23:39 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 11 May 2018 22:39:00 +0000 (23:39 +0100)
Kernel/include/tty.h

index 71e73a1..c7f2f2a 100644 (file)
@@ -152,6 +152,12 @@ struct termios {
 #define VTATTRS                0x24
 #define KBRATE         0x25
 
+#define VTFONTINFO     0x30
+#define VTSETFONT      (0x31|IOCTL_SUPER)
+#define VTGETFONT      0x32
+#define VTSETUDG       0x33
+#define VTGETUDG       0x34
+
 /* Fuzix systems to level 2 have 256 byte tty buffers as per standards, level 1
    boxes may not */
 #if defined(CONFIG_LEVEL_2)
@@ -170,6 +176,20 @@ struct winsize {           /* Keep me 8bytes on small boxes */
     unsigned short ws_ypixel;
 };
 
+struct fontinfo {
+    uint8_t font_low;
+    uint8_t font_high;
+    uint8_t udg_low;
+    uint8_t udg_high;
+    uint8_t format;
+#define FONT_INFO_8X8  0
+#define FONT_INFO_6X8  1
+#define FONT_INFO_4X8  2       /* packed twice in each byte */
+#define FONT_INFO_4X6  3
+#define FONT_INFO_8X11P16  4   /* 8 x 11 but packed 16 line packed */
+#define FONT_INFO_8X16 5
+};
+
 /* Group the tty into a single object. That lets 8bit processors keep all
    the data indexed off a single register */
 struct tty {