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

Go to the source code of this file.

Data Structures

struct  diskparm
 
struct  sgentry
 
struct  user_sgentry
 
struct  sgentry64
 
struct  user_sgentry64
 
struct  sgentryraw
 
struct  user_sgentryraw
 
struct  sge_ieee1212
 
struct  sgmap
 
struct  user_sgmap
 
struct  sgmap64
 
struct  user_sgmap64
 
struct  sgmapraw
 
struct  user_sgmapraw
 
struct  creation_info
 
struct  aac_entry
 
struct  aac_qhdr
 
struct  aac_fib_xporthdr
 
struct  aac_fibhdr
 
struct  hw_fib
 
struct  aac_init
 
struct  adapter_ops
 
struct  aac_driver_ident
 
struct  aac_queue
 
struct  aac_queue_block
 
struct  sa_drawbridge_CSR
 
struct  sa_registers
 
struct  rx_mu_registers
 
struct  rx_inbound
 
struct  rx_registers
 
struct  rkt_registers
 
struct  src_mu_registers
 
struct  src_registers
 
struct  aac_fib_context
 
struct  sense_data
 
struct  fsa_dev_info
 
struct  fib
 
struct  aac_adapter_info
 
struct  aac_supplement_adapter_info
 
struct  aac_bus_info
 
struct  aac_bus_info_response
 
struct  aac_dev
 
struct  aac_read
 
struct  aac_read64
 
struct  aac_read_reply
 
struct  aac_write
 
struct  aac_write64
 
struct  aac_write_reply
 
struct  aac_raw_io
 
struct  aac_raw_io2
 
struct  aac_synchronize
 
struct  aac_synchronize_reply
 
struct  aac_power_management
 
struct  aac_pause
 
struct  aac_srb
 
struct  user_aac_srb
 
struct  aac_srb_reply
 
struct  aac_fsinfo
 
union  aac_contentinfo
 
struct  aac_get_config_status
 
struct  aac_get_config_status_resp
 
struct  aac_commit_config
 
struct  aac_get_container_count
 
struct  aac_get_container_count_resp
 
struct  aac_mntent
 
struct  aac_query_mount
 
struct  aac_mount
 
struct  aac_get_name
 
struct  aac_get_name_resp
 
struct  aac_get_serial
 
struct  aac_get_serial_resp
 
struct  aac_close
 
struct  aac_query_disk
 
struct  aac_delete_disk
 
struct  fib_ioctl
 
struct  revision
 
struct  aac_common
 
struct  aac_aifcmd
 

Macros

#define dprintk(x)
 
#define _nblank(x)   #x
 
#define nblank(x)   _nblank(x)[0]
 
#define AAC_DRIVER_BUILD   29800
 
#define AAC_DRIVER_BRANCH   "-ms"
 
#define MAXIMUM_NUM_CONTAINERS   32
 
#define AAC_NUM_MGT_FIB   8
 
#define AAC_NUM_IO_FIB   (512 - AAC_NUM_MGT_FIB)
 
#define AAC_NUM_FIB   (AAC_NUM_IO_FIB + AAC_NUM_MGT_FIB)
 
#define AAC_MAX_LUN   (8)
 
#define AAC_MAX_HOSTPHYSMEMPAGES   (0xfffff)
 
#define AAC_MAX_32BIT_SGBCOUNT   ((unsigned short)256)
 
#define AAC_DEBUG_INSTRUMENT_AIF_DELETE
 
#define CONTAINER_CHANNEL   (0)
 
#define CONTAINER_TO_CHANNEL(cont)   (CONTAINER_CHANNEL)
 
#define CONTAINER_TO_ID(cont)   (cont)
 
#define CONTAINER_TO_LUN(cont)   (0)
 
#define aac_phys_to_logical(x)   ((x)+1)
 
#define aac_logical_to_phys(x)   ((x)?(x)-1:0)
 
#define CT_NONE   0
 
#define CT_OK   218
 
#define FT_FILESYS   8 /* ADAPTEC's "FSA"(tm) filesystem */
 
#define FT_DRIVE   9 /* physical disk - addressable in scsi by bus/id/lun */
 
#define NUMBER_OF_COMM_QUEUES   8
 
#define HOST_HIGH_CMD_ENTRIES   4
 
#define HOST_NORM_CMD_ENTRIES   8
 
#define ADAP_HIGH_CMD_ENTRIES   4
 
#define ADAP_NORM_CMD_ENTRIES   512
 
#define HOST_HIGH_RESP_ENTRIES   4
 
#define HOST_NORM_RESP_ENTRIES   512
 
#define ADAP_HIGH_RESP_ENTRIES   4
 
#define ADAP_NORM_RESP_ENTRIES   8
 
#define TOTAL_QUEUE_ENTRIES
 
#define QUEUE_ALIGNMENT   16
 
#define HostNormCmdQue   1 /* Change in host normal priority command queue */
 
#define HostHighCmdQue   2 /* Change in host high priority command queue */
 
#define HostNormRespQue   3 /* Change in host normal priority response queue */
 
#define HostHighRespQue   4 /* Change in host high priority response queue */
 
#define AdapNormRespNotFull   5
 
#define AdapHighRespNotFull   6
 
#define AdapNormCmdNotFull   7
 
#define AdapHighCmdNotFull   8
 
#define SynchCommandComplete   9
 
#define AdapInternalError   0xfe /* The adapter detected an internal error shutting down */
 
#define AdapNormCmdQue   2
 
#define AdapHighCmdQue   3
 
#define AdapNormRespQue   6
 
#define AdapHighRespQue   7
 
#define HostShutdown   8
 
#define HostPowerFail   9
 
#define FatalCommError   10
 
#define HostNormRespNotFull   11
 
#define HostHighRespNotFull   12
 
#define HostNormCmdNotFull   13
 
#define HostHighCmdNotFull   14
 
#define FastIo   15
 
#define AdapPrintfDone   16
 
#define FIB_MAGIC   0x0001
 
#define FIB_MAGIC2   0x0004
 
#define FIB_MAGIC2_64   0x0005
 
#define FsaNormal   1
 
#define ALIGN32   32
 
#define TestCommandResponse   1
 
#define TestAdapterCommand   2
 
#define LastTestCommand   100
 
#define ReinitHostNormCommandQueue   101
 
#define ReinitHostHighCommandQueue   102
 
#define ReinitHostHighRespQueue   103
 
#define ReinitHostNormRespQueue   104
 
#define ReinitAdapNormCommandQueue   105
 
#define ReinitAdapHighCommandQueue   107
 
#define ReinitAdapHighRespQueue   108
 
#define ReinitAdapNormRespQueue   109
 
#define InterfaceShutdown   110
 
#define DmaCommandFib   120
 
#define StartProfile   121
 
#define TermProfile   122
 
#define SpeedTest   123
 
#define TakeABreakPt   124
 
#define RequestPerfData   125
 
#define SetInterruptDefTimer   126
 
#define SetInterruptDefCount   127
 
#define GetInterruptDefStatus   128
 
#define LastCommCommand   129
 
#define NuFileSystem   300
 
#define UFS   301
 
#define HostFileSystem   302
 
#define LastFileSystemCommand   303
 
#define ContainerCommand   500
 
#define ContainerCommand64   501
 
#define ContainerRawIo   502
 
#define ContainerRawIo2   503
 
#define ScsiPortCommand   600
 
#define ScsiPortCommand64   601
 
#define AifRequest   700
 
#define CheckRevision   701
 
#define FsaHostShutdown   702
 
#define RequestAdapterInfo   703
 
#define IsAdapterPaused   704
 
#define SendHostTime   705
 
#define RequestSupplementAdapterInfo   706
 
#define LastMiscCommand   707
 
#define ADAPTER_INIT_STRUCT_REVISION   3
 
#define ADAPTER_INIT_STRUCT_REVISION_4   4
 
#define ADAPTER_INIT_STRUCT_REVISION_6   6 /* PMC src */
 
#define ADAPTER_INIT_STRUCT_REVISION_7   7 /* Denali */
 
#define INITFLAGS_NEW_COMM_SUPPORTED   0x00000001
 
#define INITFLAGS_DRIVER_USES_UTC_TIME   0x00000010
 
#define INITFLAGS_DRIVER_SUPPORTS_PM   0x00000020
 
#define INITFLAGS_NEW_COMM_TYPE1_SUPPORTED   0x00000040
 
#define INITFLAGS_FAST_JBOD_SUPPORTED   0x00000080
 
#define INITFLAGS_NEW_COMM_TYPE2_SUPPORTED   0x00000100
 
#define FSAFS_NTC_GET_ADAPTER_FIB_CONTEXT   0x030b
 
#define FSAFS_NTC_FIB_CONTEXT   0x030c
 
#define AAC_QUIRK_31BIT   0x0001
 
#define AAC_QUIRK_34SG   0x0002
 
#define AAC_QUIRK_SLAVE   0x0004
 
#define AAC_QUIRK_MASTER   0x0008
 
#define AAC_QUIRK_17SG   0x0010
 
#define AAC_QUIRK_SCSI_32   0x0020
 
#define Mailbox0   SaDbCSR.MAILBOX0
 
#define Mailbox1   SaDbCSR.MAILBOX1
 
#define Mailbox2   SaDbCSR.MAILBOX2
 
#define Mailbox3   SaDbCSR.MAILBOX3
 
#define Mailbox4   SaDbCSR.MAILBOX4
 
#define Mailbox5   SaDbCSR.MAILBOX5
 
#define Mailbox6   SaDbCSR.MAILBOX6
 
#define Mailbox7   SaDbCSR.MAILBOX7
 
#define DoorbellReg_p   SaDbCSR.PRISETIRQ
 
#define DoorbellReg_s   SaDbCSR.SECSETIRQ
 
#define DoorbellClrReg_p   SaDbCSR.PRICLEARIRQ
 
#define DOORBELL_0   0x0001
 
#define DOORBELL_1   0x0002
 
#define DOORBELL_2   0x0004
 
#define DOORBELL_3   0x0008
 
#define DOORBELL_4   0x0010
 
#define DOORBELL_5   0x0020
 
#define DOORBELL_6   0x0040
 
#define PrintfReady   DOORBELL_5
 
#define PrintfDone   DOORBELL_5
 
#define Sa_MINIPORT_REVISION   1
 
#define sa_readw(AEP, CSR)   readl(&((AEP)->regs.sa->CSR))
 
#define sa_readl(AEP, CSR)   readl(&((AEP)->regs.sa->CSR))
 
#define sa_writew(AEP, CSR, value)   writew(value, &((AEP)->regs.sa->CSR))
 
#define sa_writel(AEP, CSR, value)   writel(value, &((AEP)->regs.sa->CSR))
 
#define INBOUNDDOORBELL_0   0x00000001
 
#define INBOUNDDOORBELL_1   0x00000002
 
#define INBOUNDDOORBELL_2   0x00000004
 
#define INBOUNDDOORBELL_3   0x00000008
 
#define INBOUNDDOORBELL_4   0x00000010
 
#define INBOUNDDOORBELL_5   0x00000020
 
#define INBOUNDDOORBELL_6   0x00000040
 
#define OUTBOUNDDOORBELL_0   0x00000001
 
#define OUTBOUNDDOORBELL_1   0x00000002
 
#define OUTBOUNDDOORBELL_2   0x00000004
 
#define OUTBOUNDDOORBELL_3   0x00000008
 
#define OUTBOUNDDOORBELL_4   0x00000010
 
#define InboundDoorbellReg   MUnit.IDR
 
#define OutboundDoorbellReg   MUnit.ODR
 
#define rx_readb(AEP, CSR)   readb(&((AEP)->regs.rx->CSR))
 
#define rx_readl(AEP, CSR)   readl(&((AEP)->regs.rx->CSR))
 
#define rx_writeb(AEP, CSR, value)   writeb(value, &((AEP)->regs.rx->CSR))
 
#define rx_writel(AEP, CSR, value)   writel(value, &((AEP)->regs.rx->CSR))
 
#define rkt_mu_registers   rx_mu_registers
 
#define rkt_inbound   rx_inbound
 
#define rkt_readb(AEP, CSR)   readb(&((AEP)->regs.rkt->CSR))
 
#define rkt_readl(AEP, CSR)   readl(&((AEP)->regs.rkt->CSR))
 
#define rkt_writeb(AEP, CSR, value)   writeb(value, &((AEP)->regs.rkt->CSR))
 
#define rkt_writel(AEP, CSR, value)   writel(value, &((AEP)->regs.rkt->CSR))
 
#define src_inbound   rx_inbound
 
#define src_readb(AEP, CSR)   readb(&((AEP)->regs.src.bar0->CSR))
 
#define src_readl(AEP, CSR)   readl(&((AEP)->regs.src.bar0->CSR))
 
#define src_writeb(AEP, CSR, value)
 
#define src_writel(AEP, CSR, value)
 
#define SRC_ODR_SHIFT   12
 
#define SRC_IDR_SHIFT   9
 
#define AAC_FEATURE_FALCON   cpu_to_le32(0x00000010)
 
#define AAC_FEATURE_JBOD   cpu_to_le32(0x08000000)
 
#define AAC_OPTION_MU_RESET   cpu_to_le32(0x00000001)
 
