Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
aha1542.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  mailbox
 
struct  chain
 
struct  ccb
 

Macros

#define STATUS(base)   base
 
#define STST   0x80 /* Self Test in Progress */
 
#define DIAGF   0x40 /* Internal Diagnostic Failure */
 
#define INIT   0x20 /* Mailbox Initialization Required */
 
#define IDLE   0x10 /* SCSI Host Adapter Idle */
 
#define CDF   0x08 /* Command/Data Out Port Full */
 
#define DF   0x04 /* Data In Port Full */
 
#define INVDCMD   0x01 /* Invalid H A Command */
 
#define STATMASK   0xfd /* 0x02 is reserved */
 
#define INTRFLAGS(base)   (STATUS(base)+2)
 
#define ANYINTR   0x80 /* Any Interrupt */
 
#define SCRD   0x08 /* SCSI Reset Detected */
 
#define HACC   0x04 /* HA Command Complete */
 
#define MBOA   0x02 /* MBO Empty */
 
#define MBIF   0x01 /* MBI Full */
 
#define INTRMASK   0x8f
 
#define CONTROL(base)   STATUS(base)
 
#define HRST   0x80 /* Hard Reset */
 
#define SRST   0x40 /* Soft Reset */
 
#define IRST   0x20 /* Interrupt Reset */
 
#define SCRST   0x10 /* SCSI Bus Reset */
 
#define DATA(base)   (STATUS(base)+1)
 
#define CMD_NOP   0x00 /* No Operation */
 
#define CMD_MBINIT   0x01 /* Mailbox Initialization */
 
#define CMD_START_SCSI   0x02 /* Start SCSI Command */
 
#define CMD_INQUIRY   0x04 /* Adapter Inquiry */
 
#define CMD_EMBOI   0x05 /* Enable MailBox Out Interrupt */
 
#define CMD_BUSON_TIME   0x07 /* Set Bus-On Time */
 
#define CMD_BUSOFF_TIME   0x08 /* Set Bus-Off Time */
 
#define CMD_DMASPEED   0x09 /* Set AT Bus Transfer Speed */
 
#define CMD_RETDEVS   0x0a /* Return Installed Devices */
 
#define CMD_RETCONF   0x0b /* Return Configuration Data */
 
#define CMD_RETSETUP   0x0d /* Return Setup Data */
 
#define CMD_ECHO   0x1f /* ECHO Command Data */
 
#define CMD_EXTBIOS   0x28 /* Return extend bios information only 1542C */
 
#define CMD_MBENABLE   0x29 /* Set Mailbox Interface enable only 1542C */
 
#define scsi2int(up)   ( (((long)*(up)) << 16) + (((long)(up)[1]) << 8) + ((long)(up)[2]) )
 
#define xany2scsi(up, p)
 
#define xscsi2int(up)
 
#define MAX_CDB   12
 
#define MAX_SENSE   14
 
#define AHA1542_MAILBOXES   8
 
#define AHA1542_SCATTER   16
 
#define AHA1542_CMDLUN   1
 

Macro Definition Documentation

#define AHA1542_CMDLUN   1

Definition at line 148 of file aha1542.h.

#define AHA1542_MAILBOXES   8

Definition at line 146 of file aha1542.h.

#define AHA1542_SCATTER   16

Definition at line 147 of file aha1542.h.

#define ANYINTR   0x80 /* Any Interrupt */

Definition at line 49 of file aha1542.h.

#define CDF   0x08 /* Command/Data Out Port Full */

Definition at line 43 of file aha1542.h.

#define CMD_BUSOFF_TIME   0x08 /* Set Bus-Off Time */

Definition at line 71 of file aha1542.h.

#define CMD_BUSON_TIME   0x07 /* Set Bus-On Time */

Definition at line 70 of file aha1542.h.

#define CMD_DMASPEED   0x09 /* Set AT Bus Transfer Speed */

Definition at line 72 of file aha1542.h.

#define CMD_ECHO   0x1f /* ECHO Command Data */

Definition at line 76 of file aha1542.h.

#define CMD_EMBOI   0x05 /* Enable MailBox Out Interrupt */

