Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
ppa.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 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)
 

Macro Definition Documentation

#define CONNECT_EPP_MAYBE   1

Definition at line 125 of file ppa.h.

#define CONNECT_NORMAL   0

Definition at line 126 of file ppa.h.

#define IN_EPP_MODE (   x)    (x == PPA_EPP_8 || x == PPA_EPP_16 || x == PPA_EPP_32)

Definition at line 122 of file ppa.h.

#define PPA_AUTODETECT   0 /* Autodetect mode */

Definition at line 94 of file ppa.h.

#define PPA_BURST_SIZE   512 /* data burst size */

Definition at line 117 of file ppa.h.

#define PPA_DEBUG   0 /* debugging option */

Definition at line 121 of file ppa.h.

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

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

Definition at line 95 of file ppa.h.

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

Definition at line 96 of file ppa.h.

#define PPA_RECON_TMO   500 /* scsi reconnection loop limiter */

Definition at line 120 of file ppa.h.

#define PPA_SELECT_TMO   5000 /* how long to wait for target ? */

Definition at line 118 of file ppa.h.

#define PPA_SPIN_TMO   50000 /* ppa_wait loop limiter */

Definition at line 119 of file ppa.h.

#define PPA_UNKNOWN   6 /* Just in case... */

Definition at line 100 of file ppa.h.

#define PPA_VERSION   "2.07 (for Linux 2.4.x)"

Definition at line 13 of file ppa.h.

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

Definition at line 130 of file ppa.h.

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

Definition at line 128 of file ppa.h.

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

Definition at line 134 of file ppa.h.

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

Definition at line 131 of file ppa.h.

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

Definition at line 132 of file ppa.h.

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

Definition at line 129 of file ppa.h.

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

Definition at line 145 of file ppa.h.

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

Definition at line 136 of file ppa.h.

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

Definition at line 140 of file ppa.h.

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

Definition at line 138 of file ppa.h.

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

Definition at line 139 of file ppa.h.

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

Definition at line 137 of file ppa.h.