#define AAC_OPTION_IGNORE_RESET   cpu_to_le32(0x00000002)
 
#define AAC_OPTION_POWER_MANAGEMENT   cpu_to_le32(0x00000004)
 
#define AAC_OPTION_DOORBELL_RESET   cpu_to_le32(0x00004000)
 
#define AAC_SIS_VERSION_V3   3
 
#define AAC_SIS_SLOT_UNKNOWN   0xFF
 
#define GetBusInfo   0x00000009
 
#define AAC_BAT_REQ_PRESENT   (1)
 
#define AAC_BAT_REQ_NOTPRESENT   (2)
 
#define AAC_BAT_OPT_PRESENT   (3)
 
#define AAC_BAT_OPT_NOTPRESENT   (4)
 
#define AAC_BAT_NOT_SUPPORTED   (5)
 
#define AAC_CPU_SIMULATOR   (1)
 
#define AAC_CPU_I960   (2)
 
#define AAC_CPU_STRONGARM   (3)
 
#define AAC_OPT_SNAPSHOT   cpu_to_le32(1)
 
#define AAC_OPT_CLUSTERS   cpu_to_le32(1<<1)
 
#define AAC_OPT_WRITE_CACHE   cpu_to_le32(1<<2)
 
#define AAC_OPT_64BIT_DATA   cpu_to_le32(1<<3)
 
#define AAC_OPT_HOST_TIME_FIB   cpu_to_le32(1<<4)
 
#define AAC_OPT_RAID50   cpu_to_le32(1<<5)
 
#define AAC_OPT_4GB_WINDOW   cpu_to_le32(1<<6)
 
#define AAC_OPT_SCSI_UPGRADEABLE   cpu_to_le32(1<<7)
 
#define AAC_OPT_SOFT_ERR_REPORT   cpu_to_le32(1<<8)
 
#define AAC_OPT_SUPPORTED_RECONDITION   cpu_to_le32(1<<9)
 
#define AAC_OPT_SGMAP_HOST64   cpu_to_le32(1<<10)
 
#define AAC_OPT_ALARM   cpu_to_le32(1<<11)
 
#define AAC_OPT_NONDASD   cpu_to_le32(1<<12)
 
#define AAC_OPT_SCSI_MANAGED   cpu_to_le32(1<<13)
 
#define AAC_OPT_RAID_SCSI_MODE   cpu_to_le32(1<<14)
 
#define AAC_OPT_SUPPLEMENT_ADAPTER_INFO   cpu_to_le32(1<<16)
 
#define AAC_OPT_NEW_COMM   cpu_to_le32(1<<17)
 
#define AAC_OPT_NEW_COMM_64   cpu_to_le32(1<<18)
 
#define AAC_OPT_NEW_COMM_TYPE1   cpu_to_le32(1<<28)
 
#define AAC_OPT_NEW_COMM_TYPE2   cpu_to_le32(1<<29)
 
#define AAC_OPT_NEW_COMM_TYPE3   cpu_to_le32(1<<30)
 
#define AAC_OPT_NEW_COMM_TYPE4   cpu_to_le32(1<<31)
 
#define AAC_MIN_FOOTPRINT_SIZE   8192
 
#define AAC_MIN_SRC_BAR0_SIZE   0x400000
 
#define AAC_MIN_SRC_BAR1_SIZE   0x800
 
#define AAC_MIN_SRCV_BAR0_SIZE   0x100000
 
#define AAC_MIN_SRCV_BAR1_SIZE   0x400
 
#define AAC_COMM_PRODUCER   0
 
#define AAC_COMM_MESSAGE   1
 
#define AAC_COMM_MESSAGE_TYPE1   3
 
#define AAC_COMM_MESSAGE_TYPE2   4
 
#define aac_adapter_interrupt(dev)   (dev)->a_ops.adapter_interrupt(dev)
 
#define aac_adapter_notify(dev, event)   (dev)->a_ops.adapter_notify(dev, event)
 
#define aac_adapter_disable_int(dev)   (dev)->a_ops.adapter_disable_int(dev)
 
#define aac_adapter_enable_int(dev)   (dev)->a_ops.adapter_enable_int(dev)
 
#define aac_adapter_sync_cmd(dev, command, p1, p2, p3, p4, p5, p6, status, r1, r2, r3, r4)   (dev)->a_ops.adapter_sync_cmd(dev, command, p1, p2, p3, p4, p5, p6, status, r1, r2, r3, r4)
 
#define aac_adapter_check_health(dev)   (dev)->a_ops.adapter_check_health(dev)
 
#define aac_adapter_restart(dev, bled)   (dev)->a_ops.adapter_restart(dev,bled)
 
#define aac_adapter_ioremap(dev, size)   (dev)->a_ops.adapter_ioremap(dev, size)
 
#define aac_adapter_deliver(fib)   ((fib)->dev)->a_ops.adapter_deliver(fib)
 
#define aac_adapter_bounds(dev, cmd, lba)   dev->a_ops.adapter_bounds(dev,cmd,lba)
 
#define aac_adapter_read(fib, cmd, lba, count)   ((fib)->dev)->a_ops.adapter_read(fib,cmd,lba,count)
 
#define aac_adapter_write(fib, cmd, lba, count, fua)   ((fib)->dev)->a_ops.adapter_write(fib,cmd,lba,count,fua)
 
#define aac_adapter_scsi(fib, cmd)   ((fib)->dev)->a_ops.adapter_scsi(fib,cmd)
 
#define aac_adapter_comm(dev, comm)   (dev)->a_ops.adapter_comm(dev, comm)
 
#define FIB_CONTEXT_FLAG_TIMED_OUT   (0x00000001)
 
#define FIB_CONTEXT_FLAG   (0x00000002)
 
#define FIB_CONTEXT_FLAG_WAIT   (0x00000004)
 
#define FIB_CONTEXT_FLAG_FASTRESP   (0x00000008)
 
#define Null   0
 
#define GetAttributes   1
 
#define SetAttributes   2
 
#define Lookup   3
 
#define ReadLink   4
 
#define Read   5
 
#define Write   6
 
#define Create   7
 
#define MakeDirectory   8
 
#define SymbolicLink   9
 
#define MakeNode   10
 
#define Removex   11
 
#define RemoveDirectoryx   12
 
#define Rename   13
 
#define Link   14
 
#define ReadDirectory   15
 
#define ReadDirectoryPlus   16
 
#define FileSystemStatus   17
 
#define FileSystemInfo   18
 
#define PathConfigure   19
 
#define Commit   20
 
#define Mount   21
 
#define UnMount   22
 
#define Newfs   23
 
#define FsCheck   24
 
#define FsSync   25
 
#define SimReadWrite   26
 
#define SetFileSystemStatus   27
 
#define BlockRead   28
 
#define BlockWrite   29
 
#define NvramIoctl   30
 
#define FsSyncWait   31
 
#define ClearArchiveBit   32
 
#define SetAcl   33
 
#define GetAcl   34
 
#define AssignAcl   35
 
#define FaultInsertion   36 /* Fault Insertion Command */
 
#define CrazyCache   37 /* Crazycache */
 
#define MAX_FSACOMMAND_NUM   38
 
#define ST_OK   0
 
#define ST_PERM   1
 
#define ST_NOENT   2
 
#define ST_IO   5
 
#define ST_NXIO   6
 
#define ST_E2BIG   7
 
#define ST_ACCES   13
 
#define ST_EXIST   17
 
#define ST_XDEV   18
 
#define ST_NODEV   19
 
#define ST_NOTDIR   20
 
#define ST_ISDIR   21
 
#define ST_INVAL   22
 
#define ST_FBIG   27
 
#define ST_NOSPC   28
 
#define ST_ROFS   30
 
#define ST_MLINK   31
 
#define ST_WOULDBLOCK   35
 
#define ST_NAMETOOLONG   63
 
#define ST_NOTEMPTY   66
 
#define ST_DQUOT   69
 
#define ST_STALE   70
 
#define ST_REMOTE   71
 
#define ST_NOT_READY   72
 
#define ST_BADHANDLE   10001
 
#define ST_NOT_SYNC   10002
 
#define ST_BAD_COOKIE   10003
 
#define ST_NOTSUPP   10004
 
#define ST_TOOSMALL   10005
 
#define ST_SERVERFAULT   10006
 
#define ST_BADTYPE   10007
 
#define ST_JUKEBOX   10008
 
#define ST_NOTMOUNTED   10009
 
#define ST_MAINTMODE   10010
 
#define ST_STALEACL   10011
 
#define CACHE_CSTABLE   1
 
#define CACHE_UNSTABLE   2
 
#define CMFILE_SYNCH_NVRAM   1
 
#define CMDATA_SYNCH_NVRAM   2
 
#define CMFILE_SYNCH   3
 
#define CMDATA_SYNCH   4
 
#define CMUNSTABLE   5
 
#define RIO_TYPE_WRITE   0x0000
 
#define RIO_TYPE_READ   0x0001
 
#define RIO_SUREWRITE   0x0008
 
#define RIO2_IO_TYPE   0x0003
 
#define RIO2_IO_TYPE_WRITE   0x0000
 
#define RIO2_IO_TYPE_READ   0x0001
 
#define RIO2_IO_TYPE_VERIFY   0x0002
 
#define RIO2_IO_ERROR   0x0004
 
#define RIO2_IO_SUREWRITE   0x0008
 
#define RIO2_SGL_CONFORMANT   0x0010
 
#define RIO2_SG_FORMAT   0xF000
 
#define RIO2_SG_FORMAT_ARC   0x0000
 
#define RIO2_SG_FORMAT_SRL   0x1000
 
#define RIO2_SG_FORMAT_IEEE1212   0x2000
 
#define CT_FLUSH_CACHE   129
 
#define CT_POWER_MANAGEMENT   245
 
#define CT_PM_START_UNIT   2
 
#define CT_PM_STOP_UNIT   3
 
#define CT_PM_UNIT_IMMEDIATE   1
 
#define CT_PAUSE_IO   65
 
#define CT_RELEASE_IO   66
 
#define AAC_SENSE_BUFFERSIZE   30
 
#define SRB_NoDataXfer   0x0000
 
#define SRB_DisableDisconnect   0x0004
 
#define SRB_DisableSynchTransfer   0x0008
 
#define SRB_BypassFrozenQueue   0x0010
 
#define SRB_DisableAutosense   0x0020
 
#define SRB_DataIn   0x0040
 
#define SRB_DataOut   0x0080
 
#define SRBF_ExecuteScsi   0x0000
 
#define SRBF_ClaimDevice   0x0001
 
#define SRBF_IO_Control   0x0002
 
#define SRBF_ReceiveEvent   0x0003
 
#define SRBF_ReleaseQueue   0x0004
 
#define SRBF_AttachDevice   0x0005
 
#define SRBF_ReleaseDevice   0x0006
 
#define SRBF_Shutdown   0x0007
 
#define SRBF_Flush   0x0008
 
#define SRBF_AbortCommand   0x0010
 
#define SRBF_ReleaseRecovery   0x0011
 
#define SRBF_ResetBus   0x0012
 
#define SRBF_ResetDevice   0x0013
 
#define SRBF_TerminateIO   0x0014
 
#define SRBF_FlushQueue   0x0015
 
#define SRBF_RemoveDevice   0x0016
 
#define SRBF_DomainValidation   0x0017
 
#define SRB_STATUS_PENDING   0x00
 
#define SRB_STATUS_SUCCESS   0x01
 
#define SRB_STATUS_ABORTED   0x02
 
#define SRB_STATUS_ABORT_FAILED   0x03
 
#define SRB_STATUS_ERROR   0x04
 
#define SRB_STATUS_BUSY   0x05
 
#define SRB_STATUS_INVALID_REQUEST   0x06
 
#define SRB_STATUS_INVALID_PATH_ID   0x07
 
#define SRB_STATUS_NO_DEVICE   0x08
 
#define SRB_STATUS_TIMEOUT   0x09
 
#define SRB_STATUS_SELECTION_TIMEOUT   0x0A
 
#define SRB_STATUS_COMMAND_TIMEOUT   0x0B
 
#define SRB_STATUS_MESSAGE_REJECTED   0x0D
 
#define SRB_STATUS_BUS_RESET   0x0E
 
#define SRB_STATUS_PARITY_ERROR   0x0F
 
#define SRB_STATUS_REQUEST_SENSE_FAILED   0x10
 
#define SRB_STATUS_NO_HBA   0x11
 
#define SRB_STATUS_DATA_OVERRUN   0x12
 
#define SRB_STATUS_UNEXPECTED_BUS_FREE   0x13
 
#define SRB_STATUS_PHASE_SEQUENCE_FAILURE   0x14
 
#define SRB_STATUS_BAD_SRB_BLOCK_LENGTH   0x15
 
#define SRB_STATUS_REQUEST_FLUSHED   0x16
 
#define SRB_STATUS_DELAYED_RETRY   0x17
 
#define SRB_STATUS_INVALID_LUN   0x20
 
#define SRB_STATUS_INVALID_TARGET_ID   0x21
 
#define SRB_STATUS_BAD_FUNCTION   0x22
 
#define SRB_STATUS_ERROR_RECOVERY   0x23
 
