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

Go to the source code of this file.

Macros

#define PAS16_PUBLIC_RELEASE   3
 
#define PDEBUG_INIT   0x1
 
#define PDEBUG_TRANSFER   0x2
 
#define PAS16_DEFAULT_BASE_1   0x388
 
#define PAS16_DEFAULT_BASE_2   0x384
 
#define PAS16_DEFAULT_BASE_3   0x38c
 
#define PAS16_DEFAULT_BASE_4   0x288
 
#define PAS16_DEFAULT_BOARD_1_IRQ   10
 
#define PAS16_DEFAULT_BOARD_2_IRQ   12
 
#define PAS16_DEFAULT_BOARD_3_IRQ   14
 
#define PAS16_DEFAULT_BOARD_4_IRQ   15
 
#define P_TIMEOUT_COUNTER_REG   0x4000
 
#define P_TC_DISABLE   0x80 /* Set to 0 to enable timeout int. */
 
#define P_TIMEOUT_STATUS_REG_OFFSET   0x4001
 
#define P_TS_TIM   0x80 /* check timeout status */
 
#define P_TS_ARM_DRQ_INT
 
#define P_TS_ENABLE_TO_ERR_INTERRUPT   /* Enable timeout error int. */
 
#define P_TS_ENABLE_WAIT   /* Enable Wait */
 
#define P_TS_CT
 
#define P_DATA_REG_OFFSET   0x5c00 /* rw */
 
#define P_STATUS_REG_OFFSET   0x5c01 /* ro */
 
#define P_ST_RDY   0x80 /* 5380 DDRQ Status */
 
#define P_IRQ_STATUS   0x5c03
 
#define P_IS_IRQ   0x80 /* DIRQ status */
 
#define PCB_CONFIG   0x803
 
#define MASTER_ADDRESS_PTR   0x9a01 /* Fixed position - no relo */
 
#define SYS_CONFIG_4   0x8003
 
#define WAIT_STATE   0xbc00
 
#define OPERATION_MODE_1   0xec03
 
#define IO_CONFIG_3   0xf002
 
#define CMD_PER_LUN   2
 
#define CAN_QUEUE   32
 
#define NCR5380_implementation_fields   volatile unsigned short io_port
 
#define NCR5380_local_declare()   volatile unsigned short io_port
 
#define NCR5380_setup(instance)   io_port = (instance)->io_port
 
#define PAS16_io_port(reg)   ( io_port + pas16_offset[(reg)] )
 
#define NCR5380_read(reg)   ( inb(PAS16_io_port(reg)) )
 
#define NCR5380_write(reg, value)   ( outb((value),PAS16_io_port(reg)) )
 
#define NCR5380_intr   pas16_intr
 
#define do_NCR5380_intr   do_pas16_intr
 
#define NCR5380_queue_command   pas16_queue_command
 
#define NCR5380_abort   pas16_abort
 
#define NCR5380_bus_reset   pas16_bus_reset
 
#define NCR5380_proc_info   pas16_proc_info
 
#define PAS16_IRQS   0xd4a8
 

Macro Definition Documentation

#define CAN_QUEUE   32

Definition at line 119 of file pas16.h.

#define CMD_PER_LUN   2

Definition at line 115 of file pas16.h.

#define do_NCR5380_intr   do_pas16_intr

Definition at line 152 of file pas16.h.

#define IO_CONFIG_3   0xf002

Definition at line 103 of file pas16.h.

#define MASTER_ADDRESS_PTR   0x9a01 /* Fixed position - no relo */

Definition at line 99 of file pas16.h.

#define NCR5380_abort   pas16_abort

Definition at line 154 of file pas16.h.

#define NCR5380_bus_reset   pas16_bus_reset

Definition at line 155 of file pas16.h.

#define NCR5380_implementation_fields   volatile unsigned short io_port

Definition at line 124 of file pas16.h.

#define NCR5380_intr   pas16_intr

Definition at line 151 of file pas16.h.

#define NCR5380_local_declare ( )    volatile unsigned short io_port

Definition at line 127 of file pas16.h.

