1 /* sys/ioctl.h - All ioctl() command codes. Author: Kees J. Bot 2 * 23 Nov 2002 3 * 4 * This header file includes all other ioctl command code headers. 5 */ 6 7 #ifndef _S_IOCTL_H 8 #define _S_IOCTL_H 9 10 /* A driver that uses ioctls claims a character for its series of commands. 11 * For instance: #define TCGETS _IOR('T', 8, struct termios) 12 * This is a terminal ioctl that uses the character 'T'. The character(s) 13 * used in each header file are shown in the comment following. 14 */ 15 16 #include <sys/ioc_tty.h> /* 'T' 't' 'k' */ 17 #include <sys/ioc_net.h> /* 'n' */ 18 #include <sys/ioc_disk.h> /* 'd' */ 19 #include <sys/ioc_file.h> /* 'f' */ 20 #include <sys/ioc_memory.h> /* 'm' */ 21 #include <sys/ioc_tape.h> /* 'M' */ 22 #include <sys/ioc_sound.h> /* 's' */ 23 #include <sys/ioc_block.h> /* 'b' */ 24 #include <sys/ioc_fbd.h> /* 'B' */ 25 #include <sys/ioc_fb.h> /* 'V' */ 26 #include <dev/vndvar.h> /* 'F' */ 27 28 #if defined(_NETBSD_SOURCE) 29 #define TIOCDRAIN TCDRAIN 30 #define TIOCGETA TCGETS 31 #define TIOCSETA TCSETS 32 #define TIOCSETAW TCSETSW 33 #define TIOCSETAF TCSETSF 34 #endif 35 36 #endif /* _S_IOCTL_H */ 37