#include <linux/stddef.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/proc_fs.h>
#include <linux/stat.h>
#include <linux/blkdev.h>
#include <linux/sched.h>
#include <linux/interrupt.h>
#include <asm/io.h>
#include <scsi/scsi_host.h>
Go to the source code of this file.
|
| #define | PPA_VERSION "2.07 (for Linux 2.4.x)" |
| |
| #define | PPA_AUTODETECT 0 /* Autodetect mode */ |
| |
| #define | PPA_NIBBLE 1 /* work in standard 4 bit mode */ |
| |
| #define | PPA_PS2 2 /* PS/2 byte mode */ |
| |
| #define | PPA_EPP_8 3 /* EPP mode, 8 bit */ |
| |
| #define | PPA_EPP_16 4 /* EPP mode, 16 bit */ |
| |
| #define | PPA_EPP_32 5 /* EPP mode, 32 bit */ |
| |
| #define | PPA_UNKNOWN 6 /* Just in case... */ |
| |
| #define | PPA_BURST_SIZE 512 /* data burst size */ |
| |
| #define | PPA_SELECT_TMO 5000 /* how long to wait for target ? */ |
| |
| #define | PPA_SPIN_TMO 50000 /* ppa_wait loop limiter */ |
| |
| #define | PPA_RECON_TMO 500 /* scsi reconnection loop limiter */ |
| |
| #define | PPA_DEBUG 0 /* debugging option */ |
| |
| #define | IN_EPP_MODE(x) (x == PPA_EPP_8 || x == PPA_EPP_16 || x == PPA_EPP_32) |
| |
| #define | CONNECT_EPP_MAYBE 1 |
| |
| #define | CONNECT_NORMAL 0 |
| |
| #define | r_dtr(x) (unsigned char)inb((x)) |
| |
| #define | r_str(x) (unsigned char)inb((x)+1) |
| |
| #define | r_ctr(x) (unsigned char)inb((x)+2) |
| |
| #define | r_epp(x) (unsigned char)inb((x)+4) |
| |
| #define | r_fifo(x) (unsigned char)inb((x)) /* x must be base_hi */ |
| |
| #define | r_ecr(x) (unsigned char)inb((x)+0x2) /* x must be base_hi */ |
| |
| #define | w_dtr(x, y) outb(y, (x)) |
| |
| #define | w_str(x, y) outb(y, (x)+1) |
| |
| #define | w_epp(x, y) outb(y, (x)+4) |
| |
| #define | w_fifo(x, y) outb(y, (x)) /* x must be base_hi */ |
| |
| #define | w_ecr(x, y) outb(y, (x)+0x2)/* x must be base_hi */ |
| |
| #define | w_ctr(x, y) outb(y, (x)+2) |
| |
| #define CONNECT_EPP_MAYBE 1 |
| #define PPA_AUTODETECT 0 /* Autodetect mode */ |
Definition at line 94 of file ppa.h.
| #define PPA_BURST_SIZE 512 /* data burst size */ |
| #define PPA_DEBUG 0 /* debugging option */ |
| #define PPA_EPP_16 4 /* EPP mode, 16 bit */ |
Definition at line 98 of file ppa.h.
| #define PPA_EPP_32 5 /* EPP mode, 32 bit */ |
Definition at line 99 of file ppa.h.
| #define PPA_EPP_8 3 /* EPP mode, 8 bit */ |
Definition at line 97 of file ppa.h.
Definition at line 95 of file ppa.h.
Definition at line 96 of file ppa.h.
| #define PPA_RECON_TMO 500 /* scsi reconnection loop limiter */ |
| #define PPA_SPIN_TMO 50000 /* ppa_wait loop limiter */ |
| #define PPA_UNKNOWN 6 /* Just in case... */ |
| #define PPA_VERSION "2.07 (for Linux 2.4.x)" |
Definition at line 13 of file ppa.h.
| #define r_ecr |
( |
|
x | ) |
(unsigned char)inb((x)+0x2) /* x must be base_hi */ |
| #define r_fifo |
( |
|
x | ) |
(unsigned char)inb((x)) /* x must be base_hi */ |
| #define w_ecr |
( |
|
x, |
|
|
|
y |
|
) |
| outb(y, (x)+0x2)/* x must be base_hi */ |
| #define w_fifo |
( |
|
x, |
|
|
|
y |
|
) |
| outb(y, (x)) /* x must be base_hi */ |