#define NCR5380_proc_info   pas16_proc_info

Definition at line 156 of file pas16.h.

#define NCR5380_queue_command   pas16_queue_command

Definition at line 153 of file pas16.h.

#define NCR5380_read (   reg)    ( inb(PAS16_io_port(reg)) )

Definition at line 136 of file pas16.h.

#define NCR5380_setup (   instance)    io_port = (instance)->io_port

Definition at line 130 of file pas16.h.

#define NCR5380_write (   reg,
  value 
)    ( outb((value),PAS16_io_port(reg)) )

Definition at line 137 of file pas16.h.

#define OPERATION_MODE_1   0xec03

Definition at line 102 of file pas16.h.

#define P_DATA_REG_OFFSET   0x5c00 /* rw */

Definition at line 90 of file pas16.h.

#define P_IRQ_STATUS   0x5c03

Definition at line 95 of file pas16.h.

#define P_IS_IRQ   0x80 /* DIRQ status */

Definition at line 96 of file pas16.h.

#define P_ST_RDY   0x80 /* 5380 DDRQ Status */

Definition at line 93 of file pas16.h.

#define P_STATUS_REG_OFFSET   0x5c01 /* ro */

Definition at line 92 of file pas16.h.

#define P_TC_DISABLE   0x80 /* Set to 0 to enable timeout int. */

Definition at line 72 of file pas16.h.

#define P_TIMEOUT_COUNTER_REG   0x4000

Definition at line 71 of file pas16.h.

#define P_TIMEOUT_STATUS_REG_OFFSET   0x4001

Definition at line 76 of file pas16.h.

#define P_TS_ARM_DRQ_INT
Value:
0x08 /* Arm DRQ Int. When set high,
* the next rising edge will
* cause a CD-ROM interrupt.
* When set low, the interrupt
* will be cleared. There is
* no status available for
* this interrupt.
*/

Definition at line 79 of file pas16.h.

#define P_TS_CT
Value:
0x01 /* clear timeout. Note: writing
* to this register clears the
* timeout error int. or status
*/

Definition at line 83 of file pas16.h.

#define P_TS_ENABLE_TO_ERR_INTERRUPT   /* Enable timeout error int. */

Definition at line 80 of file pas16.h.

#define P_TS_ENABLE_WAIT   /* Enable Wait */

Definition at line 81 of file pas16.h.

#define P_TS_TIM   0x80 /* check timeout status */

Definition at line 77 of file pas16.h.

#define PAS16_DEFAULT_BASE_1   0x388

Definition at line 44 of file pas16.h.

#define PAS16_DEFAULT_BASE_2   0x384

Definition at line 45 of file pas16.h.

#define PAS16_DEFAULT_BASE_3   0x38c

Definition at line 46 of file pas16.h.

#define PAS16_DEFAULT_BASE_4   0x288

Definition at line 47 of file pas16.h.

#define PAS16_DEFAULT_BOARD_1_IRQ   10

Definition at line 49 of file pas16.h.

#define PAS16_DEFAULT_BOARD_2_IRQ   12

Definition at line 50 of file pas16.h.

#define PAS16_DEFAULT_BOARD_3_IRQ   14

Definition at line 51 of file pas16.h.

#define PAS16_DEFAULT_BOARD_4_IRQ   15

Definition at line 52 of file pas16.h.

#define PAS16_io_port (   reg)    ( io_port + pas16_offset[(reg)] )

Definition at line 133 of file pas16.h.

#define PAS16_IRQS   0xd4a8

Definition at line 161 of file pas16.h.

#define PAS16_PUBLIC_RELEASE   3

Definition at line 39 of file pas16.h.

#define PCB_CONFIG   0x803

Definition at line 98 of file pas16.h.

#define PDEBUG_INIT   0x1

Definition at line 41 of file pas16.h.

#define PDEBUG_TRANSFER   0x2

Definition at line 42 of file pas16.h.

#define SYS_CONFIG_4   0x8003

Definition at line 100 of file pas16.h.

#define WAIT_STATE   0xbc00

Definition at line 101 of file pas16.h.