Go to the documentation of this file.
13 #define PPA_VERSION "2.07 (for Linux 2.4.x)"
76 #include <linux/stddef.h>
77 #include <linux/module.h>
78 #include <linux/kernel.h>
82 #include <linux/stat.h>
84 #include <linux/sched.h>
94 #define PPA_AUTODETECT 0
100 #define PPA_UNKNOWN 6
102 static char *PPA_MODE_STRING[] =
109 #ifdef CONFIG_SCSI_IZIP_EPP16
117 #define PPA_BURST_SIZE 512
118 #define PPA_SELECT_TMO 5000
119 #define PPA_SPIN_TMO 50000
120 #define PPA_RECON_TMO 500
122 #define IN_EPP_MODE(x) (x == PPA_EPP_8 || x == PPA_EPP_16 || x == PPA_EPP_32)
125 #define CONNECT_EPP_MAYBE 1
126 #define CONNECT_NORMAL 0
128 #define r_dtr(x) (unsigned char)inb((x))
129 #define r_str(x) (unsigned char)inb((x)+1)
130 #define r_ctr(x) (unsigned char)inb((x)+2)
131 #define r_epp(x) (unsigned char)inb((x)+4)
132 #define r_fifo(x) (unsigned char)inb((x))
134 #define r_ecr(x) (unsigned char)inb((x)+0x2)
136 #define w_dtr(x,y) outb(y, (x))
137 #define w_str(x,y) outb(y, (x)+1)
138 #define w_epp(x,y) outb(y, (x)+4)
139 #define w_fifo(x,y) outb(y, (x))
140 #define w_ecr(x,y) outb(y, (x)+0x2)
142 #ifdef CONFIG_SCSI_IZIP_SLOW_CTR
143 #define w_ctr(x,y) outb_p(y, (x)+2)
145 #define w_ctr(x,y) outb(y, (x)+2)