Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/consio.h
Show All 31 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/ioccom.h> | #include <sys/ioccom.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, | ||||
* otherwise we shall have compatibility problems. | * otherwise we shall have compatibility problems. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 165 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
typedef struct fnt14 fnt14_t; | typedef struct fnt14 fnt14_t; | ||||
struct fnt16 { | struct fnt16 { | ||||
char fnt8x16[16*256]; | char fnt8x16[16*256]; | ||||
}; | }; | ||||
typedef struct fnt16 fnt16_t; | typedef struct fnt16 fnt16_t; | ||||
struct vfnt_map { | |||||
uint32_t src; | |||||
uint16_t dst; | |||||
uint16_t len; | |||||
}; | |||||
typedef struct vfnt_map vfnt_map_t; | |||||
#define VFNT_MAP_NORMAL 0 | |||||
#define VFNT_MAP_NORMAL_RIGHT 1 | |||||
#define VFNT_MAP_BOLD 2 | |||||
#define VFNT_MAP_BOLD_RIGHT 3 | |||||
#define VFNT_MAPS 4 | |||||
struct vfnt { | struct vfnt { | ||||
vfnt_map_t *map[VFNT_MAPS]; | vfnt_map_t *map[VFNT_MAPS]; | ||||
uint8_t *glyphs; | uint8_t *glyphs; | ||||
unsigned int map_count[VFNT_MAPS]; | unsigned int map_count[VFNT_MAPS]; | ||||
unsigned int glyph_count; | unsigned int glyph_count; | ||||
unsigned int width; | unsigned int width; | ||||
unsigned int height; | unsigned int height; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines |