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

Go to the source code of this file.

Data Structures

struct  BusLogic_ByteCounter
 
struct  BusLogic_ProbeInfo
 
struct  BusLogic_ProbeOptions
 
struct  BusLogic_GlobalOptions
 
struct  BusLogic_LocalOptions
 
union  BusLogic_ControlRegister
 
union  BusLogic_StatusRegister
 
union  BusLogic_InterruptRegister
 
union  BusLogic_GeometryRegister
 
struct  BusLogic_BoardID
 
struct  BusLogic_Configuration
 
struct  BusLogic_SynchronousValue
 
struct  BusLogic_SetupInformation
 
struct  BusLogic_ExtendedMailboxRequest
 
struct  BusLogic_PCIHostAdapterInformation
 
struct  BusLogic_ExtendedSetupInformation
 
struct  BusLogic_FetchHostAdapterLocalRAMRequest
 
struct  BusLogic_AutoSCSIData
 
struct  BusLogic_AutoSCSIByte45
 
struct  BusLogic_BIOSDriveMapByte
 
struct  BusLogic_ScatterGatherSegment
 
struct  BusLogic_CCB
 
struct  BusLogic_OutgoingMailbox
 
struct  BusLogic_IncomingMailbox
 
struct  BusLogic_DriverOptions
 
struct  BusLogic_TargetFlags
 
struct  BusLogic_TargetStatistics
 
struct  FlashPoint_Info
 
struct  BusLogic_HostAdapter
 
struct  BIOS_DiskParameters
 
struct  SCSI_Inquiry
 

Macros

#define PACKED   __attribute__((packed))
 
#define BusLogic_MaxHostAdapters   16
 
#define BusLogic_MaxTargetDevices   16
 
#define BusLogic_ScatterGatherLimit   128
 
#define BusLogic_MaxTaggedQueueDepth   64
 
#define BusLogic_MaxAutomaticTaggedQueueDepth   28
 
#define BusLogic_MinAutomaticTaggedQueueDepth   7
 
#define BusLogic_TaggedQueueDepthBB   3
 
#define BusLogic_UntaggedQueueDepth   3
 
#define BusLogic_UntaggedQueueDepthBB   2
 
#define BusLogic_DefaultBusSettleTime   2
 
#define BusLogic_MaxMailboxes   211
 
#define BusLogic_CCB_AllocationGroupSize   7
 
#define BusLogic_LineBufferSize   100
 
#define BusLogic_MessageBufferSize   9700
 
#define BusLogic_Announce(Format, Arguments...)   BusLogic_Message(BusLogic_AnnounceLevel, Format, ##Arguments)
 
#define BusLogic_Info(Format, Arguments...)   BusLogic_Message(BusLogic_InfoLevel, Format, ##Arguments)
 
#define BusLogic_Notice(Format, Arguments...)   BusLogic_Message(BusLogic_NoticeLevel, Format, ##Arguments)
 
#define BusLogic_Warning(Format, Arguments...)   BusLogic_Message(BusLogic_WarningLevel, Format, ##Arguments)
 
#define BusLogic_Error(Format, Arguments...)   BusLogic_Message(BusLogic_ErrorLevel, Format, ##Arguments)
 
#define BusLogic_MultiMasterAddressCount   4
 
#define BusLogic_FlashPointAddressCount   256
 
#define BusLogic_MultiMasterHostAdapterP(HostAdapter)   (true)
 
#define BusLogic_FlashPointHostAdapterP(HostAdapter)   (false)
 
#define BusLogic_ControlRegisterOffset   0 /* WO register */
 
#define BusLogic_StatusRegisterOffset   0 /* RO register */
 
#define BusLogic_CommandParameterRegisterOffset   1 /* WO register */
 
#define BusLogic_DataInRegisterOffset   1 /* RO register */
 
#define BusLogic_InterruptRegisterOffset   2 /* RO register */
 
#define BusLogic_GeometryRegisterOffset   3 /* RO register */
 
#define BusLogic_BIOS_BaseOffset   0
 
#define BusLogic_AutoSCSI_BaseOffset   64
 
#define BusLogic_BIOS_DriveMapOffset   17
 
#define BusLogic_CDB_MaxLength   12
 
#define BusLogic_SizeBuckets   10
 
#define FlashPoint_BadCardHandle   0xFFFFFFFF
 
#define FlashPoint_FirmwareVersion   "5.02"
 
#define FlashPoint_NormalInterrupt   0x00
 
#define FlashPoint_InternalError   0xFE
 
#define FlashPoint_ExternalBusReset   0xFF
 

Typedefs

typedef unsigned char SCSI_CDB_T [BusLogic_CDB_MaxLength]
 
typedef unsigned int BusLogic_CommandSizeBuckets_T [BusLogic_SizeBuckets]
 
typedef unsigned int FlashPoint_CardHandle_T
 

Enumerations

enum  BusLogic_MessageLevel {
  BusLogic_AnnounceLevel = 0, BusLogic_InfoLevel = 1, BusLogic_NoticeLevel = 2, BusLogic_WarningLevel = 3,
  BusLogic_ErrorLevel = 4
}
 
enum  BusLogic_HostAdapterType { BusLogic_MultiMaster = 1, BusLogic_FlashPoint = 2 }
 
enum  BusLogic_HostAdapterBusType {
  BusLogic_Unknown_Bus = 0, BusLogic_ISA_Bus = 1, BusLogic_EISA_Bus = 2, BusLogic_PCI_Bus = 3,
  BusLogic_VESA_Bus = 4, BusLogic_MCA_Bus = 5
}
 
enum  BusLogic_BIOS_DiskGeometryTranslation { BusLogic_BIOS_Disk_Not_Installed = 0, BusLogic_BIOS_Disk_Installed_64x32 = 1, BusLogic_BIOS_Disk_Installed_128x32 = 2, BusLogic_BIOS_Disk_Installed_255x63 = 3 }
 
enum  BusLogic_OperationCode {
  BusLogic_TestCommandCompleteInterrupt = 0x00, BusLogic_InitializeMailbox = 0x01, BusLogic_ExecuteMailboxCommand = 0x02, BusLogic_ExecuteBIOSCommand = 0x03,
  BusLogic_InquireBoardID = 0x04, BusLogic_EnableOutgoingMailboxAvailableInt = 0x05, BusLogic_SetSCSISelectionTimeout = 0x06, BusLogic_SetPreemptTimeOnBus = 0x07,
  BusLogic_SetTimeOffBus = 0x08, BusLogic_SetBusTransferRate = 0x09, BusLogic_InquireInstalledDevicesID0to7 = 0x0A, BusLogic_InquireConfiguration = 0x0B,
  BusLogic_EnableTargetMode = 0x0C, BusLogic_InquireSetupInformation = 0x0D, BusLogic_WriteAdapterLocalRAM = 0x1A, BusLogic_ReadAdapterLocalRAM = 0x1B,
  BusLogic_WriteBusMasterChipFIFO = 0x1C, BusLogic_ReadBusMasterChipFIFO = 0x1D, BusLogic_EchoCommandData = 0x1F, BusLogic_HostAdapterDiagnostic = 0x20,
  BusLogic_SetAdapterOptions = 0x21, BusLogic_InquireInstalledDevicesID8to15 = 0x23, BusLogic_InquireTargetDevices = 0x24, BusLogic_DisableHostAdapterInterrupt = 0x25,
  BusLogic_InitializeExtendedMailbox = 0x81, BusLogic_ExecuteSCSICommand = 0x83, BusLogic_InquireFirmwareVersion3rdDigit = 0x84, BusLogic_InquireFirmwareVersionLetter = 0x85,
  BusLogic_InquirePCIHostAdapterInformation = 0x86, BusLogic_InquireHostAdapterModelNumber = 0x8B, BusLogic_InquireSynchronousPeriod = 0x8C, BusLogic_InquireExtendedSetupInformation = 0x8D,
  BusLogic_EnableStrictRoundRobinMode = 0x8F, BusLogic_StoreHostAdapterLocalRAM = 0x90, BusLogic_FetchHostAdapterLocalRAM = 0x91, BusLogic_StoreLocalDataInEEPROM = 0x92,
  BusLogic_UploadAutoSCSICode = 0x94, BusLogic_ModifyIOAddress = 0x95, BusLogic_SetCCBFormat = 0x96, BusLogic_WriteInquiryBuffer = 0x9A,
  BusLogic_ReadInquiryBuffer = 0x9B, BusLogic_FlashROMUploadDownload = 0xA7, BusLogic_ReadSCAMData = 0xA8, BusLogic_WriteSCAMData = 0xA9
}
 
enum  BusLogic_ISACompatibleIOPort {
  BusLogic_IO_330 = 0, BusLogic_IO_334 = 1, BusLogic_IO_230 = 2, BusLogic_IO_234 = 3,
  BusLogic_IO_130 = 4, BusLogic_IO_134 = 5, BusLogic_IO_Disable = 6, BusLogic_IO_Disable2 = 7
}
 
enum  BusLogic_RoundRobinModeRequest { BusLogic_AggressiveRoundRobinMode = 0, BusLogic_StrictRoundRobinMode = 1 }
 
enum  BusLogic_SetCCBFormatRequest { BusLogic_LegacyLUNFormatCCB = 0, BusLogic_ExtendedLUNFormatCCB = 1 }
 
enum  BusLogic_ActionCode { BusLogic_OutgoingMailboxFree = 0x00, BusLogic_MailboxStartCommand = 0x01, BusLogic_MailboxAbortCommand = 0x02 }
 
enum  BusLogic_CompletionCode {
  BusLogic_IncomingMailboxFree = 0x00, BusLogic_CommandCompletedWithoutError = 0x01, BusLogic_CommandAbortedAtHostRequest = 0x02, BusLogic_AbortedCommandNotFound = 0x03,
  BusLogic_CommandCompletedWithError = 0x04, BusLogic_InvalidCCB = 0x05
}
 
enum  BusLogic_CCB_Opcode {
  BusLogic_InitiatorCCB = 0x00, BusLogic_TargetCCB = 0x01, BusLogic_InitiatorCCB_ScatterGather = 0x02, BusLogic_InitiatorCCB_ResidualDataLength = 0x03,
  BusLogic_InitiatorCCB_ScatterGatherResidual = 0x04, BusLogic_BusDeviceReset = 0x81
}
 
enum  BusLogic_DataDirection { BusLogic_UncheckedDataTransfer = 0, BusLogic_DataInLengthChecked = 1, BusLogic_DataOutLengthChecked = 2, BusLogic_NoDataTransfer = 3 }
 
enum  BusLogic_HostAdapterStatus {
  BusLogic_CommandCompletedNormally = 0x00, BusLogic_LinkedCommandCompleted = 0x0A, BusLogic_LinkedCommandCompletedWithFlag = 0x0B, BusLogic_DataUnderRun = 0x0C,
  BusLogic_SCSISelectionTimeout = 0x11, BusLogic_DataOverRun = 0x12, BusLogic_UnexpectedBusFree = 0x13, BusLogic_InvalidBusPhaseRequested = 0x14,
  BusLogic_InvalidOutgoingMailboxActionCode = 0x15, BusLogic_InvalidCommandOperationCode = 0x16, BusLogic_LinkedCCBhasInvalidLUN = 0x17, BusLogic_InvalidCommandParameter = 0x1A,
  BusLogic_AutoRequestSenseFailed = 0x1B, BusLogic_TaggedQueuingMessageRejected = 0x1C, BusLogic_UnsupportedMessageReceived = 0x1D, BusLogic_HostAdapterHardwareFailed = 0x20,
  BusLogic_TargetFailedResponseToATN = 0x21, BusLogic_HostAdapterAssertedRST = 0x22, BusLogic_OtherDeviceAssertedRST = 0x23, BusLogic_TargetDeviceReconnectedImproperly = 0x24,
  BusLogic_HostAdapterAssertedBusDeviceReset = 0x25, BusLogic_AbortQueueGenerated = 0x26, BusLogic_HostAdapterSoftwareError = 0x27, BusLogic_HostAdapterHardwareTimeoutError = 0x30,
  BusLogic_SCSIParityErrorDetected = 0x34
}
 
enum  BusLogic_TargetDeviceStatus { BusLogic_OperationGood = 0x00, BusLogic_CheckCondition = 0x02, BusLogic_DeviceBusy = 0x08 }
 