#define SRB_STATUS_NOT_STARTED   0x24
 
#define SRB_STATUS_NOT_IN_USE   0x30
 
#define SRB_STATUS_FORCE_ABORT   0x31
 
#define SRB_STATUS_DOMAIN_VALIDATION_FAIL   0x32
 
#define VM_Null   0
 
#define VM_NameServe   1
 
#define VM_ContainerConfig   2
 
#define VM_Ioctl   3
 
#define VM_FilesystemIoctl   4
 
#define VM_CloseAll   5
 
#define VM_CtBlockRead   6
 
#define VM_CtBlockWrite   7
 
#define VM_SliceBlockRead   8 /* raw access to configured "storage objects" */
 
#define VM_SliceBlockWrite   9
 
#define VM_DriveBlockRead   10 /* raw access to physical devices */
 
#define VM_DriveBlockWrite   11
 
#define VM_EnclosureMgt   12 /* enclosure management */
 
#define VM_Unused   13 /* used to be diskset management */
 
#define VM_CtBlockVerify   14
 
#define VM_CtPerf   15 /* performance test */
 
#define VM_CtBlockRead64   16
 
#define VM_CtBlockWrite64   17
 
#define VM_CtBlockVerify64   18
 
#define VM_CtHostRead64   19
 
#define VM_CtHostWrite64   20
 
#define VM_DrvErrTblLog   21
 
#define VM_NameServe64   22
 
#define MAX_VMCOMMAND_NUM   23 /* used for sizing stats array - leave last */
 
#define CT_GET_CONFIG_STATUS   147
 
#define CFACT_CONTINUE   0
 
#define CFACT_PAUSE   1
 
#define CFACT_ABORT   2
 
#define CT_COMMIT_CONFIG   152
 
#define CT_GET_CONTAINER_COUNT   4
 
#define FSCS_NOTCLEAN   0x0001 /* fsck is necessary before mounting */
 
#define FSCS_READONLY   0x0002 /* possible result of broken mirror */
 
#define FSCS_HIDDEN   0x0004 /* should be ignored - set during a clear */
 
#define FSCS_NOT_READY   0x0008 /* Array spinning up to fulfil request */
 
#define CT_READ_NAME   130
 
#define CT_CID_TO_32BITS_UID   165
 
#define CTL_CODE(function, method)
 
#define METHOD_BUFFERED   0
 
#define METHOD_NEITHER   3
 
#define FSACTL_SENDFIB   CTL_CODE(2050, METHOD_BUFFERED)
 
#define FSACTL_SEND_RAW_SRB   CTL_CODE(2067, METHOD_BUFFERED)
 
#define FSACTL_DELETE_DISK   0x163
 
#define FSACTL_QUERY_DISK   0x173
 
#define FSACTL_OPEN_GET_ADAPTER_FIB   CTL_CODE(2100, METHOD_BUFFERED)
 
#define FSACTL_GET_NEXT_ADAPTER_FIB   CTL_CODE(2101, METHOD_BUFFERED)
 
#define FSACTL_CLOSE_GET_ADAPTER_FIB   CTL_CODE(2102, METHOD_BUFFERED)
 
#define FSACTL_MINIPORT_REV_CHECK   CTL_CODE(2107, METHOD_BUFFERED)
 
#define FSACTL_GET_PCI_INFO   CTL_CODE(2119, METHOD_BUFFERED)
 
#define FSACTL_FORCE_DELETE_DISK   CTL_CODE(2120, METHOD_NEITHER)
 
#define FSACTL_GET_CONTAINERS   2131
 
#define FSACTL_SEND_LARGE_FIB   CTL_CODE(2138, METHOD_BUFFERED)
 
#define FIB_COUNTER_INCREMENT(counter)
 
#define BREAKPOINT_REQUEST   0x00000004
 
#define INIT_STRUCT_BASE_ADDRESS   0x00000005
 
#define READ_PERMANENT_PARAMETERS   0x0000000a
 
#define WRITE_PERMANENT_PARAMETERS   0x0000000b
 
#define HOST_CRASHING   0x0000000d
 
#define SEND_SYNCHRONOUS_FIB   0x0000000c
 
#define COMMAND_POST_RESULTS   0x00000014
 
#define GET_ADAPTER_PROPERTIES   0x00000019
 
#define GET_DRIVER_BUFFER_PROPERTIES   0x00000023
 
#define RCV_TEMP_READINGS   0x00000025
 
#define GET_COMM_PREFERRED_SETTINGS   0x00000026
 
#define IOP_RESET   0x00001000
 
#define IOP_RESET_ALWAYS   0x00001001
 
#define RE_INIT_ADAPTER   0x000000ee
 
#define SELF_TEST_FAILED   0x00000004
 
#define MONITOR_PANIC   0x00000020
 
#define KERNEL_UP_AND_RUNNING   0x00000080
 
#define KERNEL_PANIC   0x00000100
 
#define DoorBellSyncCmdAvailable   (1<<0) /* Host -> Adapter */
 
#define DoorBellPrintfDone   (1<<5) /* Host -> Adapter */
 
#define DoorBellAdapterNormCmdReady   (1<<1) /* Adapter -> Host */
 
#define DoorBellAdapterNormRespReady   (1<<2) /* Adapter -> Host */
 
#define DoorBellAdapterNormCmdNotFull   (1<<3) /* Adapter -> Host */
 
#define DoorBellAdapterNormRespNotFull   (1<<4) /* Adapter -> Host */
 
#define DoorBellPrintfReady   (1<<5) /* Adapter -> Host */
 
#define DoorBellAifPending   (1<<6) /* Adapter -> Host */
 
#define PmDoorBellResponseSent   (1<<1) /* Adapter -> Host */
 
#define AifCmdEventNotify   1 /* Notify of event */
 
#define AifEnConfigChange   3 /* Adapter configuration change */
 
#define AifEnContainerChange   4 /* Container configuration change */
 
#define AifEnDeviceFailure   5 /* SCSI device failed */
 
#define AifEnEnclosureManagement   13 /* EM_DRIVE_* */
 
#define EM_DRIVE_INSERTION   31
 
#define EM_DRIVE_REMOVAL   32
 
#define AifEnBatteryEvent   14 /* Change in Battery State */
 
#define AifEnAddContainer   15 /* A new array was created */
 
#define AifEnDeleteContainer   16 /* A container was deleted */
 
#define AifEnExpEvent   23 /* Firmware Event Log */
 
#define AifExeFirmwarePanic   3 /* Firmware Event Panic */
 
#define AifHighPriority   3 /* Highest Priority Event */
 
#define AifEnAddJBOD   30 /* JBOD created */
 
#define AifEnDeleteJBOD   31 /* JBOD deleted */
 
#define AifCmdJobProgress   2 /* Progress report */
 
#define AifJobCtrZero   101 /* Array Zero progress */
 
#define AifJobStsSuccess   1 /* Job completes */
 
#define AifJobStsRunning   102 /* Job running */
 
#define AifCmdAPIReport   3 /* Report from other user of API */
 
#define AifCmdDriverNotify   4 /* Notify host driver of event */
 
#define AifDenMorphComplete   200 /* A morph operation completed */
 
#define AifDenVolumeExtendComplete   201 /* A volume extend completed */
 
#define AifReqJobList   100 /* Gets back complete job list */
 
#define AifReqJobsForCtr   101 /* Gets back jobs for specific container */
 
#define AifReqJobsForScsi   102 /* Gets back jobs for specific SCSI device */
 
#define AifReqJobReport   103 /* Gets back a specific job report or list of them */
 
#define AifReqTerminateJob   104 /* Terminates job */
 
#define AifReqSuspendJob   105 /* Suspends a job */
 
#define AifReqResumeJob   106 /* Resumes a job */
 
#define AifReqSendAPIReport   107 /* API generic report requests */
 
#define AifReqAPIJobStart   108 /* Start a job from the API */
 
#define AifReqAPIJobUpdate   109 /* Update a job report from the API */
 
#define AifReqAPIJobFinish   110 /* Finish a job from the API */
 
#define AifReqEvent   200
 
#define AAC_OWNER_MIDLEVEL   0x101
 
#define AAC_OWNER_LOWLEVEL   0x102
 
#define AAC_OWNER_ERROR_HANDLER   0x103
 
#define AAC_OWNER_FIRMWARE   0x106
 
#define fib_data(fibctx)   ((void *)(fibctx)->hw_fib_va->data)
 
#define shost_to_class(shost)   &shost->shost_dev
 

Typedefs

typedef void(* fib_callback )(void *ctxt, struct fib *fibctx)
 

Enumerations

enum  aac_queue_types {
  HostNormCmdQueue = 0, HostHighCmdQueue, AdapNormCmdQueue, AdapHighCmdQueue,
  HostNormRespQueue, HostHighRespQueue, AdapNormRespQueue, AdapHighRespQueue
}
 
enum  fib_xfer_state {
  HostOwned = (1<<0), AdapterOwned = (1<<1), FibInitialized = (1<<2), FibEmpty = (1<<3),
  AllocatedFromPool = (1<<4), SentFromHost = (1<<5), SentFromAdapter = (1<<6), ResponseExpected = (1<<7),
  NoResponseExpected = (1<<8), AdapterProcessed = (1<<9), HostProcessed = (1<<10), HighPriority = (1<<11),
  NormalPriority = (1<<12), Async = (1<<13), AsyncIo = (1<<13), PageFileIo = (1<<14),
  ShutdownRequest = (1<<15), LazyWrite = (1<<16), AdapterMicroFib = (1<<17), BIOSFibPath = (1<<18),
  FastResponseCapable = (1<<19), ApiFib = (1<<20), NoMoreAifDataAvailable = (1<<21)
}
 
enum  aac_log_level {
  LOG_AAC_INIT = 10, LOG_AAC_INFORMATIONAL = 20, LOG_AAC_WARNING = 30, LOG_AAC_LOW_ERROR = 40,
  LOG_AAC_MEDIUM_ERROR = 50, LOG_AAC_HIGH_ERROR = 60, LOG_AAC_PANIC = 70, LOG_AAC_DEBUG = 80,
  LOG_AAC_WINDBG_PRINT = 90
}
 

Functions

const charaac_driverinfo (struct Scsi_Host *)
 
struct fibaac_fib_alloc (struct aac_dev *dev)
 
int aac_fib_setup (struct aac_dev *dev)
 
void aac_fib_map_free (struct aac_dev *dev)
 
void aac_fib_free (struct fib *context)
 
void aac_fib_init (struct fib *context)
 
void aac_printf (struct aac_dev *dev, u32 val)
 
int aac_fib_send (u16 command, struct fib *context, unsigned long size, int priority, int wait, int reply, fib_callback callback, void *ctxt)
 
int aac_consumer_get (struct aac_dev *dev, struct aac_queue *q, struct aac_entry **entry)
 
void aac_consumer_free (struct aac_dev *dev, struct aac_queue *q, u32 qnum)
 
int aac_fib_complete (struct fib *context)
 
struct aac_devaac_init_adapter (struct aac_dev *dev)
 
int aac_get_config_status (struct aac_dev *dev, int commit_flag)
 
int aac_get_containers (struct aac_dev *dev)
 
int aac_scsi_cmd (struct scsi_cmnd *cmd)
 
int aac_dev_ioctl (struct aac_dev *dev, int cmd, void __user *arg)
 
ssize_t aac_get_serial_number (struct device *dev, char *buf)
 
int aac_do_ioctl (struct aac_dev *dev, int cmd, void __user *arg)
 
int aac_rx_init (struct aac_dev *dev)
 
int aac_rkt_init (struct aac_dev *dev)
 
int aac_nark_init (struct aac_dev *dev)
 
int aac_sa_init (struct aac_dev *dev)
 
int aac_src_init (struct aac_dev *dev)
 
int aac_srcv_init (struct aac_dev *dev)
 
int aac_queue_get (struct aac_dev *dev, u32 *index, u32 qid, struct hw_fib *hw_fib, int wait, struct fib *fibptr, unsigned long *nonotify)
 
unsigned int aac_response_normal (struct aac_queue *q)
 
unsigned int aac_command_normal (struct aac_queue *q)
 
unsigned int aac_intr_normal (struct aac_dev *dev, u32 Index, int isAif, int isFastResponse, struct hw_fib *aif_fib)
 
int aac_reset_adapter (struct aac_dev *dev, int forced)
 
int aac_check_health (struct aac_dev *dev)
 
int aac_command_thread (void *data)
 
int aac_close_fib_context (struct aac_dev *dev, struct aac_fib_context *fibctx)
 
int aac_fib_adapter_complete (struct fib *fibptr, unsigned short size)
 
struct aac_driver_identaac_get_driver_ident (int devtype)
 
int aac_get_adapter_info (struct aac_dev *dev)
 
int aac_send_shutdown (struct aac_dev *dev)
 
int aac_probe_container (struct aac_dev *dev, int cid)
 
int _aac_rx_init (struct aac_dev *dev)
 
int aac_rx_select_comm (struct aac_dev *dev, int comm)
 
int aac_rx_deliver_producer (struct fib *fib)
 
charget_container_type (unsigned type)
 

Variables

struct aac_common aac_config
 
int numacb
 
int acbsize
 
