Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
t128.h File Reference

Go to the source code of this file.

Macros

#define T128_PUBLIC_RELEASE   3
 
#define TDEBUG   0
 
#define TDEBUG_INIT   0x1
 
#define TDEBUG_TRANSFER   0x2
 
#define T_ROM_OFFSET   0
 
#define T_RAM_OFFSET   0x1800
 
#define T_CONTROL_REG_OFFSET   0x1c00 /* rw */
 
#define T_CR_INT   0x10 /* Enable interrupts */
 
#define T_CR_CT   0x02 /* Reset watchdog timer */
 
#define T_STATUS_REG_OFFSET   0x1c20 /* ro */
 
#define T_ST_BOOT   0x80 /* Boot switch */
 
#define T_ST_S3   0x40 /* User settable switches, */
 
#define T_ST_S2   0x20 /* read 0 when switch is on, 1 off */
 
#define T_ST_S1   0x10
 
#define T_ST_PS2   0x08 /* Set for Microchannel 228 */
 
#define T_ST_RDY   0x04 /* 5380 DRQ */
 
#define T_ST_TIM   0x02 /* indicates 40us watchdog timer fired */
 
#define T_ST_ZERO   0x01 /* Always zero */
 
#define T_5380_OFFSET   0x1d00 /* 8 registers here, see NCR5380.h */
 
#define T_DATA_REG_OFFSET   0x1e00 /* rw 512 bytes long */
 
#define CMD_PER_LUN   2
 
#define CAN_QUEUE   32
 
#define NCR5380_implementation_fields   void __iomem *base
 
#define NCR5380_local_declare()   void __iomem *base
 
#define NCR5380_setup(instance)   base = ((struct NCR5380_hostdata *)(instance->hostdata))->base
 
#define T128_address(reg)   (base + T_5380_OFFSET + ((reg) * 0x20))
 
#define NCR5380_read(reg)   readb(T128_address(reg))
 
#define NCR5380_write(reg, value)   writeb((value),(T128_address(reg)))
 
#define NCR5380_intr   t128_intr
 
#define do_NCR5380_intr   do_t128_intr
 
#define NCR5380_queue_command   t128_queue_command
 
#define NCR5380_abort   t128_abort
 
#define NCR5380_bus_reset   t128_bus_reset
 
#define NCR5380_proc_info   t128_proc_info
 
#define T128_IRQS   0xc4a8
 

Macro Definition Documentation

#define CAN_QUEUE   32

Definition at line 107 of file t128.h.

#define CMD_PER_LUN   2

Definition at line 103 of file t128.h.

#define do_NCR5380_intr   do_t128_intr

Definition at line 139 of file t128.h.

#define NCR5380_abort   t128_abort

Definition at line 141 of file t128.h.

#define NCR5380_bus_reset   t128_bus_reset

Definition at line 142 of file t128.h.

#define NCR5380_implementation_fields   void __iomem *base

Definition at line 112 of file t128.h.

#define NCR5380_intr   t128_intr

Definition at line 138 of file t128.h.

#define NCR5380_local_declare ( )    void __iomem *base

Definition at line 115 of file t128.h.

#define NCR5380_proc_info   t128_proc_info

Definition at line 143 of file t128.h.

#define NCR5380_queue_command   t128_queue_command

Definition at line 140 of file t128.h.

#define NCR5380_read (   reg)    readb(T128_address(reg))

Definition at line 124 of file t128.h.

#define NCR5380_setup (   instance)    base = ((struct NCR5380_hostdata *)(instance->hostdata))->base

Definition at line 118 of file t128.h.

#define NCR5380_write (   reg,
  value 
)    writeb((value),(T128_address(reg)))

Definition at line 125 of file t128.h.

#define T128_address (   reg)    (base + T_5380_OFFSET + ((reg) * 0x20))

Definition at line 121 of file t128.h.

#define T128_IRQS   0xc4a8

Definition at line 148 of file t128.h.

#define T128_PUBLIC_RELEASE   3

Definition at line 44 of file t128.h.

#define T_5380_OFFSET   0x1d00 /* 8 registers here, see NCR5380.h */

Definition at line 90 of file t128.h.

#define T_CONTROL_REG_OFFSET   0x1c00 /* rw */

Definition at line 76 of file t128.h.

#define T_CR_CT   0x02 /* Reset watchdog timer */

Definition at line 78 of file t128.h.

#define T_CR_INT   0x10 /* Enable interrupts */

Definition at line 77 of file t128.h.

#define T_DATA_REG_OFFSET   0x1e00 /* rw 512 bytes long */

Definition at line 92 of file t128.h.

#define T_RAM_OFFSET   0x1800

Definition at line 70 of file t128.h.

#define T_ROM_OFFSET   0

Definition at line 64 of file t128.h.

#define T_ST_BOOT   0x80 /* Boot switch */

Definition at line 81 of file t128.h.

#define T_ST_PS2   0x08 /* Set for Microchannel 228 */

Definition at line 85 of file t128.h.

#define T_ST_RDY   0x04 /* 5380 DRQ */

Definition at line 86 of file t128.h.

#define T_ST_S1   0x10

Definition at line 84 of file t128.h.

#define T_ST_S2   0x20 /* read 0 when switch is on, 1 off */

Definition at line 83 of file t128.h.

#define T_ST_S3   0x40 /* User settable switches, */

Definition at line 82 of file t128.h.

#define T_ST_TIM   0x02 /* indicates 40us watchdog timer fired */

Definition at line 87 of file t128.h.

#define T_ST_ZERO   0x01 /* Always zero */

Definition at line 88 of file t128.h.

#define T_STATUS_REG_OFFSET   0x1c20 /* ro */

Definition at line 80 of file t128.h.

#define TDEBUG   0

Definition at line 46 of file t128.h.

#define TDEBUG_INIT   0x1

Definition at line 47 of file t128.h.

#define TDEBUG_TRANSFER   0x2

Definition at line 48 of file t128.h.