14 #if defined(__linux__)
15 #include <linux/ioctl.h>
16 #include <linux/types.h>
18 #if defined(__FreeBSD__)
19 #include <sys/ioctl.h>
23 #define CBMCTRL_BASE 0xcb
25 #define CBMCTRL_TALK _IO(CBMCTRL_BASE, 0)
26 #define CBMCTRL_LISTEN _IO(CBMCTRL_BASE, 1)
27 #define CBMCTRL_UNTALK _IO(CBMCTRL_BASE, 2)
28 #define CBMCTRL_UNLISTEN _IO(CBMCTRL_BASE, 3)
29 #define CBMCTRL_OPEN _IO(CBMCTRL_BASE, 4)
30 #define CBMCTRL_CLOSE _IO(CBMCTRL_BASE, 5)
31 #define CBMCTRL_RESET _IO(CBMCTRL_BASE, 6)
32 #define CBMCTRL_GET_EOI _IO(CBMCTRL_BASE, 7)
33 #define CBMCTRL_CLEAR_EOI _IO(CBMCTRL_BASE, 8)
35 #define CBMCTRL_PP_READ _IO(CBMCTRL_BASE, 10)
36 #define CBMCTRL_PP_WRITE _IO(CBMCTRL_BASE, 11)
37 #define CBMCTRL_IEC_POLL _IO(CBMCTRL_BASE, 12)
38 #define CBMCTRL_IEC_SET _IO(CBMCTRL_BASE, 13)
39 #define CBMCTRL_IEC_RELEASE _IO(CBMCTRL_BASE, 14)
40 #define CBMCTRL_IEC_WAIT _IO(CBMCTRL_BASE, 15)
41 #define CBMCTRL_IEC_SETRELEASE _IO(CBMCTRL_BASE, 16)
44 #define CBMCTRL_PARBURST_READ _IO(CBMCTRL_BASE, 17)
45 #define CBMCTRL_PARBURST_WRITE _IO(CBMCTRL_BASE, 18)
46 #define CBMCTRL_PARBURST_READ_TRACK _IO(CBMCTRL_BASE, 19)
47 #define CBMCTRL_PARBURST_WRITE_TRACK _IO(CBMCTRL_BASE, 20)
48 #define CBMCTRL_PARBURST_READ_TRACK_VAR _IO(CBMCTRL_BASE, 21)
52 unsigned char *buffer;