enum  BusLogic_QueueTag { BusLogic_SimpleQueueTag = 0, BusLogic_HeadOfQueueTag = 1, BusLogic_OrderedQueueTag = 2, BusLogic_ReservedQT = 3 }
 
enum  BusLogic_CCB_Status { BusLogic_CCB_Free = 0, BusLogic_CCB_Active = 1, BusLogic_CCB_Completed = 2, BusLogic_CCB_Reset = 3 }
 

Variables

enum BusLogic_HostAdapterType PACKED
 

Macro Definition Documentation

#define BusLogic_Announce (   Format,
  Arguments... 
)    BusLogic_Message(BusLogic_AnnounceLevel, Format, ##Arguments)

Definition at line 128 of file BusLogic.h.

#define BusLogic_AutoSCSI_BaseOffset   64

Definition at line 554 of file BusLogic.h.

#define BusLogic_BIOS_BaseOffset   0

Definition at line 553 of file BusLogic.h.

#define BusLogic_BIOS_DriveMapOffset   17

Definition at line 649 of file BusLogic.h.

#define BusLogic_CCB_AllocationGroupSize   7

Definition at line 98 of file BusLogic.h.

#define BusLogic_CDB_MaxLength   12

Definition at line 779 of file BusLogic.h.

#define BusLogic_CommandParameterRegisterOffset   1 /* WO register */

Definition at line 289 of file BusLogic.h.

#define BusLogic_ControlRegisterOffset   0 /* WO register */

Definition at line 287 of file BusLogic.h.

#define BusLogic_DataInRegisterOffset   1 /* RO register */

Definition at line 290 of file BusLogic.h.

#define BusLogic_DefaultBusSettleTime   2

Definition at line 80 of file BusLogic.h.

#define BusLogic_Error (   Format,
  Arguments... 
)    BusLogic_Message(BusLogic_ErrorLevel, Format, ##Arguments)

Definition at line 140 of file BusLogic.h.

#define BusLogic_FlashPointAddressCount   256

Definition at line 155 of file BusLogic.h.

#define BusLogic_FlashPointHostAdapterP (   HostAdapter)    (false)

Definition at line 177 of file BusLogic.h.

#define BusLogic_GeometryRegisterOffset   3 /* RO register */

Definition at line 292 of file BusLogic.h.

#define BusLogic_Info (   Format,
  Arguments... 
)    BusLogic_Message(BusLogic_InfoLevel, Format, ##Arguments)

Definition at line 131 of file BusLogic.h.

#define BusLogic_InterruptRegisterOffset   2 /* RO register */

Definition at line 291 of file BusLogic.h.

#define BusLogic_LineBufferSize   100

Definition at line 105 of file BusLogic.h.

#define BusLogic_MaxAutomaticTaggedQueueDepth   28

Definition at line 66 of file BusLogic.h.

#define BusLogic_MaxHostAdapters   16

Definition at line 40 of file BusLogic.h.

#define BusLogic_MaxMailboxes   211

Definition at line 90 of file BusLogic.h.

#define BusLogic_MaxTaggedQueueDepth   64

Definition at line 65 of file BusLogic.h.

#define BusLogic_MaxTargetDevices   16

Definition at line 47 of file BusLogic.h.

#define BusLogic_MessageBufferSize   9700

Definition at line 106 of file BusLogic.h.

#define BusLogic_MinAutomaticTaggedQueueDepth   7

Definition at line 67 of file BusLogic.h.

#define BusLogic_MultiMasterAddressCount   4

Definition at line 154 of file BusLogic.h.

#define BusLogic_MultiMasterHostAdapterP (   HostAdapter)    (true)

Definition at line 174 of file BusLogic.h.

#define BusLogic_Notice (   Format,
  Arguments... 
)    BusLogic_Message(BusLogic_NoticeLevel, Format, ##Arguments)

Definition at line 134 of file BusLogic.h.

#define BusLogic_ScatterGatherLimit   128

Definition at line 56 of file BusLogic.h.

#define BusLogic_SizeBuckets   10

Definition at line 932 of file BusLogic.h.

#define BusLogic_StatusRegisterOffset   0 /* RO register */

Definition at line 288 of file BusLogic.h.

#define BusLogic_TaggedQueueDepthBB   3

Definition at line 68 of file BusLogic.h.

#define BusLogic_UntaggedQueueDepth   3

Definition at line 69 of file BusLogic.h.

#define BusLogic_UntaggedQueueDepthBB   2

Definition at line 70 of file BusLogic.h.

#define BusLogic_Warning (   Format,
  Arguments... 
)    BusLogic_Message(BusLogic_WarningLevel, Format, ##Arguments)

Definition at line 137 of file BusLogic.h.

#define FlashPoint_BadCardHandle   0xFFFFFFFF

Definition at line 960 of file BusLogic.h.

#define FlashPoint_ExternalBusReset   0xFF

Definition at line 1314 of file BusLogic.h.

#define FlashPoint_FirmwareVersion   "5.02"

Definition at line 1306 of file BusLogic.h.

#define FlashPoint_InternalError   0xFE

Definition at line 1313 of file BusLogic.h.

#define FlashPoint_NormalInterrupt   0x00

Definition at line 1312 of file BusLogic.h.

#define PACKED   __attribute__((packed))

Definition at line 33 of file BusLogic.h.

Typedef Documentation

typedef unsigned int BusLogic_CommandSizeBuckets_T[BusLogic_SizeBuckets]

Definition at line 934 of file BusLogic.h.

typedef unsigned int FlashPoint_CardHandle_T

Definition at line 962 of file BusLogic.h.

typedef unsigned char SCSI_CDB_T[BusLogic_CDB_MaxLength]

Definition at line 781 of file BusLogic.h.

Enumeration Type Documentation

Enumerator:
BusLogic_OutgoingMailboxFree 
BusLogic_MailboxStartCommand 
BusLogic_MailboxAbortCommand 

Definition at line 672 of file BusLogic.h.

Enumerator:
BusLogic_BIOS_Disk_Not_Installed 
BusLogic_BIOS_Disk_Installed_64x32 
BusLogic_BIOS_Disk_Installed_128x32 
BusLogic_BIOS_Disk_Installed_255x63 

Definition at line 211 of file BusLogic.h.

Enumerator:
BusLogic_InitiatorCCB 
BusLogic_TargetCCB 
BusLogic_InitiatorCCB_ScatterGather 
BusLogic_InitiatorCCB_ResidualDataLength 
BusLogic_InitiatorCCB_ScatterGatherResidual 
BusLogic_BusDeviceReset 

Definition at line 698 of file BusLogic.h.

Enumerator:
BusLogic_CCB_Free 
BusLogic_CCB_Active 
BusLogic_CCB_Completed 
BusLogic_CCB_Reset 

Definition at line 798 of file BusLogic.h.

Enumerator:
BusLogic_IncomingMailboxFree 
BusLogic_CommandCompletedWithoutError 
BusLogic_CommandAbortedAtHostRequest 
BusLogic_AbortedCommandNotFound 
BusLogic_CommandCompletedWithError 
BusLogic_InvalidCCB 

Definition at line 685 of file BusLogic.h.

Enumerator:
BusLogic_UncheckedDataTransfer 
BusLogic_DataInLengthChecked 
BusLogic_DataOutLengthChecked 
BusLogic_NoDataTransfer 

Definition at line 712 of file BusLogic.h.

Enumerator:
BusLogic_Unknown_Bus 
BusLogic_ISA_Bus 
BusLogic_EISA_Bus 
BusLogic_PCI_Bus 
BusLogic_VESA_Bus 
BusLogic_MCA_Bus 

Definition at line 187 of file BusLogic.h.

Enumerator:
BusLogic_CommandCompletedNormally 
BusLogic_LinkedCommandCompleted 
BusLogic_LinkedCommandCompletedWithFlag 
BusLogic_DataUnderRun 
BusLogic_SCSISelectionTimeout 
BusLogic_DataOverRun 
BusLogic_UnexpectedBusFree 
BusLogic_InvalidBusPhaseRequested 
BusLogic_InvalidOutgoingMailboxActionCode 
BusLogic_InvalidCommandOperationCode 
BusLogic_LinkedCCBhasInvalidLUN 
BusLogic_InvalidCommandParameter 
BusLogic_AutoRequestSenseFailed 
BusLogic_TaggedQueuingMessageRejected 
BusLogic_UnsupportedMessageReceived 
BusLogic_HostAdapterHardwareFailed 
BusLogic_TargetFailedResponseToATN 
BusLogic_HostAdapterAssertedRST 
BusLogic_OtherDeviceAssertedRST 
BusLogic_TargetDeviceReconnectedImproperly 
BusLogic_HostAdapterAssertedBusDeviceReset 
BusLogic_AbortQueueGenerated 
BusLogic_HostAdapterSoftwareError 
BusLogic_HostAdapterHardwareTimeoutError 
BusLogic_SCSIParityErrorDetected 

Definition at line 725 of file BusLogic.h.

Enumerator:
BusLogic_MultiMaster 
BusLogic_FlashPoint 

Definition at line 149 of file BusLogic.h.

Enumerator:
BusLogic_IO_330 
BusLogic_IO_334 
BusLogic_IO_230 
BusLogic_IO_234 
BusLogic_IO_130 
BusLogic_IO_134 
BusLogic_IO_Disable 
BusLogic_IO_Disable2 

Definition at line 489 of file BusLogic.h.

Enumerator:
BusLogic_AnnounceLevel 
BusLogic_InfoLevel 
BusLogic_NoticeLevel 
BusLogic_WarningLevel 
BusLogic_ErrorLevel 

Definition at line 113 of file BusLogic.h.

Enumerator:
BusLogic_TestCommandCompleteInterrupt 
BusLogic_InitializeMailbox 
BusLogic_ExecuteMailboxCommand 
BusLogic_ExecuteBIOSCommand 
BusLogic_InquireBoardID 
BusLogic_EnableOutgoingMailboxAvailableInt 
BusLogic_SetSCSISelectionTimeout 
BusLogic_SetPreemptTimeOnBus 
BusLogic_SetTimeOffBus 
BusLogic_SetBusTransferRate 
BusLogic_InquireInstalledDevicesID0to7 
BusLogic_InquireConfiguration 
BusLogic_EnableTargetMode 
BusLogic_InquireSetupInformation 
BusLogic_WriteAdapterLocalRAM 
BusLogic_ReadAdapterLocalRAM 
BusLogic_WriteBusMasterChipFIFO 
BusLogic_ReadBusMasterChipFIFO 
BusLogic_EchoCommandData 
BusLogic_HostAdapterDiagnostic 
BusLogic_SetAdapterOptions 
BusLogic_InquireInstalledDevicesID8to15 
BusLogic_InquireTargetDevices 
BusLogic_DisableHostAdapterInterrupt 
BusLogic_InitializeExtendedMailbox 
BusLogic_ExecuteSCSICommand 
BusLogic_InquireFirmwareVersion3rdDigit 
BusLogic_InquireFirmwareVersionLetter 
BusLogic_InquirePCIHostAdapterInformation 
BusLogic_InquireHostAdapterModelNumber 
BusLogic_InquireSynchronousPeriod 
BusLogic_InquireExtendedSetupInformation 
BusLogic_EnableStrictRoundRobinMode 
BusLogic_StoreHostAdapterLocalRAM 
BusLogic_FetchHostAdapterLocalRAM 
BusLogic_StoreLocalDataInEEPROM 
BusLogic_UploadAutoSCSICode 
BusLogic_ModifyIOAddress 
BusLogic_SetCCBFormat 
BusLogic_WriteInquiryBuffer 
BusLogic_ReadInquiryBuffer 
BusLogic_FlashROMUploadDownload 
BusLogic_ReadSCAMData 
BusLogic_WriteSCAMData 

Definition at line 361 of file BusLogic.h.

Enumerator:
BusLogic_SimpleQueueTag 
BusLogic_HeadOfQueueTag 
BusLogic_OrderedQueueTag 
BusLogic_ReservedQT 

Definition at line 768 of file BusLogic.h.

Enumerator:
BusLogic_AggressiveRoundRobinMode 
BusLogic_StrictRoundRobinMode 

Definition at line 543 of file BusLogic.h.

Enumerator:
BusLogic_LegacyLUNFormatCCB 
BusLogic_ExtendedLUNFormatCCB 

Definition at line 663 of file BusLogic.h.

Enumerator:
BusLogic_OperationGood 
BusLogic_CheckCondition 
BusLogic_DeviceBusy 

Definition at line 758 of file BusLogic.h.

Variable Documentation