char aac_driver_version []
 
int startup_timeout
 
int aif_timeout
 
int expose_physicals
 
int aac_reset_devices
 
int aac_msi
 
int aac_commit
 
int update_interval
 
int check_interval
 
int aac_check_reset
 

Macro Definition Documentation

#define _nblank (   x)    #x

Definition at line 5 of file aacraid.h.

#define aac_adapter_bounds (   dev,
  cmd,
  lba 
)    dev->a_ops.adapter_bounds(dev,cmd,lba)

Definition at line 1179 of file aacraid.h.

#define aac_adapter_check_health (   dev)    (dev)->a_ops.adapter_check_health(dev)

Definition at line 1167 of file aacraid.h.

#define aac_adapter_comm (   dev,
  comm 
)    (dev)->a_ops.adapter_comm(dev, comm)

Definition at line 1191 of file aacraid.h.

#define aac_adapter_deliver (   fib)    ((fib)->dev)->a_ops.adapter_deliver(fib)

Definition at line 1176 of file aacraid.h.

#define aac_adapter_disable_int (   dev)    (dev)->a_ops.adapter_disable_int(dev)

Definition at line 1158 of file aacraid.h.

#define aac_adapter_enable_int (   dev)    (dev)->a_ops.adapter_enable_int(dev)

Definition at line 1161 of file aacraid.h.

#define aac_adapter_interrupt (   dev)    (dev)->a_ops.adapter_interrupt(dev)

Definition at line 1152 of file aacraid.h.

#define aac_adapter_ioremap (   dev,
  size 
)    (dev)->a_ops.adapter_ioremap(dev, size)

Definition at line 1173 of file aacraid.h.

#define aac_adapter_notify (   dev,
  event 
)    (dev)->a_ops.adapter_notify(dev, event)

Definition at line 1155 of file aacraid.h.

#define aac_adapter_read (   fib,
  cmd,
  lba,
  count 
)    ((fib)->dev)->a_ops.adapter_read(fib,cmd,lba,count)

Definition at line 1182 of file aacraid.h.

#define aac_adapter_restart (   dev,
  bled 
)    (dev)->a_ops.adapter_restart(dev,bled)

Definition at line 1170 of file aacraid.h.

#define aac_adapter_scsi (   fib,
  cmd 
)    ((fib)->dev)->a_ops.adapter_scsi(fib,cmd)

Definition at line 1188 of file aacraid.h.

#define aac_adapter_sync_cmd (   dev,
  command,
  p1,
  p2,
  p3,
  p4,
  p5,
  p6,
  status,
  r1,
  r2,
  r3,
  r4 
)    (dev)->a_ops.adapter_sync_cmd(dev, command, p1, p2, p3, p4, p5, p6, status, r1, r2, r3, r4)

Definition at line 1164 of file aacraid.h.

#define aac_adapter_write (   fib,
  cmd,
  lba,
  count,
  fua 
)    ((fib)->dev)->a_ops.adapter_write(fib,cmd,lba,count,fua)

Definition at line 1185 of file aacraid.h.

#define AAC_BAT_NOT_SUPPORTED   (5)

Definition at line 991 of file aacraid.h.

#define AAC_BAT_OPT_NOTPRESENT   (4)

Definition at line 990 of file aacraid.h.

#define AAC_BAT_OPT_PRESENT   (3)

Definition at line 989 of file aacraid.h.

#define AAC_BAT_REQ_NOTPRESENT   (2)

Definition at line 988 of file aacraid.h.

#define AAC_BAT_REQ_PRESENT   (1)

Definition at line 987 of file aacraid.h.

#define AAC_COMM_MESSAGE   1

Definition at line 1136 of file aacraid.h.

#define AAC_COMM_MESSAGE_TYPE1   3

Definition at line 1137 of file aacraid.h.

#define AAC_COMM_MESSAGE_TYPE2   4

Definition at line 1138 of file aacraid.h.

#define AAC_COMM_PRODUCER   0

Definition at line 1135 of file aacraid.h.

#define AAC_CPU_I960   (2)

Definition at line 996 of file aacraid.h.

#define AAC_CPU_SIMULATOR   (1)

Definition at line 995 of file aacraid.h.

#define AAC_CPU_STRONGARM   (3)

Definition at line 997 of file aacraid.h.

#define AAC_DEBUG_INSTRUMENT_AIF_DELETE

Definition at line 29 of file aacraid.h.

#define AAC_DRIVER_BRANCH   "-ms"

Definition at line 16 of file aacraid.h.

#define AAC_DRIVER_BUILD   29800

Definition at line 15 of file aacraid.h.

#define AAC_FEATURE_FALCON   cpu_to_le32(0x00000010)

Definition at line 952 of file aacraid.h.

#define AAC_FEATURE_JBOD   cpu_to_le32(0x08000000)

Definition at line 953 of file aacraid.h.

#define aac_logical_to_phys (   x)    ((x)?(x)-1:0)

Definition at line 40 of file aacraid.h.

#define AAC_MAX_32BIT_SGBCOUNT   ((unsigned short)256)

Definition at line 27 of file aacraid.h.

#define AAC_MAX_HOSTPHYSMEMPAGES   (0xfffff)

Definition at line 26 of file aacraid.h.

#define AAC_MAX_LUN   (8)

Definition at line 24 of file aacraid.h.

#define AAC_MIN_FOOTPRINT_SIZE   8192

Definition at line 1100 of file aacraid.h.

#define AAC_MIN_SRC_BAR0_SIZE   0x400000

Definition at line 1101 of file aacraid.h.

#define AAC_MIN_SRC_BAR1_SIZE   0x800

Definition at line 1102 of file aacraid.h.

#define AAC_MIN_SRCV_BAR0_SIZE   0x100000

Definition at line 1103 of file aacraid.h.

#define AAC_MIN_SRCV_BAR1_SIZE   0x400

Definition at line 1104 of file aacraid.h.

#define AAC_NUM_FIB   (AAC_NUM_IO_FIB + AAC_NUM_MGT_FIB)

Definition at line 22 of file aacraid.h.

#define AAC_NUM_IO_FIB   (512 - AAC_NUM_MGT_FIB)

Definition at line 21 of file aacraid.h.

#define AAC_NUM_MGT_FIB   8

Definition at line 20 of file aacraid.h.

#define AAC_OPT_4GB_WINDOW   cpu_to_le32(1<<6)

Definition at line 1008 of file aacraid.h.

#define AAC_OPT_64BIT_DATA   cpu_to_le32(1<<3)

Definition at line 1005 of file aacraid.h.

#define AAC_OPT_ALARM   cpu_to_le32(1<<11)

Definition at line 1013 of file aacraid.h.

#define AAC_OPT_CLUSTERS   cpu_to_le32(1<<1)

Definition at line 1003 of file aacraid.h.

#define AAC_OPT_HOST_TIME_FIB   cpu_to_le32(1<<4)

Definition at line 1006 of file aacraid.h.

#define AAC_OPT_NEW_COMM   cpu_to_le32(1<<17)

Definition at line 1018 of file aacraid.h.

#define AAC_OPT_NEW_COMM_64   cpu_to_le32(1<<18)

Definition at line 1019 of file aacraid.h.

#define AAC_OPT_NEW_COMM_TYPE1   cpu_to_le32(1<<28)

Definition at line 1020 of file aacraid.h.

#define AAC_OPT_NEW_COMM_TYPE2   cpu_to_le32(1<<29)

Definition at line 1021 of file aacraid.h.

#define AAC_OPT_NEW_COMM_TYPE3   cpu_to_le32(1<<30)

Definition at line 1022 of file aacraid.h.

#define AAC_OPT_NEW_COMM_TYPE4   cpu_to_le32(1<<31)

Definition at line 1023 of file aacraid.h.

#define AAC_OPT_NONDASD   cpu_to_le32(1<<12)

Definition at line 1014 of file aacraid.h.

#define AAC_OPT_RAID50   cpu_to_le32(1<<5)

Definition at line 1007 of file aacraid.h.

#define AAC_OPT_RAID_SCSI_MODE   cpu_to_le32(1<<14)

Definition at line 1016 of file aacraid.h.

#define AAC_OPT_SCSI_MANAGED   cpu_to_le32(1<<13)

Definition at line 1015 of file aacraid.h.

#define AAC_OPT_SCSI_UPGRADEABLE   cpu_to_le32(1<<7)

Definition at line 1009 of file aacraid.h.

#define AAC_OPT_SGMAP_HOST64   cpu_to_le32(1<<10)

Definition at line 1012 of file aacraid.h.

#define AAC_OPT_SNAPSHOT   cpu_to_le32(1)

Definition at line 1002 of file aacraid.h.

#define AAC_OPT_SOFT_ERR_REPORT   cpu_to_le32(1<<8)

Definition at line 1010 of file aacraid.h.

#define AAC_OPT_SUPPLEMENT_ADAPTER_INFO   cpu_to_le32(1<<16)

Definition at line 1017 of file aacraid.h.

#define AAC_OPT_SUPPORTED_RECONDITION   cpu_to_le32(1<<9)

Definition at line 1011 of file aacraid.h.

#define AAC_OPT_WRITE_CACHE   cpu_to_le32(1<<2)

Definition at line 1004 of file aacraid.h.

#define AAC_OPTION_DOORBELL_RESET   cpu_to_le32(0x00004000)

Definition at line 958 of file aacraid.h.

#define AAC_OPTION_IGNORE_RESET   cpu_to_le32(0x00000002)

Definition at line 956 of file aacraid.h.

#define AAC_OPTION_MU_RESET   cpu_to_le32(0x00000001)

Definition at line 955 of file aacraid.h.

#define AAC_OPTION_POWER_MANAGEMENT   cpu_to_le32(0x00000004)

Definition at line 957 of file aacraid.h.

#define AAC_OWNER_ERROR_HANDLER   0x103

Definition at line 2004 of file aacraid.h.

#define AAC_OWNER_FIRMWARE   0x106

Definition at line 2005 of file aacraid.h.

#define AAC_OWNER_LOWLEVEL   0x102

Definition at line 2003 of file aacraid.h.

#define AAC_OWNER_MIDLEVEL   0x101

Definition at line 2002 of file aacraid.h.

#define aac_phys_to_logical (   x)    ((x)+1)

Definition at line 39 of file aacraid.h.

#define AAC_QUIRK_17SG   0x0010

Definition at line 551 of file aacraid.h.

#define AAC_QUIRK_31BIT   0x0001

Definition at line 527 of file aacraid.h.

#define AAC_QUIRK_34SG   0x0002

Definition at line 534 of file aacraid.h.

#define AAC_QUIRK_MASTER   0x0008

Definition at line 544 of file aacraid.h.

#define AAC_QUIRK_SCSI_32   0x0020

Definition at line 557 of file aacraid.h.

#define AAC_QUIRK_SLAVE   0x0004

Definition at line 539 of file aacraid.h.

#define AAC_SENSE_BUFFERSIZE   30

Definition at line 1483 of file aacraid.h.

#define AAC_SIS_SLOT_UNKNOWN   0xFF

Definition at line 960 of file aacraid.h.

#define AAC_SIS_VERSION_V3   3

Definition at line 959 of file aacraid.h.

#define ADAP_HIGH_CMD_ENTRIES   4

Definition at line 181 of file aacraid.h.

#define ADAP_HIGH_RESP_ENTRIES   4

Definition at line 185 of file aacraid.h.

#define ADAP_NORM_CMD_ENTRIES   512

Definition at line 182 of file aacraid.h.

#define ADAP_NORM_RESP_ENTRIES   8

Definition at line 186 of file aacraid.h.

#define AdapHighCmdNotFull   8

Definition at line 235 of file aacraid.h.

#define AdapHighCmdQue   3

Definition at line 246 of file aacraid.h.

#define AdapHighRespNotFull   6

Definition at line 233 of file aacraid.h.

#define AdapHighRespQue   7

Definition at line 248 of file aacraid.h.

#define AdapInternalError   0xfe /* The adapter detected an internal error shutting down */

Definition at line 237 of file aacraid.h.

#define AdapNormCmdNotFull   7

Definition at line 234 of file aacraid.h.

#define AdapNormCmdQue   2

Definition at line 245 of file aacraid.h.

#define AdapNormRespNotFull   5

Definition at line 232 of file aacraid.h.

#define AdapNormRespQue   6

Definition at line 247 of file aacraid.h.

#define AdapPrintfDone   16

Definition at line 257 of file aacraid.h.

#define ADAPTER_INIT_STRUCT_REVISION   3

Definition at line 425 of file aacraid.h.

#define ADAPTER_INIT_STRUCT_REVISION_4   4

Definition at line 426 of file aacraid.h.

#define ADAPTER_INIT_STRUCT_REVISION_6   6 /* PMC src */

Definition at line 427 of file aacraid.h.

#define ADAPTER_INIT_STRUCT_REVISION_7   7 /* Denali */

Definition at line 428 of file aacraid.h.

#define AifCmdAPIReport   3 /* Report from other user of API */

Definition at line 1959 of file aacraid.h.

#define AifCmdDriverNotify   4 /* Notify host driver of event */

Definition at line 1960 of file aacraid.h.

#define AifCmdEventNotify   1 /* Notify of event */

