Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
imm.h File Reference
#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.

Macros

#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)
 

Macro Definition Documentation

#define CONNECT_EPP_MAYBE   1

Definition at line 118 of file imm.h.

#define CONNECT_NORMAL   0

Definition at line 119 of file imm.h.

#define IMM_AUTODETECT   0 /* Autodetect mode */

Definition at line 87 of file imm.h.

#define IMM_BURST_SIZE   512 /* data burst size */

Definition at line 111 of file imm.h.

#define IMM_DEBUG   0 /* debugging option */

Definition at line 114 of file imm.h.

#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.

#define IMM_NIBBLE   1 /* work in standard 4 bit mode */

Definition at line 88 of file imm.h.

#define IMM_PS2   2 /* PS/2 byte mode */

Definition at line 89 of file imm.h.

#define IMM_SELECT_TMO   500 /* 500 how long to wait for target ? */

Definition at line 112 of file imm.h.

#define IMM_SPIN_TMO   5000 /* 50000 imm_wait loop limiter */

Definition at line 113 of file imm.h.

#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 IN_EPP_MODE (   x)    (x == IMM_EPP_8 || x == IMM_EPP_16 || x == IMM_EPP_32)

Definition at line 115 of file imm.h.

#define r_ctr (   x)    (unsigned char)inb((x)+2)

Definition at line 123 of file imm.h.

#define r_dtr (   x)    (unsigned char)inb((x))

Definition at line 121 of file imm.h.

#define r_ecr (   x)    (unsigned char)inb((x)+2) /* x must be base_hi */

Definition at line 127 of file imm.h.

#define r_epp (   x)    (unsigned char)inb((x)+4)

Definition at line 124 of file imm.h.

#define r_fifo (   x)    (unsigned char)inb((x)) /* x must be base_hi */

Definition at line 125 of file imm.h.

#define r_str (   x)    (unsigned char)inb((x)+1)

Definition at line 122 of file imm.h.

#define w_ctr (   x,
  y 
)    outb(y, (x)+2)

Definition at line 138 of file imm.h.

#define w_dtr (   x,
  y 
)    outb(y, (x))

Definition at line 129 of file imm.h.

#define w_ecr (   x,
  y 
)    outb(y, (x)+0x2) /* x must be base_hi */

Definition at line 133 of file imm.h.

#define w_epp (   x,
  y 
)    outb(y, (x)+4)

Definition at line 131 of file imm.h.

#define w_fifo (   x,
  y 
)    outb(y, (x)) /* x must be base_hi */

Definition at line 132 of file imm.h.

#define w_str (   x,
  y 
)    outb(y, (x)+1)

Definition at line 130 of file imm.h.