#ifndef _DEV_WSCONS_WSCONSIO_H_
#define _DEV_WSCONS_WSCONSIO_H_
#include <sys/types.h>
#include <sys/ioccom.h>
#include <sys/time.h>
#include <dev/wscons/wsksymvar.h>
struct wscons_event {
u_int type;
int value;
struct timespec time;
};
#define WSEVENT_VERSION 1
#define WSCONS_EVENT_KEY_UP 1
#define WSCONS_EVENT_KEY_DOWN 2
#define WSCONS_EVENT_ALL_KEYS_UP 3
#define WSCONS_EVENT_MOUSE_UP 4
#define WSCONS_EVENT_MOUSE_DOWN 5
#define WSCONS_EVENT_MOUSE_DELTA_X 6
#define WSCONS_EVENT_MOUSE_DELTA_Y 7
#define WSCONS_EVENT_MOUSE_ABSOLUTE_X 8
#define WSCONS_EVENT_MOUSE_ABSOLUTE_Y 9
#define WSCONS_EVENT_MOUSE_DELTA_Z 10
#define WSCONS_EVENT_MOUSE_ABSOLUTE_Z 11
#define WSCONS_EVENT_SCREEN_SWITCH 12
#define WSCONS_EVENT_ASCII 13
#define WSCONS_EVENT_MOUSE_DELTA_W 14
#define WSCONS_EVENT_MOUSE_ABSOLUTE_W 15
#define WSCONS_EVENT_HSCROLL 16
#define WSCONS_EVENT_VSCROLL 17
#define WSKBDIO_GTYPE _IOR('W', 0, u_int)
#define WSKBD_TYPE_LK201 1
#define WSKBD_TYPE_LK401 2
#define WSKBD_TYPE_PC_XT 3
#define WSKBD_TYPE_PC_AT 4
#define WSKBD_TYPE_USB 5
#define WSKBD_TYPE_NEXT 6
#define WSKBD_TYPE_HPC_KBD 7
#define WSKBD_TYPE_HPC_BTN 8
#define WSKBD_TYPE_ARCHIMEDES 9
#define WSKBD_TYPE_RISCPC 10
#define WSKBD_TYPE_ADB 11
#define WSKBD_TYPE_HIL 12
#define WSKBD_TYPE_AMIGA 13
#define WSKBD_TYPE_MAPLE 14
#define WSKBD_TYPE_ATARI 15
#define WSKBD_TYPE_SUN 16
#define WSKBD_TYPE_SUN5 17
#define WSKBD_TYPE_SGI 18
#define WSKBD_TYPE_MATRIXKP 19
#define WSKBD_TYPE_EWS4800 20
#define WSKBD_TYPE_BLUETOOTH 21
#define WSKBD_TYPE_ZAURUS 22
#define WSKBD_TYPE_LUNA 23
#define WSKBD_TYPE_RFB 24
#define WSKBD_TYPE_EPOC 25
#define WSKBD_TYPE_HYPERV 26
struct wskbd_bell_data {
u_int which;
#define WSKBD_BELL_DOPITCH 0x1
#define WSKBD_BELL_DOPERIOD 0x2
#define WSKBD_BELL_DOVOLUME 0x4
#define WSKBD_BELL_DOALL 0x7
u_int pitch;
u_int period;
u_int volume;
};
#define WSKBDIO_BELL _IO('W', 1)
#define WSKBDIO_COMPLEXBELL _IOW('W', 2, struct wskbd_bell_data)
#define WSKBDIO_SETBELL _IOW('W', 3, struct wskbd_bell_data)
#define WSKBDIO_GETBELL _IOR('W', 4, struct wskbd_bell_data)
#define WSKBDIO_SETDEFAULTBELL _IOW('W', 5, struct wskbd_bell_data)
#define WSKBDIO_GETDEFAULTBELL _IOR('W', 6, struct wskbd_bell_data)
struct wskbd_keyrepeat_data {
u_int which;
#define WSKBD_KEYREPEAT_DODEL1 0x1
#define WSKBD_KEYREPEAT_DODELN 0x2
#define WSKBD_KEYREPEAT_DOALL 0x3
u_int del1;
u_int delN;
};
#define WSKBDIO_SETKEYREPEAT _IOW('W', 7, struct wskbd_keyrepeat_data)
#define WSKBDIO_GETKEYREPEAT _IOR('W', 8, struct wskbd_keyrepeat_data)
#define WSKBDIO_SETDEFAULTKEYREPEAT _IOW('W', 9, struct wskbd_keyrepeat_data)
#define WSKBDIO_GETDEFAULTKEYREPEAT _IOR('W', 10, struct wskbd_keyrepeat_data)
#define WSKBD_LED_CAPS 0x01
#define WSKBD_LED_NUM 0x02
#define WSKBD_LED_SCROLL 0x04
#define WSKBD_LED_COMPOSE 0x08
#define WSKBDIO_SETLEDS _IOW('W', 11, int)
#define WSKBDIO_GETLEDS _IOR('W', 12, int)
struct wskbd_map_data {
u_int maplen;
#define WSKBDIO_MAXMAPLEN 65536
struct wscons_keymap *map;
};
#define WSKBDIO_GETMAP _IOWR('W', 13, struct wskbd_map_data)
#define WSKBDIO_SETMAP _IOW('W', 14, struct wskbd_map_data)
#define WSKBDIO_GETENCODING _IOR('W', 15, kbd_t)
#define WSKBDIO_SETENCODING _IOW('W', 16, kbd_t)
#define WSKBDIO_SETMODE _IOW('W', 19, int)
#define WSKBDIO_GETMODE _IOR('W', 20, int)
#define WSKBD_TRANSLATED 0
#define WSKBD_RAW 1
#define WSKBDIO_SETKEYCLICK _IOW('W', 21, int)
#define WSKBDIO_GETKEYCLICK _IOR('W', 22, int)
struct wskbd_scroll_data {
u_int which;
#define WSKBD_SCROLL_DOMODIFIER 0x01
#define WSKBD_SCROLL_DOMODE 0x02
#define WSKBD_SCROLL_DOALL 0x03
u_int mode;
#define WSKBD_SCROLL_MODE_NORMAL 0x00
#define WSKBD_SCROLL_MODE_HOLD 0x01
u_int modifier;
};
#define WSKBDIO_GETSCROLL _IOR('W', 23, struct wskbd_scroll_data)
#define WSKBDIO_SETSCROLL _IOW('W', 24, struct wskbd_scroll_data)
#define WSKBDIO_SETVERSION _IOW('W', 25, int)
#define WSKBDIO_EVENT_VERSION WSEVENT_VERSION
#define WSMOUSEIO_GTYPE _IOR('W', 32, u_int)
#define WSMOUSE_TYPE_VSXXX 1
#define WSMOUSE_TYPE_PS2 2
#define WSMOUSE_TYPE_USB 3
#define WSMOUSE_TYPE_LMS 4
#define WSMOUSE_TYPE_MMS 5
#define WSMOUSE_TYPE_TPANEL 6
#define WSMOUSE_TYPE_NEXT 7
#define WSMOUSE_TYPE_ARCHIMEDES 8
#define WSMOUSE_TYPE_HIL 9
#define WSMOUSE_TYPE_AMIGA 10
#define WSMOUSE_TYPE_MAXINE 11
#define WSMOUSE_TYPE_MAPLE 12
#define WSMOUSE_TYPE_SGI 13
#define WSMOUSE_TYPE_BLUETOOTH 14
#define WSMOUSE_TYPE_ADB 15
#define WSMOUSE_TYPE_PSEUDO 16
#define WSMOUSEIO_SRES _IOW('W', 33, u_int)
#define WSMOUSE_RES_MIN 0
#define WSMOUSE_RES_DEFAULT 75
#define WSMOUSE_RES_MAX 100
#define WSMOUSEIO_SSCALE _IOW('W', 34, u_int[2])
#define WSMOUSEIO_SRATE _IOW('W', 35, u_int)
#define WSMOUSE_RATE_MIN 0
#define WSMOUSE_RATE_DEFAULT 50
#define WSMOUSE_RATE_MAX 100
#define WSMOUSE_CALIBCOORDS_MAX 16
#define WSMOUSE_CALIBCOORDS_RESET -1
struct wsmouse_calibcoords {
int minx, miny;
int maxx, maxy;
int samplelen;
struct wsmouse_calibcoord {
int rawx, rawy;
int x, y;
} samples[WSMOUSE_CALIBCOORDS_MAX];
};
#define WSMOUSEIO_SCALIBCOORDS _IOW('W', 36, struct wsmouse_calibcoords)
#define WSMOUSEIO_GCALIBCOORDS _IOR('W', 37, struct wsmouse_calibcoords)
struct wsmouse_id {
u_int type;
#define WSMOUSE_ID_TYPE_UIDSTR 0
u_int length;
#define WSMOUSE_ID_MAXLEN 256
u_char data[WSMOUSE_ID_MAXLEN];
};
#define WSMOUSEIO_GETID _IOWR('W', 38, struct wsmouse_id)
struct wsmouse_repeat {
unsigned long wr_buttons;
unsigned int wr_delay_first;
unsigned int wr_delay_decrement;
unsigned int wr_delay_minimum;
};
#define WSMOUSEIO_GETREPEAT _IOR('W', 39, struct wsmouse_repeat)
#define WSMOUSEIO_SETREPEAT _IOW('W', 40, struct wsmouse_repeat)
#define WSMOUSEIO_SETVERSION _IOW('W', 41, int)
#define WSMOUSE_EVENT_VERSION WSEVENT_VERSION
enum wsmousecfg {
WSMOUSECFG_REVERSE_SCROLLING = 0,
WSMOUSECFG_HORIZSCROLLDIST,
WSMOUSECFG_VERTSCROLLDIST
};
struct wsmouse_param {
enum wsmousecfg key;
int value;
};
struct wsmouse_parameters {
struct wsmouse_param *params;
unsigned int nparams;
};
#define WSMOUSECFG_MAX (128)
#define WSMOUSEIO_GETPARAMS _IOW('W', 42, struct wsmouse_parameters)
#define WSMOUSEIO_SETPARAMS _IOW('W', 43, struct wsmouse_parameters)
#define WSDISPLAYIO_GTYPE _IOR('W', 64, u_int)
#define WSDISPLAY_TYPE_UNKNOWN 0
#define WSDISPLAY_TYPE_PM_MONO 1
#define WSDISPLAY_TYPE_PM_COLOR 2
#define WSDISPLAY_TYPE_CFB 3
#define WSDISPLAY_TYPE_XCFB 4
#define WSDISPLAY_TYPE_MFB 5
#define WSDISPLAY_TYPE_SFB 6
#define WSDISPLAY_TYPE_ISAVGA 7
#define WSDISPLAY_TYPE_PCIVGA 8
#define WSDISPLAY_TYPE_TGA 9
#define WSDISPLAY_TYPE_SFBP 10
#define WSDISPLAY_TYPE_PCIMISC 11
#define WSDISPLAY_TYPE_NEXTMONO 12
#define WSDISPLAY_TYPE_PX 13
#define WSDISPLAY_TYPE_PXG 14
#define WSDISPLAY_TYPE_TX 15
#define WSDISPLAY_TYPE_HPCFB 16
#define WSDISPLAY_TYPE_VIDC 17
#define WSDISPLAY_TYPE_SPX 18
#define WSDISPLAY_TYPE_GPX 19
#define WSDISPLAY_TYPE_LCG 20
#define WSDISPLAY_TYPE_VAX_MONO 21
#define WSDISPLAY_TYPE_SB_P9100 22
#define WSDISPLAY_TYPE_EGA 23
#define WSDISPLAY_TYPE_DCPVR 24
#define WSDISPLAY_TYPE_GBOX 25
#define WSDISPLAY_TYPE_TOPCAT 26
#define WSDISPLAY_TYPE_RBOX 27
#define WSDISPLAY_TYPE_CATSEYE 28
#define WSDISPLAY_TYPE_DVBOX 29
#define WSDISPLAY_TYPE_TVRX 30
#define WSDISPLAY_TYPE_HYPERION 31
#define WSDISPLAY_TYPE_AMIGACC 32
#define WSDISPLAY_TYPE_SUN24 33
#define WSDISPLAY_TYPE_NEWPORT 34
#define WSDISPLAY_TYPE_GR2 35
#define WSDISPLAY_TYPE_SUNCG12 36
#define WSDISPLAY_TYPE_SUNCG14 37
#define WSDISPLAY_TYPE_SUNTCX 38
#define WSDISPLAY_TYPE_SUNFFB 39
#define WSDISPLAY_TYPE_STI 40
#define WSDISPLAY_TYPE_HDLCD 41
#define WSDISPLAY_TYPE_VESA 42
#define WSDISPLAY_TYPE_XILFB 43
#define WSDISPLAY_TYPE_LIGHT 44
#define WSDISPLAY_TYPE_GENFB 45
#define WSDISPLAY_TYPE_CRIME 46
#define WSDISPLAY_TYPE_PXALCD 47
#define WSDISPLAY_TYPE_AG10 48
#define WSDISPLAY_TYPE_DL 49
#define WSDISPLAY_TYPE_XVR1000 50
#define WSDISPLAY_TYPE_LUNA 51
#define WSDISPLAY_TYPE_GRF 52
#define WSDISPLAY_TYPE_VNC 53
#define WSDISPLAY_TYPE_VALKYRIE 54
#define WSDISPLAY_TYPE_IMXIPU 55
#define WSDISPLAY_TYPE_VC4 56
#define WSDISPLAY_TYPE_OMAP3 57
#define WSDISPLAY_TYPE_WINDERMERE 58
#define WSDISPLAY_TYPE_CLPS711X 59
#define WSDISPLAY_TYPE_ALLWINNER 60
#define WSDISPLAY_TYPE_MGX 61
#define WSDISPLAY_TYPE_MESON 62
#define WSDISPLAY_TYPE_TEGRA 63
#define WSDISPLAY_TYPE_PLATINUM 64
#define WSDISPLAY_TYPE_PLFB 65
#define WSDISPLAY_TYPE_SSDFB 66
#define WSDISPLAY_TYPE_HOLLYWOOD 67
#define WSDISPLAY_TYPE_VC6 68
#define WSDISPLAY_TYPE_VIOGPU 69
struct wsdisplay_fbinfo {
u_int height;
u_int width;
u_int depth;
u_int cmsize;
};
#define WSDISPLAYIO_GINFO _IOR('W', 65, struct wsdisplay_fbinfo)
struct wsdisplay_cmap {
u_int index;
u_int count;
u_char *red;
u_char *green;
u_char *blue;
};
#define WSDISPLAYIO_GETCMAP _IOW('W', 66, struct wsdisplay_cmap)
#define WSDISPLAYIO_PUTCMAP _IOW('W', 67, struct wsdisplay_cmap)
#define WSDISPLAYIO_GVIDEO _IOR('W', 68, u_int)
#define WSDISPLAYIO_SVIDEO _IOW('W', 69, u_int)
#define WSDISPLAYIO_VIDEO_OFF 0
#define WSDISPLAYIO_VIDEO_ON 1
struct wsdisplay_curpos {
u_int x, y;
};
struct wsdisplay_cursor {
u_int which;
#define WSDISPLAY_CURSOR_DOCUR 0x01
#define WSDISPLAY_CURSOR_DOPOS 0x02
#define WSDISPLAY_CURSOR_DOHOT 0x04
#define WSDISPLAY_CURSOR_DOCMAP 0x08
#define WSDISPLAY_CURSOR_DOSHAPE 0x10
#define WSDISPLAY_CURSOR_DOALL 0x1f
u_int enable;
struct wsdisplay_curpos pos;
struct wsdisplay_curpos hot;
struct wsdisplay_cmap cmap;
struct wsdisplay_curpos size;
u_char *image;
u_char *mask;
};
#define WSDISPLAYIO_GCURPOS _IOR('W', 70, struct wsdisplay_curpos)
#define WSDISPLAYIO_SCURPOS _IOW('W', 71, struct wsdisplay_curpos)
#define WSDISPLAYIO_GCURMAX _IOR('W', 72, struct wsdisplay_curpos)
#define WSDISPLAYIO_GCURSOR _IOWR('W', 73, struct wsdisplay_cursor)
#define WSDISPLAYIO_SCURSOR _IOW('W', 74, struct wsdisplay_cursor)
#define WSDISPLAYIO_GMODE _IOR('W', 75, u_int)
#define WSDISPLAYIO_SMODE _IOW('W', 76, u_int)
#define WSDISPLAYIO_MODE_EMUL 0
#define WSDISPLAYIO_MODE_MAPPED 1
#define WSDISPLAYIO_MODE_DUMBFB 2
struct wsdisplay_font {
const char *name;
int firstchar, numchars;
int encoding;
#define WSDISPLAY_FONTENC_ISO 0
#define WSDISPLAY_FONTENC_IBM 1
#define WSDISPLAY_FONTENC_PCVT 2
#define WSDISPLAY_FONTENC_ISO7 3
#define WSDISPLAY_FONTENC_ISO2 4
#define WSDISPLAY_FONTENC_KOI8_R 5
u_int fontwidth, fontheight, stride;
#define WSDISPLAY_MAXFONTSZ (512*1024)
int bitorder, byteorder;
#define WSDISPLAY_FONTORDER_KNOWN 0
#define WSDISPLAY_FONTORDER_L2R 1
#define WSDISPLAY_FONTORDER_R2L 2
void *data;
};
#define WSDISPLAYIO_LDFONT _IOW('W', 77, struct wsdisplay_font)
struct wsdisplay_addscreendata {
int idx;
char *screentype;
char *emul;
};
#define WSDISPLAYIO_ADDSCREEN _IOW('W', 78, struct wsdisplay_addscreendata)
struct wsdisplay_delscreendata {
int idx;
int flags;
#define WSDISPLAY_DELSCR_FORCE 1
};
#define WSDISPLAYIO_DELSCREEN _IOW('W', 79, struct wsdisplay_delscreendata)
struct wsdisplay_usefontdata {
char *name;
};
#define WSDISPLAYIO_SFONT _IOW('W', 80, struct wsdisplay_usefontdata)
struct wsdisplay_kbddata {
int op;
#define _O_WSDISPLAY_KBD_ADD 0
#define _O_WSDISPLAY_KBD_DEL 1
int idx;
};
#define _O_WSDISPLAYIO_SETKEYBOARD _IOWR('W', 81, struct wsdisplay_kbddata)
struct wsdisplay_param {
int param;
#define WSDISPLAYIO_PARAM_BACKLIGHT 1
#define WSDISPLAYIO_PARAM_BRIGHTNESS 2
#define WSDISPLAYIO_PARAM_CONTRAST 3
int min, max, curval;
int reserved[4];
};
#define WSDISPLAYIO_GETPARAM _IOWR('W', 82, struct wsdisplay_param)
#define WSDISPLAYIO_SETPARAM _IOWR('W', 83, struct wsdisplay_param)
#define WSDISPLAYIO_GETACTIVESCREEN _IOR('W', 84, int)
struct wsdisplay_char {
int row, col;
uint16_t letter;
uint8_t background, foreground;
char flags;
#define WSDISPLAY_CHAR_BRIGHT 1
#define WSDISPLAY_CHAR_BLINK 2
};
#define WSDISPLAYIO_GETWSCHAR _IOWR('W', 85, struct wsdisplay_char)
#define WSDISPLAYIO_PUTWSCHAR _IOWR('W', 86, struct wsdisplay_char)
struct wsdisplay_scroll_data {
u_int which;
#define WSDISPLAY_SCROLL_DOFASTLINES 0x01
#define WSDISPLAY_SCROLL_DOSLOWLINES 0x02
#define WSDISPLAY_SCROLL_DOALL 0x03
u_int fastlines;
u_int slowlines;
};
#define WSDISPLAYIO_DGSCROLL _IOR('W', 87, struct wsdisplay_scroll_data)
#define WSDISPLAYIO_DSSCROLL _IOW('W', 88, struct wsdisplay_scroll_data)
struct wsdisplay_msgattrs {
int default_attrs, default_bg, default_fg;
int kernel_attrs, kernel_bg, kernel_fg;
};
#define WSDISPLAYIO_GMSGATTRS _IOR('W', 89, struct wsdisplay_msgattrs)
#define WSDISPLAYIO_SMSGATTRS _IOW('W', 90, struct wsdisplay_msgattrs)
#define WSDISPLAYIO_GBORDER _IOR('W', 91, int)
#define WSDISPLAYIO_SBORDER _IOW('W', 92, int)
#define WSDISPLAYIO_SSPLASH _IOW('W', 93, int)
#define WSDISPLAYIO_SPROGRESS _IOW('W', 94, int)
#define WSDISPLAYIO_LINEBYTES _IOR('W', 95, u_int)
#define WSDISPLAYIO_SETVERSION _IOW('W', 96, int)
#define WSDISPLAYIO_EVENT_VERSION WSEVENT_VERSION
struct wsmux_device {
int type;
#define WSMUX_MOUSE 1
#define WSMUX_KBD 2
#define WSMUX_MUX 3
#define WSMUX_BELL 4
int idx;
};
#define WSMUXIO_ADD_DEVICE _IOW('W', 97, struct wsmux_device)
#define WSMUX_ADD_DEVICE WSMUXIO_ADD_DEVICE
#define WSMUXIO_REMOVE_DEVICE _IOW('W', 98, struct wsmux_device)
#define WSMUX_REMOVE_DEVICE WSMUXIO_REMOVE_DEVICE
#define WSMUX_MAXDEV 32
struct wsmux_device_list {
int ndevices;
struct wsmux_device devices[WSMUX_MAXDEV];
};
#define WSMUXIO_LIST_DEVICES _IOWR('W', 99, struct wsmux_device_list)
#define WSMUX_LIST_DEVICES WSMUXIO_LIST_DEVICES
#define WSMUXIO_INJECTEVENT _IOW('W', 100, struct wscons_event)
#define WSMUX_INJECTEVENT WSMUXIO_INJECTEVENT
struct wsdisplayio_bus_id {
u_int bus_type;
#define WSDISPLAYIO_BUS_PCI 0
#define WSDISPLAYIO_BUS_SBUS 1
#define WSDISPLAYIO_BUS_SOC 2
union bus_data {
struct bus_pci {
uint32_t domain;
uint32_t bus;
uint32_t device;
uint32_t function;
} pci;
struct bus_sbus {
uint32_t fb_instance;
} sbus;
char pad[32];
} ubus;
};
#define WSDISPLAYIO_GET_BUSID _IOR('W', 101, struct wsdisplayio_bus_id)
struct wsdisplayio_edid_info {
uint32_t buffer_size;
uint32_t data_size;
void *edid_data;
};
#define WSDISPLAYIO_GET_EDID _IOWR('W', 102, struct wsdisplayio_edid_info)
#define WSDISPLAYIO_SET_POLLING _IOW('W', 103, int)
#define WSDISPLAYIOMGWEHITANDKILLEDASKUNK WSDISPLAYIO_SET_POLLING
#define WSFB_RGB 0
#define WSFB_CI 1
#define WSFB_GREYSCALE 2
#define WSFB_YUV 3
#define WSFB_YUY2 4
struct wsdisplayio_fbinfo {
uint64_t fbi_fbsize;
uint64_t fbi_fboffset;
uint32_t fbi_width;
uint32_t fbi_height;
uint32_t fbi_stride;
uint32_t fbi_bitsperpixel;
uint32_t fbi_pixeltype;
union _fbi_subtype {
struct _fbi_rgbmasks {
uint32_t red_offset;
uint32_t red_size;
uint32_t green_offset;
uint32_t green_size;
uint32_t blue_offset;
uint32_t blue_size;
uint32_t alpha_offset;
uint32_t alpha_size;
} fbi_rgbmasks;
struct _fbi_cmapinfo {
uint32_t cmap_entries;
} fbi_cmapinfo;
} fbi_subtype;
uint32_t fbi_flags;
};
#define WSFB_VRAM_IS_RAM 0x0001
#define WSFB_VRAM_IS_SPLIT 0x0002
#define WSDISPLAYIO_GET_FBINFO _IOWR('W', 104, struct wsdisplayio_fbinfo)
struct wsdisplayio_blit {
uint32_t serial;
uint32_t op;
uint32_t srcx;
uint32_t srcy;
uint32_t dstx;
uint32_t dsty;
uint32_t width;
uint32_t height;
uint32_t pen;
};
#define WSFB_BLIT_FILL 1
#define WSFB_BLIT_COPY 2
#define WSFB_BLIT_TRANS 3
#define WSDISPLAYIO_DOBLIT _IOWR('W', 105, struct wsdisplayio_blit)
#define WSDISPLAYIO_WAITBLIT _IOWR('W', 106, struct wsdisplayio_blit)
struct wsdisplayio_fontdesc {
char fd_name[64];
uint16_t fd_height;
uint16_t fd_width;
};
struct wsdisplayio_fontinfo {
uint32_t fi_buffersize;
uint32_t fi_numentries;
struct wsdisplayio_fontdesc *fi_fonts;
};
#define WSDISPLAYIO_LISTFONTS _IOWR('W', 107, struct wsdisplayio_fontinfo)
struct wsdisplay_getfont {
char *gf_name;
uint32_t gf_size;
uint32_t gf_actual;
};
#define WSDISPLAYIO_GFONT _IOWR('W', 108, struct wsdisplay_getfont)
#define WSDISPLAYIO_SET_DEPTH _IOW('W', 109, int)
#endif