Definition at line 1939 of file aacraid.h.

#define AifCmdJobProgress   2 /* Progress report */

Definition at line 1955 of file aacraid.h.

#define AifDenMorphComplete   200 /* A morph operation completed */

Definition at line 1961 of file aacraid.h.

#define AifDenVolumeExtendComplete   201 /* A volume extend completed */

Definition at line 1962 of file aacraid.h.

#define AifEnAddContainer   15 /* A new array was created */

Definition at line 1947 of file aacraid.h.

#define AifEnAddJBOD   30 /* JBOD created */

Definition at line 1952 of file aacraid.h.

#define AifEnBatteryEvent   14 /* Change in Battery State */

Definition at line 1946 of file aacraid.h.

#define AifEnConfigChange   3 /* Adapter configuration change */

Definition at line 1940 of file aacraid.h.

#define AifEnContainerChange   4 /* Container configuration change */

Definition at line 1941 of file aacraid.h.

#define AifEnDeleteContainer   16 /* A container was deleted */

Definition at line 1948 of file aacraid.h.

#define AifEnDeleteJBOD   31 /* JBOD deleted */

Definition at line 1953 of file aacraid.h.

#define AifEnDeviceFailure   5 /* SCSI device failed */

Definition at line 1942 of file aacraid.h.

#define AifEnEnclosureManagement   13 /* EM_DRIVE_* */

Definition at line 1943 of file aacraid.h.

#define AifEnExpEvent   23 /* Firmware Event Log */

Definition at line 1949 of file aacraid.h.

#define AifExeFirmwarePanic   3 /* Firmware Event Panic */

Definition at line 1950 of file aacraid.h.

#define AifHighPriority   3 /* Highest Priority Event */

Definition at line 1951 of file aacraid.h.

#define AifJobCtrZero   101 /* Array Zero progress */

Definition at line 1956 of file aacraid.h.

#define AifJobStsRunning   102 /* Job running */

Definition at line 1958 of file aacraid.h.

#define AifJobStsSuccess   1 /* Job completes */

Definition at line 1957 of file aacraid.h.

#define AifReqAPIJobFinish   110 /* Finish a job from the API */

Definition at line 1973 of file aacraid.h.

#define AifReqAPIJobStart   108 /* Start a job from the API */

Definition at line 1971 of file aacraid.h.

#define AifReqAPIJobUpdate   109 /* Update a job report from the API */

Definition at line 1972 of file aacraid.h.

#define AifReqEvent   200

Definition at line 1976 of file aacraid.h.

#define AifReqJobList   100 /* Gets back complete job list */

Definition at line 1963 of file aacraid.h.

#define AifReqJobReport   103 /* Gets back a specific job report or list of them */

Definition at line 1966 of file aacraid.h.

#define AifReqJobsForCtr   101 /* Gets back jobs for specific container */

Definition at line 1964 of file aacraid.h.

#define AifReqJobsForScsi   102 /* Gets back jobs for specific SCSI device */

Definition at line 1965 of file aacraid.h.

#define AifReqResumeJob   106 /* Resumes a job */

Definition at line 1969 of file aacraid.h.

#define AifReqSendAPIReport   107 /* API generic report requests */

Definition at line 1970 of file aacraid.h.

#define AifReqSuspendJob   105 /* Suspends a job */

Definition at line 1968 of file aacraid.h.

#define AifReqTerminateJob   104 /* Terminates job */

Definition at line 1967 of file aacraid.h.

#define AifRequest   700

Definition at line 380 of file aacraid.h.

#define ALIGN32   32

Definition at line 297 of file aacraid.h.

#define AssignAcl   35

Definition at line 1238 of file aacraid.h.

#define BlockRead   28

Definition at line 1231 of file aacraid.h.

#define BlockWrite   29

Definition at line 1232 of file aacraid.h.

#define BREAKPOINT_REQUEST   0x00000004

Definition at line 1877 of file aacraid.h.

#define CACHE_CSTABLE   1

Definition at line 1290 of file aacraid.h.

#define CACHE_UNSTABLE   2

Definition at line 1291 of file aacraid.h.

#define CFACT_ABORT   2

Definition at line 1632 of file aacraid.h.

#define CFACT_CONTINUE   0

Definition at line 1630 of file aacraid.h.

#define CFACT_PAUSE   1

Definition at line 1631 of file aacraid.h.

#define CheckRevision   701

Definition at line 381 of file aacraid.h.

#define ClearArchiveBit   32

Definition at line 1235 of file aacraid.h.

#define CMDATA_SYNCH   4

Definition at line 1301 of file aacraid.h.

#define CMDATA_SYNCH_NVRAM   2

Definition at line 1299 of file aacraid.h.

#define CMFILE_SYNCH   3

Definition at line 1300 of file aacraid.h.

#define CMFILE_SYNCH_NVRAM   1

Definition at line 1298 of file aacraid.h.

#define CMUNSTABLE   5

Definition at line 1302 of file aacraid.h.

#define COMMAND_POST_RESULTS   0x00000014

Definition at line 1883 of file aacraid.h.

#define Commit   20

Definition at line 1223 of file aacraid.h.

#define CONTAINER_CHANNEL   (0)

Definition at line 34 of file aacraid.h.

#define CONTAINER_TO_CHANNEL (   cont)    (CONTAINER_CHANNEL)

Definition at line 35 of file aacraid.h.

#define CONTAINER_TO_ID (   cont)    (cont)

Definition at line 36 of file aacraid.h.

#define CONTAINER_TO_LUN (   cont)    (0)

Definition at line 37 of file aacraid.h.

#define ContainerCommand   500

Definition at line 368 of file aacraid.h.

#define ContainerCommand64   501

Definition at line 369 of file aacraid.h.

#define ContainerRawIo   502

Definition at line 370 of file aacraid.h.

#define ContainerRawIo2   503

Definition at line 371 of file aacraid.h.

#define CrazyCache   37 /* Crazycache */

Definition at line 1240 of file aacraid.h.

#define Create   7

Definition at line 1210 of file aacraid.h.

#define CT_CID_TO_32BITS_UID   165

Definition at line 1742 of file aacraid.h.

#define CT_COMMIT_CONFIG   152

Definition at line 1653 of file aacraid.h.

#define CT_FLUSH_CACHE   129

Definition at line 1400 of file aacraid.h.

#define CT_GET_CONFIG_STATUS   147

Definition at line 1618 of file aacraid.h.

#define CT_GET_CONTAINER_COUNT   4

Definition at line 1664 of file aacraid.h.

#define CT_NONE   0

Definition at line 56 of file aacraid.h.

#define CT_OK   218

Definition at line 57 of file aacraid.h.

#define CT_PAUSE_IO   65

Definition at line 1436 of file aacraid.h.

#define CT_PM_START_UNIT   2

Definition at line 1425 of file aacraid.h.

#define CT_PM_STOP_UNIT   3

Definition at line 1426 of file aacraid.h.

#define CT_PM_UNIT_IMMEDIATE   1

Definition at line 1427 of file aacraid.h.

#define CT_POWER_MANAGEMENT   245

Definition at line 1424 of file aacraid.h.

#define CT_READ_NAME   130

Definition at line 1718 of file aacraid.h.

#define CT_RELEASE_IO   66

Definition at line 1437 of file aacraid.h.

#define CTL_CODE (   function,
  method 
)
Value:
( \
(4<< 16) | ((function) << 2) | (method) \
)

Definition at line 1803 of file aacraid.h.

#define DmaCommandFib   120

Definition at line 348 of file aacraid.h.

#define DOORBELL_0   0x0001

Definition at line 642 of file aacraid.h.

#define DOORBELL_1   0x0002

Definition at line 643 of file aacraid.h.

#define DOORBELL_2   0x0004

Definition at line 644 of file aacraid.h.

#define DOORBELL_3   0x0008

Definition at line 645 of file aacraid.h.

#define DOORBELL_4   0x0010

Definition at line 646 of file aacraid.h.

#define DOORBELL_5   0x0020

Definition at line 647 of file aacraid.h.

#define DOORBELL_6   0x0040

Definition at line 648 of file aacraid.h.

#define DoorBellAdapterNormCmdNotFull   (1<<3) /* Adapter -> Host */

Definition at line 1926 of file aacraid.h.

#define DoorBellAdapterNormCmdReady   (1<<1) /* Adapter -> Host */

Definition at line 1924 of file aacraid.h.

#define DoorBellAdapterNormRespNotFull   (1<<4) /* Adapter -> Host */

Definition at line 1927 of file aacraid.h.

#define DoorBellAdapterNormRespReady   (1<<2) /* Adapter -> Host */

Definition at line 1925 of file aacraid.h.

#define DoorBellAifPending   (1<<6) /* Adapter -> Host */

Definition at line 1929 of file aacraid.h.

#define DoorbellClrReg_p   SaDbCSR.PRICLEARIRQ

Definition at line 639 of file aacraid.h.

#define DoorBellPrintfDone   (1<<5) /* Host -> Adapter */

Definition at line 1923 of file aacraid.h.

#define DoorBellPrintfReady   (1<<5) /* Adapter -> Host */

Definition at line 1928 of file aacraid.h.

#define DoorbellReg_p   SaDbCSR.PRISETIRQ

Definition at line 637 of file aacraid.h.

#define DoorbellReg_s   SaDbCSR.SECSETIRQ

Definition at line 638 of file aacraid.h.

#define DoorBellSyncCmdAvailable   (1<<0) /* Host -> Adapter */

Definition at line 1922 of file aacraid.h.

#define dprintk (   x)

Definition at line 2 of file aacraid.h.

#define EM_DRIVE_INSERTION   31

Definition at line 1944 of file aacraid.h.

#define EM_DRIVE_REMOVAL   32

Definition at line 1945 of file aacraid.h.

#define FastIo   15

Definition at line 256 of file aacraid.h.

#define FatalCommError   10

Definition at line 251 of file aacraid.h.

#define FaultInsertion   36 /* Fault Insertion Command */

Definition at line 1239 of file aacraid.h.

#define FIB_CONTEXT_FLAG   (0x00000002)

Definition at line 1195 of file aacraid.h.

#define FIB_CONTEXT_FLAG_FASTRESP   (0x00000008)

Definition at line 1197 of file aacraid.h.

#define FIB_CONTEXT_FLAG_TIMED_OUT   (0x00000001)

Definition at line 1194 of file aacraid.h.

#define FIB_CONTEXT_FLAG_WAIT   (0x00000004)

Definition at line 1196 of file aacraid.h.

#define FIB_COUNTER_INCREMENT (   counter)

Definition at line 1869 of file aacraid.h.

#define fib_data (   fibctx)    ((void *)(fibctx)->hw_fib_va->data)

Definition at line 2018 of file aacraid.h.

#define FIB_MAGIC   0x0001

Definition at line 279 of file aacraid.h.

#define FIB_MAGIC2   0x0004

Definition at line 280 of file aacraid.h.

#define FIB_MAGIC2_64   0x0005

Definition at line 281 of file aacraid.h.

#define FileSystemInfo   18

Definition at line 1221 of file aacraid.h.

#define FileSystemStatus   17

Definition at line 1220 of file aacraid.h.

#define FSACTL_CLOSE_GET_ADAPTER_FIB   CTL_CODE(2102, METHOD_BUFFERED)

Definition at line 1825 of file aacraid.h.

#define FSACTL_DELETE_DISK   0x163

Definition at line 1821 of file aacraid.h.

#define FSACTL_FORCE_DELETE_DISK   CTL_CODE(2120, METHOD_NEITHER)

Definition at line 1828 of file aacraid.h.

#define FSACTL_GET_CONTAINERS   2131

Definition at line 1829 of file aacraid.h.

#define FSACTL_GET_NEXT_ADAPTER_FIB   CTL_CODE(2101, METHOD_BUFFERED)

Definition at line 1824 of file aacraid.h.

#define FSACTL_GET_PCI_INFO   CTL_CODE(2119, METHOD_BUFFERED)

Definition at line 1827 of file aacraid.h.

#define FSACTL_MINIPORT_REV_CHECK   CTL_CODE(2107, METHOD_BUFFERED)

Definition at line 1826 of file aacraid.h.

#define FSACTL_OPEN_GET_ADAPTER_FIB   CTL_CODE(2100, METHOD_BUFFERED)

Definition at line 1823 of file aacraid.h.

#define FSACTL_QUERY_DISK   0x173

Definition at line 1822 of file aacraid.h.

#define FSACTL_SEND_LARGE_FIB   CTL_CODE(2138, METHOD_BUFFERED)

Definition at line 1830 of file aacraid.h.

#define FSACTL_SEND_RAW_SRB   CTL_CODE(2067, METHOD_BUFFERED)

Definition at line 1820 of file aacraid.h.

#define FSACTL_SENDFIB   CTL_CODE(2050, METHOD_BUFFERED)

Definition at line 1819 of file aacraid.h.

#define FSAFS_NTC_FIB_CONTEXT   0x030c

Definition at line 479 of file aacraid.h.

#define FSAFS_NTC_GET_ADAPTER_FIB_CONTEXT   0x030b

Definition at line 478 of file aacraid.h.

#define FsaHostShutdown   702