Definition at line 69 of file aha1542.h.

#define CMD_EXTBIOS   0x28 /* Return extend bios information only 1542C */

Definition at line 78 of file aha1542.h.

#define CMD_INQUIRY   0x04 /* Adapter Inquiry */

Definition at line 68 of file aha1542.h.

#define CMD_MBENABLE   0x29 /* Set Mailbox Interface enable only 1542C */

Definition at line 79 of file aha1542.h.

#define CMD_MBINIT   0x01 /* Mailbox Initialization */

Definition at line 66 of file aha1542.h.

#define CMD_NOP   0x00 /* No Operation */

Definition at line 65 of file aha1542.h.

#define CMD_RETCONF   0x0b /* Return Configuration Data */

Definition at line 74 of file aha1542.h.

#define CMD_RETDEVS   0x0a /* Return Installed Devices */

Definition at line 73 of file aha1542.h.

#define CMD_RETSETUP   0x0d /* Return Setup Data */

Definition at line 75 of file aha1542.h.

#define CMD_START_SCSI   0x02 /* Start SCSI Command */

Definition at line 67 of file aha1542.h.

#define CONTROL (   base)    STATUS(base)

Definition at line 57 of file aha1542.h.

#define DATA (   base)    (STATUS(base)+1)

Definition at line 64 of file aha1542.h.

#define DF   0x04 /* Data In Port Full */

Definition at line 44 of file aha1542.h.

#define DIAGF   0x40 /* Internal Diagnostic Failure */

Definition at line 40 of file aha1542.h.

#define HACC   0x04 /* HA Command Complete */

Definition at line 51 of file aha1542.h.

#define HRST   0x80 /* Hard Reset */

Definition at line 58 of file aha1542.h.

#define IDLE   0x10 /* SCSI Host Adapter Idle */

Definition at line 42 of file aha1542.h.

#define INIT   0x20 /* Mailbox Initialization Required */

Definition at line 41 of file aha1542.h.

#define INTRFLAGS (   base)    (STATUS(base)+2)

Definition at line 48 of file aha1542.h.

#define INTRMASK   0x8f

Definition at line 54 of file aha1542.h.

#define INVDCMD   0x01 /* Invalid H A Command */

Definition at line 45 of file aha1542.h.

#define IRST   0x20 /* Interrupt Reset */

Definition at line 60 of file aha1542.h.

#define MAX_CDB   12

Definition at line 112 of file aha1542.h.

#define MAX_SENSE   14

Definition at line 113 of file aha1542.h.

#define MBIF   0x01 /* MBI Full */

Definition at line 53 of file aha1542.h.

#define MBOA   0x02 /* MBO Empty */

Definition at line 52 of file aha1542.h.

#define SCRD   0x08 /* SCSI Reset Detected */

Definition at line 50 of file aha1542.h.

#define SCRST   0x10 /* SCSI Bus Reset */

Definition at line 61 of file aha1542.h.

#define scsi2int (   up)    ( (((long)*(up)) << 16) + (((long)(up)[1]) << 8) + ((long)(up)[2]) )

Definition at line 101 of file aha1542.h.

#define SRST   0x40 /* Soft Reset */

Definition at line 59 of file aha1542.h.

#define STATMASK   0xfd /* 0x02 is reserved */

Definition at line 46 of file aha1542.h.

#define STATUS (   base)    base

Definition at line 38 of file aha1542.h.

#define STST   0x80 /* Self Test in Progress */

Definition at line 39 of file aha1542.h.

#define xany2scsi (   up,
  p 
)
Value:
(up)[0] = ((long)(p)) >> 24; \
(up)[1] = ((long)(p)) >> 16; \
(up)[2] = ((long)(p)) >> 8; \
(up)[3] = ((long)(p));

Definition at line 103 of file aha1542.h.

#define xscsi2int (   up)
Value:
( (((long)(up)[0]) << 24) + (((long)(up)[1]) << 16) \
+ (((long)(up)[2]) << 8) + ((long)(up)[3]) )

Definition at line 109 of file aha1542.h.