Go to the source code of this file.
|
#define | PARIDE_H_VERSION "1.01" |
|
#define | PI_PD 0 /* IDE disk */ |
|
#define | PI_PCD 1 /* ATAPI CDrom */ |
|
#define | PI_PF 2 /* ATAPI disk */ |
|
#define | PI_PT 3 /* ATAPI tape */ |
|
#define | PI_PG 4 /* ATAPI generic */ |
|
#define | delay_p (pi->delay?udelay(pi->delay):(void)0) |
|
#define | out_p(offs, byte) outb(byte,pi->port+offs); delay_p; |
|
#define | in_p(offs) (delay_p,inb(pi->port+offs)) |
|
#define | w0(byte) {out_p(0,byte);} |
|
#define | r0() (in_p(0) & 0xff) |
|
#define | w1(byte) {out_p(1,byte);} |
|
#define | r1() (in_p(1) & 0xff) |
|
#define | w2(byte) {out_p(2,byte);} |
|
#define | r2() (in_p(2) & 0xff) |
|
#define | w3(byte) {out_p(3,byte);} |
|
#define | w4(byte) {out_p(4,byte);} |
|
#define | r4() (in_p(4) & 0xff) |
|
#define | w4w(data) {outw(data,pi->port+4); delay_p;} |
|
#define | w4l(data) {outl(data,pi->port+4); delay_p;} |
|
#define | r4w() (delay_p,inw(pi->port+4)&0xffff) |
|
#define | r4l() (delay_p,inl(pi->port+4)&0xffffffff) |
|
|
int | pi_init (PIA *pi, int autoprobe, int port, int mode, int unit, int protocol, int delay, char *scratch, int devtype, int verbose, char *device) |
|
void | pi_release (PIA *pi) |
|
void | pi_write_regr (PIA *pi, int cont, int regr, int val) |
|
int | pi_read_regr (PIA *pi, int cont, int regr) |
|
void | pi_write_block (PIA *pi, char *buf, int count) |
|
void | pi_read_block (PIA *pi, char *buf, int count) |
|
void | pi_connect (PIA *pi) |
|
void | pi_disconnect (PIA *pi) |
|
void | pi_do_claimed (PIA *pi, void(*cont)(void)) |
|
int | pi_schedule_claimed (PIA *pi, void(*cont)(void)) |
|
int | paride_register (PIP *) |
|
void | paride_unregister (PIP *) |
|
#define PARIDE_H_VERSION "1.01" |
#define PI_PCD 1 /* ATAPI CDrom */ |
#define PI_PD 0 /* IDE disk */ |
#define PI_PF 2 /* ATAPI disk */ |
#define PI_PG 4 /* ATAPI generic */ |
#define PI_PT 3 /* ATAPI tape */ |
#define r0 |
( |
| ) |
(in_p(0) & 0xff) |
#define r1 |
( |
| ) |
(in_p(1) & 0xff) |
#define r2 |
( |
| ) |
(in_p(2) & 0xff) |
#define r4 |
( |
| ) |
(in_p(4) & 0xff) |
int pi_init |
( |
PIA * |
pi, |
|
|
int |
autoprobe, |
|
|
int |
port, |
|
|
int |
mode, |
|
|
int |
unit, |
|
|
int |
protocol, |
|
|
int |
delay, |
|
|
char * |
scratch, |
|
|
int |
devtype, |
|
|
int |
verbose, |
|
|
char * |
device |
|
) |
| |