Definition at line 382 of file aacraid.h.

#define FsaNormal   1

Definition at line 287 of file aacraid.h.

#define FsCheck   24

Definition at line 1227 of file aacraid.h.

#define FSCS_HIDDEN   0x0004 /* should be ignored - set during a clear */

Definition at line 1702 of file aacraid.h.

#define FSCS_NOT_READY   0x0008 /* Array spinning up to fulfil request */

Definition at line 1703 of file aacraid.h.

#define FSCS_NOTCLEAN   0x0001 /* fsck is necessary before mounting */

Definition at line 1700 of file aacraid.h.

#define FSCS_READONLY   0x0002 /* possible result of broken mirror */

Definition at line 1701 of file aacraid.h.

#define FsSync   25

Definition at line 1228 of file aacraid.h.

#define FsSyncWait   31

Definition at line 1234 of file aacraid.h.

#define FT_DRIVE   9 /* physical disk - addressable in scsi by bus/id/lun */

Definition at line 59 of file aacraid.h.

#define FT_FILESYS   8 /* ADAPTEC's "FSA"(tm) filesystem */

Definition at line 58 of file aacraid.h.

#define GET_ADAPTER_PROPERTIES   0x00000019

Definition at line 1884 of file aacraid.h.

#define GET_COMM_PREFERRED_SETTINGS   0x00000026

Definition at line 1887 of file aacraid.h.

#define GET_DRIVER_BUFFER_PROPERTIES   0x00000023

Definition at line 1885 of file aacraid.h.

#define GetAcl   34

Definition at line 1237 of file aacraid.h.

#define GetAttributes   1

Definition at line 1204 of file aacraid.h.

#define GetBusInfo   0x00000009

Definition at line 962 of file aacraid.h.

#define GetInterruptDefStatus   128

Definition at line 356 of file aacraid.h.

#define HOST_CRASHING   0x0000000d

Definition at line 1881 of file aacraid.h.

#define HOST_HIGH_CMD_ENTRIES   4

Definition at line 179 of file aacraid.h.

#define HOST_HIGH_RESP_ENTRIES   4

Definition at line 183 of file aacraid.h.

#define HOST_NORM_CMD_ENTRIES   8

Definition at line 180 of file aacraid.h.

#define HOST_NORM_RESP_ENTRIES   512

Definition at line 184 of file aacraid.h.

#define HostFileSystem   302

Definition at line 363 of file aacraid.h.

#define HostHighCmdNotFull   14

Definition at line 255 of file aacraid.h.

#define HostHighCmdQue   2 /* Change in host high priority command queue */

Definition at line 229 of file aacraid.h.

#define HostHighRespNotFull   12

Definition at line 253 of file aacraid.h.

#define HostHighRespQue   4 /* Change in host high priority response queue */

Definition at line 231 of file aacraid.h.

#define HostNormCmdNotFull   13

Definition at line 254 of file aacraid.h.

#define HostNormCmdQue   1 /* Change in host normal priority command queue */

Definition at line 228 of file aacraid.h.

#define HostNormRespNotFull   11

Definition at line 252 of file aacraid.h.

#define HostNormRespQue   3 /* Change in host normal priority response queue */

Definition at line 230 of file aacraid.h.

#define HostPowerFail   9

Definition at line 250 of file aacraid.h.

#define HostShutdown   8

Definition at line 249 of file aacraid.h.

#define INBOUNDDOORBELL_0   0x00000001

Definition at line 700 of file aacraid.h.

#define INBOUNDDOORBELL_1   0x00000002

Definition at line 701 of file aacraid.h.

#define INBOUNDDOORBELL_2   0x00000004

Definition at line 702 of file aacraid.h.

#define INBOUNDDOORBELL_3   0x00000008

Definition at line 703 of file aacraid.h.

#define INBOUNDDOORBELL_4   0x00000010

Definition at line 704 of file aacraid.h.

#define INBOUNDDOORBELL_5   0x00000020

Definition at line 705 of file aacraid.h.

#define INBOUNDDOORBELL_6   0x00000040

Definition at line 706 of file aacraid.h.

#define InboundDoorbellReg   MUnit.IDR

Definition at line 714 of file aacraid.h.

#define INIT_STRUCT_BASE_ADDRESS   0x00000005

Definition at line 1878 of file aacraid.h.

#define INITFLAGS_DRIVER_SUPPORTS_PM   0x00000020

Definition at line 452 of file aacraid.h.

#define INITFLAGS_DRIVER_USES_UTC_TIME   0x00000010

Definition at line 451 of file aacraid.h.

#define INITFLAGS_FAST_JBOD_SUPPORTED   0x00000080

Definition at line 454 of file aacraid.h.

#define INITFLAGS_NEW_COMM_SUPPORTED   0x00000001

Definition at line 450 of file aacraid.h.

#define INITFLAGS_NEW_COMM_TYPE1_SUPPORTED   0x00000040

Definition at line 453 of file aacraid.h.

#define INITFLAGS_NEW_COMM_TYPE2_SUPPORTED   0x00000100

Definition at line 455 of file aacraid.h.

#define InterfaceShutdown   110

Definition at line 347 of file aacraid.h.

#define IOP_RESET   0x00001000

Definition at line 1888 of file aacraid.h.

#define IOP_RESET_ALWAYS   0x00001001

Definition at line 1889 of file aacraid.h.

#define IsAdapterPaused   704

Definition at line 384 of file aacraid.h.

#define KERNEL_PANIC   0x00000100

Definition at line 1916 of file aacraid.h.

#define KERNEL_UP_AND_RUNNING   0x00000080

Definition at line 1915 of file aacraid.h.

#define LastCommCommand   129

Definition at line 357 of file aacraid.h.

#define LastFileSystemCommand   303

Definition at line 364 of file aacraid.h.

#define LastMiscCommand   707

Definition at line 387 of file aacraid.h.

#define LastTestCommand   100

Definition at line 338 of file aacraid.h.

#define Link   14

Definition at line 1217 of file aacraid.h.

#define Lookup   3

Definition at line 1206 of file aacraid.h.

#define Mailbox0   SaDbCSR.MAILBOX0

Definition at line 628 of file aacraid.h.

#define Mailbox1   SaDbCSR.MAILBOX1

Definition at line 629 of file aacraid.h.

#define Mailbox2   SaDbCSR.MAILBOX2

Definition at line 630 of file aacraid.h.

#define Mailbox3   SaDbCSR.MAILBOX3

Definition at line 631 of file aacraid.h.

#define Mailbox4   SaDbCSR.MAILBOX4

Definition at line 632 of file aacraid.h.

#define Mailbox5   SaDbCSR.MAILBOX5

Definition at line 633 of file aacraid.h.

#define Mailbox6   SaDbCSR.MAILBOX6

Definition at line 634 of file aacraid.h.

#define Mailbox7   SaDbCSR.MAILBOX7

Definition at line 635 of file aacraid.h.

#define MakeDirectory   8

Definition at line 1211 of file aacraid.h.

#define MakeNode   10

Definition at line 1213 of file aacraid.h.

#define MAX_FSACOMMAND_NUM   38

Definition at line 1242 of file aacraid.h.

#define MAX_VMCOMMAND_NUM   23 /* used for sizing stats array - leave last */

Definition at line 1589 of file aacraid.h.

#define MAXIMUM_NUM_CONTAINERS   32

Definition at line 18 of file aacraid.h.

#define METHOD_BUFFERED   0

Definition at line 1812 of file aacraid.h.

#define METHOD_NEITHER   3

Definition at line 1813 of file aacraid.h.

#define MONITOR_PANIC   0x00000020

Definition at line 1914 of file aacraid.h.

#define Mount   21

Definition at line 1224 of file aacraid.h.

#define nblank (   x)    _nblank(x)[0]

Definition at line 6 of file aacraid.h.

#define Newfs   23

Definition at line 1226 of file aacraid.h.

#define NuFileSystem   300

Definition at line 361 of file aacraid.h.

#define Null   0

Definition at line 1203 of file aacraid.h.

#define NUMBER_OF_COMM_QUEUES   8

Definition at line 178 of file aacraid.h.

#define NvramIoctl   30

Definition at line 1233 of file aacraid.h.

#define OUTBOUNDDOORBELL_0   0x00000001

Definition at line 708 of file aacraid.h.

#define OUTBOUNDDOORBELL_1   0x00000002

Definition at line 709 of file aacraid.h.

#define OUTBOUNDDOORBELL_2   0x00000004

Definition at line 710 of file aacraid.h.

#define OUTBOUNDDOORBELL_3   0x00000008

Definition at line 711 of file aacraid.h.

#define OUTBOUNDDOORBELL_4   0x00000010

Definition at line 712 of file aacraid.h.

#define OutboundDoorbellReg   MUnit.ODR

Definition at line 715 of file aacraid.h.

#define PathConfigure   19

Definition at line 1222 of file aacraid.h.

#define PmDoorBellResponseSent   (1<<1) /* Adapter -> Host */

Definition at line 1932 of file aacraid.h.

#define PrintfDone   DOORBELL_5

Definition at line 652 of file aacraid.h.

#define PrintfReady   DOORBELL_5

Definition at line 651 of file aacraid.h.

#define QUEUE_ALIGNMENT   16

Definition at line 197 of file aacraid.h.

#define RCV_TEMP_READINGS   0x00000025

Definition at line 1886 of file aacraid.h.

#define RE_INIT_ADAPTER   0x000000ee

Definition at line 1890 of file aacraid.h.

#define Read   5

Definition at line 1208 of file aacraid.h.

#define READ_PERMANENT_PARAMETERS   0x0000000a

Definition at line 1879 of file aacraid.h.

#define ReadDirectory   15

Definition at line 1218 of file aacraid.h.

#define ReadDirectoryPlus   16

Definition at line 1219 of file aacraid.h.

#define ReadLink   4

Definition at line 1207 of file aacraid.h.

#define ReinitAdapHighCommandQueue   107

Definition at line 344 of file aacraid.h.

#define ReinitAdapHighRespQueue   108

Definition at line 345 of file aacraid.h.

#define ReinitAdapNormCommandQueue   105

Definition at line 343 of file aacraid.h.

#define ReinitAdapNormRespQueue   109

Definition at line 346 of file aacraid.h.

#define ReinitHostHighCommandQueue   102

Definition at line 340 of file aacraid.h.

#define ReinitHostHighRespQueue   103

Definition at line 341 of file aacraid.h.

#define ReinitHostNormCommandQueue   101

Definition at line 339 of file aacraid.h.

#define ReinitHostNormRespQueue   104

Definition at line 342 of file aacraid.h.

#define RemoveDirectoryx   12

Definition at line 1215 of file aacraid.h.

#define Removex   11

Definition at line 1214 of file aacraid.h.

#define Rename   13

Definition at line 1216 of file aacraid.h.

#define RequestAdapterInfo   703

Definition at line 383 of file aacraid.h.

#define RequestPerfData   125

Definition at line 353 of file aacraid.h.

#define RequestSupplementAdapterInfo   706

Definition at line 386 of file aacraid.h.

#define RIO2_IO_ERROR   0x0004

Definition at line 1312 of file aacraid.h.

#define RIO2_IO_SUREWRITE   0x0008

Definition at line 1313 of file aacraid.h.

#define RIO2_IO_TYPE   0x0003

Definition at line 1308 of file aacraid.h.

#define RIO2_IO_TYPE_READ   0x0001

Definition at line 1310 of file aacraid.h.

#define RIO2_IO_TYPE_VERIFY   0x0002

Definition at line 1311 of file aacraid.h.

#define RIO2_IO_TYPE_WRITE   0x0000

Definition at line 1309 of file aacraid.h.

#define RIO2_SG_FORMAT   0xF000

Definition at line 1315 of file aacraid.h.

#define RIO2_SG_FORMAT_ARC   0x0000

Definition at line 1316 of file aacraid.h.

#define RIO2_SG_FORMAT_IEEE1212   0x2000

Definition at line 1318 of file aacraid.h.

#define RIO2_SG_FORMAT_SRL   0x1000

Definition at line 1317 of file aacraid.h.

#define RIO2_SGL_CONFORMANT   0x0010

Definition at line 1314 of file aacraid.h.

#define RIO_SUREWRITE   0x0008

Definition at line 1306 of file aacraid.h.

#define RIO_TYPE_READ   0x0001

Definition at line 1305 of file aacraid.h.

#define RIO_TYPE_WRITE   0x0000

Definition at line 1304 of file aacraid.h.

#define rkt_inbound   rx_inbound

Definition at line 733 of file aacraid.h.

#define rkt_mu_registers   rx_mu_registers

Definition at line 732 of file aacraid.h.

#define rkt_readb (   AEP,
  CSR 
)    readb(&((AEP)->regs.rkt->CSR))

Definition at line 741 of file aacraid.h.

#define rkt_readl (   AEP,
  CSR 
)    readl(&((AEP)->regs.rkt->CSR))

Definition at line 742 of file aacraid.h.

#define rkt_writeb (   AEP,
  CSR,
  value 
)    writeb(value, &((AEP)->regs.rkt->CSR))

Definition at line 743 of file aacraid.h.

#define rkt_writel (   AEP,
  CSR,
  value 
)    writel(value, &((AEP)->regs.rkt->CSR))

