Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/consio.h
Show All 30 Lines | |||||
*/ | */ | ||||
#ifndef _SYS_CONSIO_H_ | #ifndef _SYS_CONSIO_H_ | ||||
#define _SYS_CONSIO_H_ | #define _SYS_CONSIO_H_ | ||||
#ifndef _KERNEL | #ifndef _KERNEL | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#endif | #endif | ||||
#include <sys/_scrmap.h> | |||||
#include <sys/ioccom.h> | #include <sys/ioccom.h> | ||||
#include <sys/font.h> | #include <sys/font.h> | ||||
/* | /* | ||||
* Console ioctl commands. Some commands are named as KDXXXX, GIO_XXX, and | * Console ioctl commands. Some commands are named as KDXXXX, GIO_XXX, and | ||||
* PIO_XXX, rather than CONS_XXX, for historical and compatibility reasons. | * PIO_XXX, rather than CONS_XXX, for historical and compatibility reasons. | ||||
* Some other CONS_XXX commands are works as wrapper around frame buffer | * Some other CONS_XXX commands are works as wrapper around frame buffer | ||||
* ioctl commands FBIO_XXX. Do not try to change all these commands, | * ioctl commands FBIO_XXX. Do not try to change all these commands, | ||||
Show All 16 Lines | |||||
struct _scr_size { | struct _scr_size { | ||||
int scr_size[3]; | int scr_size[3]; | ||||
}; | }; | ||||
typedef struct _scr_size scr_size_t; | typedef struct _scr_size scr_size_t; | ||||
#define KDRASTER _IOW('K', 100, scr_size_t) | #define KDRASTER _IOW('K', 100, scr_size_t) | ||||
/* get/set screen char map */ | /* get/set screen char map */ | ||||
struct _scrmap { | |||||
char scrmap[256]; | |||||
}; | |||||
typedef struct _scrmap scrmap_t; | |||||
#define GIO_SCRNMAP _IOR('k', 2, scrmap_t) | #define GIO_SCRNMAP _IOR('k', 2, scrmap_t) | ||||
#define PIO_SCRNMAP _IOW('k', 3, scrmap_t) | #define PIO_SCRNMAP _IOW('k', 3, scrmap_t) | ||||
/* get the current text attribute */ | /* get the current text attribute */ | ||||
#define GIO_ATTR _IOR('a', 0, int) | #define GIO_ATTR _IOR('a', 0, int) | ||||
/* get the current text color */ | /* get the current text color */ | ||||
#define GIO_COLOR _IOR('c', 0, int) | #define GIO_COLOR _IOR('c', 0, int) | ||||
▲ Show 20 Lines • Show All 374 Lines • Show Last 20 Lines |