Go to the documentation of this file.
13 #define IMM_VERSION "2.05 (for Linux 2.4.0)"
69 #include <linux/stddef.h>
70 #include <linux/module.h>
71 #include <linux/kernel.h>
75 #include <linux/stat.h>
77 #include <linux/sched.h>
87 #define IMM_AUTODETECT 0
95 static char *IMM_MODE_STRING[] =
102 #ifdef CONFIG_SCSI_IZIP_EPP16
111 #define IMM_BURST_SIZE 512
112 #define IMM_SELECT_TMO 500
113 #define IMM_SPIN_TMO 5000
115 #define IN_EPP_MODE(x) (x == IMM_EPP_8 || x == IMM_EPP_16 || x == IMM_EPP_32)
118 #define CONNECT_EPP_MAYBE 1
119 #define CONNECT_NORMAL 0
121 #define r_dtr(x) (unsigned char)inb((x))
122 #define r_str(x) (unsigned char)inb((x)+1)
123 #define r_ctr(x) (unsigned char)inb((x)+2)
124 #define r_epp(x) (unsigned char)inb((x)+4)
125 #define r_fifo(x) (unsigned char)inb((x))
127 #define r_ecr(x) (unsigned char)inb((x)+2)
129 #define w_dtr(x,y) outb(y, (x))
130 #define w_str(x,y) outb(y, (x)+1)
131 #define w_epp(x,y) outb(y, (x)+4)
132 #define w_fifo(x,y) outb(y, (x))
133 #define w_ecr(x,y) outb(y, (x)+0x2)
135 #ifdef CONFIG_SCSI_IZIP_SLOW_CTR
136 #define w_ctr(x,y) outb_p(y, (x)+2)
138 #define w_ctr(x,y) outb(y, (x)+2)