Definition at line 744 of file aacraid.h.

#define rx_readb (   AEP,
  CSR 
)    readb(&((AEP)->regs.rx->CSR))

Definition at line 723 of file aacraid.h.

#define rx_readl (   AEP,
  CSR 
)    readl(&((AEP)->regs.rx->CSR))

Definition at line 724 of file aacraid.h.

#define rx_writeb (   AEP,
  CSR,
  value 
)    writeb(value, &((AEP)->regs.rx->CSR))

Definition at line 725 of file aacraid.h.

#define rx_writel (   AEP,
  CSR,
  value 
)    writel(value, &((AEP)->regs.rx->CSR))

Definition at line 726 of file aacraid.h.

#define Sa_MINIPORT_REVISION   1

Definition at line 659 of file aacraid.h.

#define sa_readl (   AEP,
  CSR 
)    readl(&((AEP)->regs.sa->CSR))

Definition at line 662 of file aacraid.h.

#define sa_readw (   AEP,
  CSR 
)    readl(&((AEP)->regs.sa->CSR))

Definition at line 661 of file aacraid.h.

#define sa_writel (   AEP,
  CSR,
  value 
)    writel(value, &((AEP)->regs.sa->CSR))

Definition at line 664 of file aacraid.h.

#define sa_writew (   AEP,
  CSR,
  value 
)    writew(value, &((AEP)->regs.sa->CSR))

Definition at line 663 of file aacraid.h.

#define ScsiPortCommand   600

Definition at line 375 of file aacraid.h.

#define ScsiPortCommand64   601

Definition at line 376 of file aacraid.h.

#define SELF_TEST_FAILED   0x00000004

Definition at line 1913 of file aacraid.h.

#define SEND_SYNCHRONOUS_FIB   0x0000000c

Definition at line 1882 of file aacraid.h.

#define SendHostTime   705

Definition at line 385 of file aacraid.h.

#define SetAcl   33

Definition at line 1236 of file aacraid.h.

#define SetAttributes   2

Definition at line 1205 of file aacraid.h.

#define SetFileSystemStatus   27

Definition at line 1230 of file aacraid.h.

#define SetInterruptDefCount   127

Definition at line 355 of file aacraid.h.

#define SetInterruptDefTimer   126

Definition at line 354 of file aacraid.h.

#define shost_to_class (   shost)    &shost->shost_dev

Definition at line 2025 of file aacraid.h.

#define SimReadWrite   26

Definition at line 1229 of file aacraid.h.

#define SpeedTest   123

Definition at line 351 of file aacraid.h.

#define SRB_BypassFrozenQueue   0x0010

Definition at line 1500 of file aacraid.h.

#define SRB_DataIn   0x0040

Definition at line 1502 of file aacraid.h.

#define SRB_DataOut   0x0080

Definition at line 1503 of file aacraid.h.

#define SRB_DisableAutosense   0x0020

Definition at line 1501 of file aacraid.h.

#define SRB_DisableDisconnect   0x0004

Definition at line 1498 of file aacraid.h.

#define SRB_DisableSynchTransfer   0x0008

Definition at line 1499 of file aacraid.h.

#define SRB_NoDataXfer   0x0000

Definition at line 1497 of file aacraid.h.

#define SRB_STATUS_ABORT_FAILED   0x03

Definition at line 1532 of file aacraid.h.

#define SRB_STATUS_ABORTED   0x02

Definition at line 1531 of file aacraid.h.

#define SRB_STATUS_BAD_FUNCTION   0x22

Definition at line 1554 of file aacraid.h.

#define SRB_STATUS_BAD_SRB_BLOCK_LENGTH   0x15

Definition at line 1549 of file aacraid.h.

#define SRB_STATUS_BUS_RESET   0x0E

Definition at line 1542 of file aacraid.h.

#define SRB_STATUS_BUSY   0x05

Definition at line 1534 of file aacraid.h.

#define SRB_STATUS_COMMAND_TIMEOUT   0x0B

Definition at line 1540 of file aacraid.h.

#define SRB_STATUS_DATA_OVERRUN   0x12

Definition at line 1546 of file aacraid.h.

#define SRB_STATUS_DELAYED_RETRY   0x17

Definition at line 1551 of file aacraid.h.

#define SRB_STATUS_DOMAIN_VALIDATION_FAIL   0x32

Definition at line 1559 of file aacraid.h.

#define SRB_STATUS_ERROR   0x04

Definition at line 1533 of file aacraid.h.

#define SRB_STATUS_ERROR_RECOVERY   0x23

Definition at line 1555 of file aacraid.h.

#define SRB_STATUS_FORCE_ABORT   0x31

Definition at line 1558 of file aacraid.h.

#define SRB_STATUS_INVALID_LUN   0x20

Definition at line 1552 of file aacraid.h.

#define SRB_STATUS_INVALID_PATH_ID   0x07

Definition at line 1536 of file aacraid.h.

#define SRB_STATUS_INVALID_REQUEST   0x06

Definition at line 1535 of file aacraid.h.

#define SRB_STATUS_INVALID_TARGET_ID   0x21

Definition at line 1553 of file aacraid.h.

#define SRB_STATUS_MESSAGE_REJECTED   0x0D

Definition at line 1541 of file aacraid.h.

#define SRB_STATUS_NO_DEVICE   0x08

Definition at line 1537 of file aacraid.h.

#define SRB_STATUS_NO_HBA   0x11

Definition at line 1545 of file aacraid.h.

#define SRB_STATUS_NOT_IN_USE   0x30

Definition at line 1557 of file aacraid.h.

#define SRB_STATUS_NOT_STARTED   0x24

Definition at line 1556 of file aacraid.h.

#define SRB_STATUS_PARITY_ERROR   0x0F

Definition at line 1543 of file aacraid.h.

#define SRB_STATUS_PENDING   0x00

Definition at line 1529 of file aacraid.h.

#define SRB_STATUS_PHASE_SEQUENCE_FAILURE   0x14

Definition at line 1548 of file aacraid.h.

#define SRB_STATUS_REQUEST_FLUSHED   0x16

Definition at line 1550 of file aacraid.h.

#define SRB_STATUS_REQUEST_SENSE_FAILED   0x10

Definition at line 1544 of file aacraid.h.

#define SRB_STATUS_SELECTION_TIMEOUT   0x0A

Definition at line 1539 of file aacraid.h.

#define SRB_STATUS_SUCCESS   0x01

Definition at line 1530 of file aacraid.h.

#define SRB_STATUS_TIMEOUT   0x09

Definition at line 1538 of file aacraid.h.

#define SRB_STATUS_UNEXPECTED_BUS_FREE   0x13

Definition at line 1547 of file aacraid.h.

#define SRBF_AbortCommand   0x0010

Definition at line 1517 of file aacraid.h.

#define SRBF_AttachDevice   0x0005

Definition at line 1513 of file aacraid.h.

#define SRBF_ClaimDevice   0x0001

Definition at line 1509 of file aacraid.h.

#define SRBF_DomainValidation   0x0017

Definition at line 1524 of file aacraid.h.

#define SRBF_ExecuteScsi   0x0000

Definition at line 1508 of file aacraid.h.

#define SRBF_Flush   0x0008

Definition at line 1516 of file aacraid.h.

#define SRBF_FlushQueue   0x0015

Definition at line 1522 of file aacraid.h.

#define SRBF_IO_Control   0x0002

Definition at line 1510 of file aacraid.h.

#define SRBF_ReceiveEvent   0x0003

Definition at line 1511 of file aacraid.h.

#define SRBF_ReleaseDevice   0x0006

Definition at line 1514 of file aacraid.h.

#define SRBF_ReleaseQueue   0x0004

Definition at line 1512 of file aacraid.h.

#define SRBF_ReleaseRecovery   0x0011

Definition at line 1518 of file aacraid.h.

#define SRBF_RemoveDevice   0x0016

Definition at line 1523 of file aacraid.h.

#define SRBF_ResetBus   0x0012

Definition at line 1519 of file aacraid.h.

#define SRBF_ResetDevice   0x0013

Definition at line 1520 of file aacraid.h.

#define SRBF_Shutdown   0x0007

Definition at line 1515 of file aacraid.h.

#define SRBF_TerminateIO   0x0014

Definition at line 1521 of file aacraid.h.

#define SRC_IDR_SHIFT   9

Definition at line 790 of file aacraid.h.

#define src_inbound   rx_inbound

Definition at line 750 of file aacraid.h.

#define SRC_ODR_SHIFT   12

Definition at line 789 of file aacraid.h.

#define src_readb (   AEP,
  CSR 
)    readb(&((AEP)->regs.src.bar0->CSR))

Definition at line 782 of file aacraid.h.

#define src_readl (   AEP,
  CSR 
)    readl(&((AEP)->regs.src.bar0->CSR))

Definition at line 783 of file aacraid.h.

#define src_writeb (   AEP,
  CSR,
  value 
)
Value:
&((AEP)->regs.src.bar0->CSR))

Definition at line 784 of file aacraid.h.

#define src_writel (   AEP,
  CSR,
  value 
)
Value:
&((AEP)->regs.src.bar0->CSR))

Definition at line 786 of file aacraid.h.

#define ST_ACCES   13

Definition at line 1256 of file aacraid.h.

#define ST_BAD_COOKIE   10003

Definition at line 1276 of file aacraid.h.

#define ST_BADHANDLE   10001

Definition at line 1274 of file aacraid.h.

#define ST_BADTYPE   10007

Definition at line 1280 of file aacraid.h.

#define ST_DQUOT   69

Definition at line 1270 of file aacraid.h.

#define ST_E2BIG   7

Definition at line 1255 of file aacraid.h.

#define ST_EXIST   17

Definition at line 1257 of file aacraid.h.

#define ST_FBIG   27

Definition at line 1263 of file aacraid.h.

#define ST_INVAL   22

Definition at line 1262 of file aacraid.h.

#define ST_IO   5

Definition at line 1253 of file aacraid.h.

#define ST_ISDIR   21

Definition at line 1261 of file aacraid.h.

#define ST_JUKEBOX   10008

Definition at line 1281 of file aacraid.h.

#define ST_MAINTMODE   10010

Definition at line 1283 of file aacraid.h.

#define ST_MLINK   31

Definition at line 1266 of file aacraid.h.

#define ST_NAMETOOLONG   63

Definition at line 1268 of file aacraid.h.

#define ST_NODEV   19

Definition at line 1259 of file aacraid.h.

#define ST_NOENT   2

Definition at line 1252 of file aacraid.h.

#define ST_NOSPC   28

Definition at line 1264 of file aacraid.h.

#define ST_NOT_READY   72

Definition at line 1273 of file aacraid.h.

#define ST_NOT_SYNC   10002

Definition at line 1275 of file aacraid.h.

#define ST_NOTDIR   20

Definition at line 1260 of file aacraid.h.

#define ST_NOTEMPTY   66

Definition at line 1269 of file aacraid.h.

#define ST_NOTMOUNTED   10009

Definition at line 1282 of file aacraid.h.

#define ST_NOTSUPP   10004

Definition at line 1277 of file aacraid.h.

#define ST_NXIO   6

Definition at line 1254 of file aacraid.h.

#define ST_OK   0

Definition at line 1250 of file aacraid.h.

#define ST_PERM   1

Definition at line 1251 of file aacraid.h.

#define ST_REMOTE   71

Definition at line 1272 of file aacraid.h.

#define ST_ROFS   30

Definition at line 1265 of file aacraid.h.

#define ST_SERVERFAULT   10006

Definition at line 1279 of file aacraid.h.

#define ST_STALE   70

Definition at line 1271 of file aacraid.h.

#define ST_STALEACL   10011

Definition at line 1284 of file aacraid.h.

#define ST_TOOSMALL   10005

Definition at line 1278 of file aacraid.h.

#define ST_WOULDBLOCK   35

Definition at line 1267 of file aacraid.h.

#define ST_XDEV   18

Definition at line 1258 of file aacraid.h.

#define StartProfile   121

Definition at line 349 of file aacraid.h.

#define SymbolicLink   9

Definition at line 1212 of file aacraid.h.

#define SynchCommandComplete   9

Definition at line 236 of file aacraid.h.

#define TakeABreakPt   124

Definition at line 352 of file aacraid.h.

#define TermProfile   122

Definition at line 350 of file aacraid.h.

#define TestAdapterCommand   2

Definition at line 334 of file aacraid.h.

#define TestCommandResponse   1

Definition at line 333 of file aacraid.h.

#define TOTAL_QUEUE_ENTRIES
#define UFS   301

Definition at line 362 of file aacraid.h.

#define UnMount   22

Definition at line 1225 of file aacraid.h.

#define VM_CloseAll   5

Definition at line 1570 of file aacraid.h.

#define VM_ContainerConfig   2

Definition at line 1567 of file aacraid.h.

#define VM_CtBlockRead   6

Definition at line 1571 of file aacraid.h.

#define VM_CtBlockRead64   16

Definition at line 1581 of file aacraid.h.

#define VM_CtBlockVerify   14

Definition at line 1579 of file aacraid.h.

#define VM_CtBlockVerify64   18

Definition at line 1583 of file aacraid.h.

