#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 | IMM_VERSION "2.05 (for Linux 2.4.0)" |
|
#define | IMM_AUTODETECT 0 /* Autodetect mode */ |
|
#define | IMM_NIBBLE 1 /* work in standard 4 bit mode */ |
|
#define | IMM_PS2 2 /* PS/2 byte mode */ |
|
#define | IMM_EPP_8 3 /* EPP mode, 8 bit */ |
|
#define | IMM_EPP_16 4 /* EPP mode, 16 bit */ |
|
#define | IMM_EPP_32 5 /* EPP mode, 32 bit */ |
|
#define | IMM_UNKNOWN 6 /* Just in case... */ |
|
#define | IMM_BURST_SIZE 512 /* data burst size */ |
|
#define | IMM_SELECT_TMO 500 /* 500 how long to wait for target ? */ |
|
#define | IMM_SPIN_TMO 5000 /* 50000 imm_wait loop limiter */ |
|
#define | IMM_DEBUG 0 /* debugging option */ |
|
#define | IN_EPP_MODE(x) (x == IMM_EPP_8 || x == IMM_EPP_16 || x == IMM_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)+2) /* 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 IMM_AUTODETECT 0 /* Autodetect mode */ |
Definition at line 87 of file imm.h.
#define IMM_BURST_SIZE 512 /* data burst size */ |
#define IMM_DEBUG 0 /* debugging option */ |
#define IMM_EPP_16 4 /* EPP mode, 16 bit */ |
Definition at line 91 of file imm.h.
#define IMM_EPP_32 5 /* EPP mode, 32 bit */ |
Definition at line 92 of file imm.h.
#define IMM_EPP_8 3 /* EPP mode, 8 bit */ |
Definition at line 90 of file imm.h.
Definition at line 88 of file imm.h.
Definition at line 89 of file imm.h.
#define IMM_SPIN_TMO 5000 /* 50000 imm_wait loop limiter */ |
#define IMM_UNKNOWN 6 /* Just in case... */ |
Definition at line 93 of file imm.h.
#define IMM_VERSION "2.05 (for Linux 2.4.0)" |
Definition at line 13 of file imm.h.
#define r_ecr |
( |
|
x | ) |
(unsigned char)inb((x)+2) /* 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 */ |