00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef CBM_MODULE_H
00013 #define CBM_MODULE_H
00014
00015 #include <linux/ioctl.h>
00016 #include <linux/types.h>
00017
00018 #define CBMCTRL_BASE 0xcb
00019
00020 #define CBMCTRL_TALK _IO(CBMCTRL_BASE, 0)
00021 #define CBMCTRL_LISTEN _IO(CBMCTRL_BASE, 1)
00022 #define CBMCTRL_UNTALK _IO(CBMCTRL_BASE, 2)
00023 #define CBMCTRL_UNLISTEN _IO(CBMCTRL_BASE, 3)
00024 #define CBMCTRL_OPEN _IO(CBMCTRL_BASE, 4)
00025 #define CBMCTRL_CLOSE _IO(CBMCTRL_BASE, 5)
00026 #define CBMCTRL_RESET _IO(CBMCTRL_BASE, 6)
00027 #define CBMCTRL_GET_EOI _IO(CBMCTRL_BASE, 7)
00028 #define CBMCTRL_CLEAR_EOI _IO(CBMCTRL_BASE, 8)
00029
00030 #define CBMCTRL_PP_READ _IO(CBMCTRL_BASE, 10)
00031 #define CBMCTRL_PP_WRITE _IO(CBMCTRL_BASE, 11)
00032 #define CBMCTRL_IEC_POLL _IO(CBMCTRL_BASE, 12)
00033 #define CBMCTRL_IEC_SET _IO(CBMCTRL_BASE, 13)
00034 #define CBMCTRL_IEC_RELEASE _IO(CBMCTRL_BASE, 14)
00035 #define CBMCTRL_IEC_WAIT _IO(CBMCTRL_BASE, 15)
00036 #define CBMCTRL_IEC_SETRELEASE _IO(CBMCTRL_BASE, 16)
00037
00038
00039 #define CBMCTRL_PARBURST_READ _IO(CBMCTRL_BASE, 17)
00040 #define CBMCTRL_PARBURST_WRITE _IO(CBMCTRL_BASE, 18)
00041 #define CBMCTRL_PARBURST_READ_TRACK _IO(CBMCTRL_BASE, 19)
00042 #define CBMCTRL_PARBURST_WRITE_TRACK _IO(CBMCTRL_BASE, 20)
00043
00044 typedef struct PARBURST_RW_VALUE {
00045 unsigned char *buffer;
00046 int length;
00047 } PARBURST_RW_VALUE;
00048
00049 #endif