#define VM_CtBlockWrite   7

Definition at line 1572 of file aacraid.h.

#define VM_CtBlockWrite64   17

Definition at line 1582 of file aacraid.h.

#define VM_CtHostRead64   19

Definition at line 1584 of file aacraid.h.

#define VM_CtHostWrite64   20

Definition at line 1585 of file aacraid.h.

#define VM_CtPerf   15 /* performance test */

Definition at line 1580 of file aacraid.h.

#define VM_DriveBlockRead   10 /* raw access to physical devices */

Definition at line 1575 of file aacraid.h.

#define VM_DriveBlockWrite   11

Definition at line 1576 of file aacraid.h.

#define VM_DrvErrTblLog   21

Definition at line 1586 of file aacraid.h.

#define VM_EnclosureMgt   12 /* enclosure management */

Definition at line 1577 of file aacraid.h.

#define VM_FilesystemIoctl   4

Definition at line 1569 of file aacraid.h.

#define VM_Ioctl   3

Definition at line 1568 of file aacraid.h.

#define VM_NameServe   1

Definition at line 1566 of file aacraid.h.

#define VM_NameServe64   22

Definition at line 1587 of file aacraid.h.

#define VM_Null   0

Definition at line 1565 of file aacraid.h.

#define VM_SliceBlockRead   8 /* raw access to configured "storage objects" */

Definition at line 1573 of file aacraid.h.

#define VM_SliceBlockWrite   9

Definition at line 1574 of file aacraid.h.

#define VM_Unused   13 /* used to be diskset management */

Definition at line 1578 of file aacraid.h.

#define Write   6

Definition at line 1209 of file aacraid.h.

#define WRITE_PERMANENT_PARAMETERS   0x0000000b

Definition at line 1880 of file aacraid.h.

Typedef Documentation

typedef void(* fib_callback)(void *ctxt, struct fib *fibctx)

Definition at line 792 of file aacraid.h.

Enumeration Type Documentation

Enumerator:
LOG_AAC_INIT 
LOG_AAC_INFORMATIONAL 
LOG_AAC_WARNING 
LOG_AAC_LOW_ERROR 
LOG_AAC_MEDIUM_ERROR 
LOG_AAC_HIGH_ERROR 
LOG_AAC_PANIC 
LOG_AAC_DEBUG 
LOG_AAC_WINDBG_PRINT 

Definition at line 466 of file aacraid.h.

Enumerator:
HostNormCmdQueue 
HostHighCmdQueue 
AdapNormCmdQueue 
AdapHighCmdQueue 
HostNormRespQueue 
HostHighRespQueue 
AdapNormRespQueue 
AdapHighRespQueue 

Definition at line 264 of file aacraid.h.

Enumerator:
HostOwned 
AdapterOwned 
FibInitialized 
FibEmpty 
AllocatedFromPool 
SentFromHost 
SentFromAdapter 
ResponseExpected 
NoResponseExpected 
AdapterProcessed 
HostProcessed 
HighPriority 
NormalPriority 
Async 
AsyncIo 
PageFileIo 
ShutdownRequest 
LazyWrite 
AdapterMicroFib 
BIOSFibPath 
FastResponseCapable 
ApiFib 
NoMoreAifDataAvailable 

Definition at line 393 of file aacraid.h.

Function Documentation

int _aac_rx_init ( struct aac_dev dev)

aac_rx_init - initialize an i960 based AAC card : device to configure

Allocate and set up resources for the i960 based AAC variants. The device_interface in the commregion will be allocated and linked to the comm region.

Definition at line 551 of file rx.c.

int aac_check_health ( struct aac_dev dev)

Definition at line 1484 of file commsup.c.

int aac_close_fib_context ( struct aac_dev dev,
struct aac_fib_context fibctx 
)

Definition at line 340 of file commctrl.c.

unsigned int aac_command_normal ( struct aac_queue q)

aac_command_normal - handle commands : queue to process

This DPC routine will be queued when the adapter interrupts us to let us know there is a command on our normal priority queue. We will pull off all QE there are and wake up all the waiters before exiting. We will take a spinlock out on the queue before operating on it.

Definition at line 173 of file dpcsup.c.

int aac_command_thread ( void data)

aac_command_thread - command processing thread : Adapter to monitor

Waits on the commandready event in it's queue. When the event gets set it will pull FIBs off it's queue. It will continue to pull FIBs off until the queue is empty. When the queue is empty it will wait for more FIBs.

Definition at line 1628 of file commsup.c.

void aac_consumer_free ( struct aac_dev dev,
struct aac_queue q,
u32  qid 
)

aac_consumer_free - free consumer entry : Adapter : Queue : Queue ident

Frees up the current top of the queue we are a consumer of. If the queue was full notify the producer that the queue is no longer full.

Definition at line 666 of file commsup.c.

int aac_consumer_get ( struct aac_dev dev,
struct aac_queue q,
struct aac_entry **  entry 
)

aac_consumer_get - get the top of the queue : Adapter : Queue : Return entry

Will return a pointer to the entry on the top of the queue requested that we are a consumer of, and return the address of the queue entry. It does not change the state of the queue.

Definition at line 634 of file commsup.c.

int aac_dev_ioctl ( struct aac_dev dev,
int  cmd,
void __user arg 
)

Definition at line 2620 of file aachba.c.

int aac_do_ioctl ( struct aac_dev dev,
int  cmd,
void __user arg 
)

Definition at line 846 of file commctrl.c.

const char* aac_driverinfo ( struct Scsi_Host )
int aac_fib_adapter_complete ( struct fib fibptr,
unsigned short  size 
)

aac_fib_adapter_complete - complete adapter issued fib : fib to complete : size of fib

Will do all necessary work to complete a FIB that was sent from the adapter.

Definition at line 705 of file commsup.c.

struct fib* aac_fib_alloc ( struct aac_dev dev)
read

aac_fib_alloc - allocate a fib : Adapter to allocate the fib for

Allocate a fib from the adapter fib pool. If the pool is empty we return NULL.

Definition at line 173 of file commsup.c.

int aac_fib_complete ( struct fib fibptr)

aac_fib_complete - fib completion handler : FIB to complete

Will do all necessary work to complete a FIB.

Definition at line 776 of file commsup.c.

void aac_fib_free ( struct fib fibptr)

aac_fib_free - free a fib : fib to free up

Frees up a fib and places it on the appropriate queue

Definition at line 209 of file commsup.c.

void aac_fib_init ( struct fib fibptr)

aac_fib_init - initialise a fib : The fib to initialize

Set up the generic fib fields ready for use

Definition at line 240 of file commsup.c.

void aac_fib_map_free ( struct aac_dev dev)

aac_fib_map_free - free the fib objects : Adapter to free

Free the PCI mappings and the memory allocated for FIB blocks on this adapter.

Definition at line 84 of file commsup.c.

int aac_fib_send ( u16  command,
struct fib fibptr,
unsigned long  size,
int  priority,
int  wait,
int  reply,
fib_callback  callback,
void callback_data 
)

aac_fib_send - send a fib to the adapter : Command to send : The fib : Size of fib data area : Priority of Fib : Async/sync select : True if a reply is wanted : Called with reply : Passed to callback

Sends the requested FIB to the adapter and optionally will wait for a response FIB. If the caller does not wish to wait for a response than an event to wait on must be supplied. This event will be set when a response FIB is received from the adapter.

Definition at line 410 of file commsup.c.

int aac_fib_setup ( struct aac_dev dev)

aac_fib_setup - setup the fibs : Adapter to set up

Allocate the PCI space for the fibs, map it and then initialise the fib area, the unmapped fib data and also the free list

Definition at line 101 of file commsup.c.

int aac_get_adapter_info ( struct aac_dev dev)

Definition at line 1296 of file aachba.c.

int aac_get_config_status ( struct aac_dev dev,
int  commit_flag 
)

aac_get_config_status - check the adapter configuration : adapter to query

Query config status, and commit the configuration if needed.

Definition at line 267 of file aachba.c.

int aac_get_containers ( struct aac_dev dev)

aac_get_containers - list containers : adapter to probe

Make a list of all containers on this controller

Definition at line 359 of file aachba.c.

struct aac_driver_ident* aac_get_driver_ident ( int  devtype)
read

aac_get_driver_ident : index into lookup table

Returns a pointer to the entry in the driver lookup table.

Definition at line 301 of file linit.c.

ssize_t aac_get_serial_number ( struct device dev,
char buf 
)

Definition at line 1045 of file linit.c.

struct aac_dev* aac_init_adapter ( struct aac_dev dev)
read

Definition at line 332 of file comminit.c.

unsigned int aac_intr_normal ( struct aac_dev dev,
u32  index,
int  isAif,
int  isFastResponse,
struct hw_fib aif_fib 
)

aac_intr_normal - Handle command replies : Device : completion reference

This DPC routine will be run when the adapter interrupts us to let us know there is a response on our normal priority queue. We will pull off all QE there are and wake up all the waiters before exiting.

Definition at line 285 of file dpcsup.c.

int aac_nark_init ( struct aac_dev dev)

aac_nark_init - initialize an NEMER/ARK Split Bar card : device to configure

Definition at line 75 of file nark.c.

void aac_printf ( struct aac_dev dev,
u32  val 
)

aac_printf - handle printf from firmware : Adapter : Message info

Print a message passed to us by the controller firmware on the Adaptec board

Definition at line 837 of file commsup.c.

int aac_probe_container ( struct aac_dev dev,
int  cid 
)

Definition at line 674 of file aachba.c.

int aac_queue_get ( struct aac_dev dev,
u32 index,
u32  qid,
struct hw_fib hw_fib,
int  wait,
struct fib fibptr,
unsigned long nonotify 
)

aac_queue_get - get the next free QE : Adapter : Returned index : Priority of fib : Fib to associate with the queue entry : Wait if queue full : Driver fib object to go with fib : Don't notify the adapter

Gets the next free QE off the requested priorty adapter command queue and associates the Fib with the QE. The QE represented by index is ready to insert on the queue when this routine returns success.

Definition at line 348 of file commsup.c.

int aac_reset_adapter ( struct aac_dev dev,
int  forced 
)

Definition at line 1391 of file commsup.c.

unsigned int aac_response_normal ( struct aac_queue q)

aac_response_normal - Handle command replies : Queue to read from

This DPC routine will be run when the adapter interrupts us to let us know there is a response on our normal priority queue. We will pull off all QE there are and wake up all the waiters before exiting. We will take a spinlock out on the queue before operating on it.

Definition at line 54 of file dpcsup.c.

int aac_rkt_init ( struct aac_dev dev)

aac_rkt_init - initialize an i960 based AAC card : device to configure

Allocate and set up resources for the i960 based AAC variants. The device_interface in the commregion will be allocated and linked to the comm region.

Definition at line 98 of file rkt.c.

int aac_rx_deliver_producer ( struct fib fib)

aac_rx_deliver_producer : fib to issue

Will send a fib, returning 0 if successful.

Definition at line 399 of file rx.c.

int aac_rx_init ( struct aac_dev dev)

Definition at line 674 of file rx.c.

int aac_rx_select_comm ( struct aac_dev dev,
int  comm 
)

aac_rx_select_comm - Select communications method : Adapter : communications method

Definition at line 523 of file rx.c.

int aac_sa_init ( struct aac_dev dev)

aac_sa_init - initialize an ARM based AAC card : device to configure

Allocate and set up resources for the ARM based AAC variants. The device_interface in the commregion will be allocated and linked to the comm region.

Definition at line 321 of file sa.c.

int aac_scsi_cmd ( struct scsi_cmnd scsicmd)

aac_scsi_cmd() - Process SCSI command : SCSI command block

Emulate a SCSI command and queue the required request for the aacraid firmware.

Definition at line 2116 of file aachba.c.

int aac_send_shutdown ( struct aac_dev dev)

aac_send_shutdown - shutdown an adapter : Adapter to shutdown

This routine will send a VM_CloseAll (shutdown) request to the adapter.

Definition at line 203 of file comminit.c.

int aac_src_init ( struct aac_dev dev)

aac_src_init - initialize an Cardinal Frey Bar card : device to configure

Definition at line 543 of file src.c.

int aac_srcv_init ( struct aac_dev dev)

aac_srcv_init - initialize an SRCv card : device to configure

Definition at line 682 of file src.c.

char* get_container_type ( unsigned  type)

Definition at line 749 of file aachba.c.

Variable Documentation

int aac_check_reset

Definition at line 217 of file aachba.c.

int aac_commit

Definition at line 153 of file aachba.c.

struct aac_common aac_config

Definition at line 46 of file comminit.c.

char aac_driver_version[]

Definition at line 83 of file linit.c.

int aac_msi

Definition at line 152 of file aachba.c.

int aac_reset_devices

Definition at line 228 of file aachba.c.

int acbsize

Definition at line 201 of file aachba.c.

int aif_timeout

Definition at line 155 of file aachba.c.

int check_interval

Definition at line 212 of file aachba.c.

int expose_physicals

Definition at line 223 of file aachba.c.

int numacb

Definition at line 195 of file aachba.c.

int startup_timeout

Definition at line 154 of file aachba.c.

int update_interval

Definition at line 207 of file aachba.c.