1 #ifndef SYS_IOCTL_H 2 #define SYS_IOCTL_H 3 4 #include <sys/compiler.h> 5 #include <stdint.h> 6 7 extern int __LIB__ console_ioctl(uint16_t cmd, void *arg) __smallc; 8 9 #define IOCTL_GENCON_RAW_MODE 1 /* Set raw terminal mode (int *) */ 10 #define IOCTL_GENCON_CONSOLE_SIZE 2 /* Get console size (int *) = (d<<8|w) */ 11 #define IOCTL_GENCON_SET_FONT32 3 /* Set the address for the 32 column font (int *) */ 12 #define IOCTL_GENCON_SET_FONT64 4 /* Set the address for the 64 column font (int *) */ 13 #define IOCTL_GENCON_SET_UDGS 5 /* Set the address for the udgs (int *) */ 14 #define IOCTL_GENCON_SET_MODE 6 /* Set the display mode (int *) */ 15 #define IOCTL_GENCON_GET_CAPS 7 /* Get capabilities (int *) */ 16 17 18 // Capabilities for the gencon 19 #define CAP_GENCON_CUSTOM_FONT 1 20 #define CAP_GENCON_UDGS 2 21 #define CAP_GENCON_FG_COLOUR 4 22 #define CAP_GENCON_BG_COLOUR 8 23 #define CAP_GENCON_INVERSE 16 24 #define CAP_GENCON_BOLD 32 25 #define CAP_GENCON_UNDERLINE 64 26 27 #endif 28