Commit 839cb99e authored by Khalid Aziz's avatar Khalid Aziz Committed by James Bottomley

[SCSI] BusLogic: Fix style issues

Fix CamelCase and extra long lines in the buslogic driver.
Signed-off-by: default avatarKhalid Aziz <khalid.aziz@oracle.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 3b9373e9
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -37,14 +37,14 @@ ...@@ -37,14 +37,14 @@
Define the maximum number of BusLogic Host Adapters supported by this driver. Define the maximum number of BusLogic Host Adapters supported by this driver.
*/ */
#define BusLogic_MaxHostAdapters 16 #define BLOGIC_MAX_ADAPTERS 16
/* /*
Define the maximum number of Target Devices supported by this driver. Define the maximum number of Target Devices supported by this driver.
*/ */
#define BusLogic_MaxTargetDevices 16 #define BLOGIC_MAXDEV 16
/* /*
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
large as the largest single request generated by the I/O Subsystem. large as the largest single request generated by the I/O Subsystem.
*/ */
#define BusLogic_ScatterGatherLimit 128 #define BLOGIC_SG_LIMIT 128
/* /*
...@@ -62,12 +62,12 @@ ...@@ -62,12 +62,12 @@
Tagged Queuing and whether or not ISA Bounce Buffers are required. Tagged Queuing and whether or not ISA Bounce Buffers are required.
*/ */
#define BusLogic_MaxTaggedQueueDepth 64 #define BLOGIC_MAX_TAG_DEPTH 64
#define BusLogic_MaxAutomaticTaggedQueueDepth 28 #define BLOGIC_MAX_AUTO_TAG_DEPTH 28
#define BusLogic_MinAutomaticTaggedQueueDepth 7 #define BLOGIC_MIN_AUTO_TAG_DEPTH 7
#define BusLogic_TaggedQueueDepthBB 3 #define BLOGIC_TAG_DEPTH_BB 3
#define BusLogic_UntaggedQueueDepth 3 #define BLOGIC_UNTAG_DEPTH 3
#define BusLogic_UntaggedQueueDepthBB 2 #define BLOGIC_UNTAG_DEPTH_BB 2
/* /*
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
a SCSI Bus Reset. a SCSI Bus Reset.
*/ */
#define BusLogic_DefaultBusSettleTime 2 #define BLOGIC_BUS_SETTLE_TIME 2
/* /*
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
does not cross an allocation block size boundary. does not cross an allocation block size boundary.
*/ */
#define BusLogic_MaxMailboxes 211 #define BLOGIC_MAX_MAILBOX 211
/* /*
...@@ -95,50 +95,50 @@ ...@@ -95,50 +95,50 @@
Kernel memory allocation. Kernel memory allocation.
*/ */
#define BusLogic_CCB_AllocationGroupSize 7 #define BLOGIC_CCB_GRP_ALLOCSIZE 7
/* /*
Define the Host Adapter Line and Message Buffer Sizes. Define the Host Adapter Line and Message Buffer Sizes.
*/ */
#define BusLogic_LineBufferSize 100 #define BLOGIC_LINEBUF_SIZE 100
#define BusLogic_MessageBufferSize 9700 #define BLOGIC_MSGBUF_SIZE 9700
/* /*
Define the Driver Message Levels. Define the Driver Message Levels.
*/ */
enum BusLogic_MessageLevel { enum blogic_msglevel {
BusLogic_AnnounceLevel = 0, BLOGIC_ANNOUNCE_LEVEL = 0,
BusLogic_InfoLevel = 1, BLOGIC_INFO_LEVEL = 1,
BusLogic_NoticeLevel = 2, BLOGIC_NOTICE_LEVEL = 2,
BusLogic_WarningLevel = 3, BLOGIC_WARN_LEVEL = 3,
BusLogic_ErrorLevel = 4 BLOGIC_ERR_LEVEL = 4
}; };
static char *BusLogic_MessageLevelMap[] = { KERN_NOTICE, KERN_NOTICE, KERN_NOTICE, KERN_WARNING, KERN_ERR }; static char *blogic_msglevelmap[] = { KERN_NOTICE, KERN_NOTICE, KERN_NOTICE, KERN_WARNING, KERN_ERR };
/* /*
Define Driver Message macros. Define Driver Message macros.
*/ */
#define BusLogic_Announce(Format, Arguments...) \ #define blogic_announce(format, args...) \
BusLogic_Message(BusLogic_AnnounceLevel, Format, ##Arguments) blogic_msg(BLOGIC_ANNOUNCE_LEVEL, format, ##args)
#define BusLogic_Info(Format, Arguments...) \ #define blogic_info(format, args...) \
BusLogic_Message(BusLogic_InfoLevel, Format, ##Arguments) blogic_msg(BLOGIC_INFO_LEVEL, format, ##args)
#define BusLogic_Notice(Format, Arguments...) \ #define blogic_notice(format, args...) \
BusLogic_Message(BusLogic_NoticeLevel, Format, ##Arguments) blogic_msg(BLOGIC_NOTICE_LEVEL, format, ##args)
#define BusLogic_Warning(Format, Arguments...) \ #define blogic_warn(format, args...) \
BusLogic_Message(BusLogic_WarningLevel, Format, ##Arguments) blogic_msg(BLOGIC_WARN_LEVEL, format, ##args)
#define BusLogic_Error(Format, Arguments...) \ #define blogic_err(format, args...) \
BusLogic_Message(BusLogic_ErrorLevel, Format, ##Arguments) blogic_msg(BLOGIC_ERR_LEVEL, format, ##args)
/* /*
...@@ -146,15 +146,15 @@ static char *BusLogic_MessageLevelMap[] = { KERN_NOTICE, KERN_NOTICE, KERN_NOTIC ...@@ -146,15 +146,15 @@ static char *BusLogic_MessageLevelMap[] = { KERN_NOTICE, KERN_NOTICE, KERN_NOTIC
of I/O Addresses required by each type. of I/O Addresses required by each type.
*/ */
enum BusLogic_HostAdapterType { enum blogic_adapter_type {
BusLogic_MultiMaster = 1, BLOGIC_MULTIMASTER = 1,
BusLogic_FlashPoint = 2 BLOGIC_FLASHPOINT = 2
} PACKED; } PACKED;
#define BusLogic_MultiMasterAddressCount 4 #define BLOGIC_MULTIMASTER_ADDR_COUNT 4
#define BusLogic_FlashPointAddressCount 256 #define BLOGIC_FLASHPOINT_ADDR_COUNT 256
static int BusLogic_HostAdapterAddressCount[3] = { 0, BusLogic_MultiMasterAddressCount, BusLogic_FlashPointAddressCount }; static int blogic_adapter_addr_count[3] = { 0, BLOGIC_MULTIMASTER_ADDR_COUNT, BLOGIC_FLASHPOINT_ADDR_COUNT };
/* /*
...@@ -163,19 +163,16 @@ static int BusLogic_HostAdapterAddressCount[3] = { 0, BusLogic_MultiMasterAddres ...@@ -163,19 +163,16 @@ static int BusLogic_HostAdapterAddressCount[3] = { 0, BusLogic_MultiMasterAddres
#ifdef CONFIG_SCSI_FLASHPOINT #ifdef CONFIG_SCSI_FLASHPOINT
#define BusLogic_MultiMasterHostAdapterP(HostAdapter) \ #define blogic_multimaster_type(adapter) \
(HostAdapter->HostAdapterType == BusLogic_MultiMaster) (adapter->adapter_type == BLOGIC_MULTIMASTER)
#define BusLogic_FlashPointHostAdapterP(HostAdapter) \ #define blogic_flashpoint_type(adapter) \
(HostAdapter->HostAdapterType == BusLogic_FlashPoint) (adapter->adapter_type == BLOGIC_FLASHPOINT)
#else #else
#define BusLogic_MultiMasterHostAdapterP(HostAdapter) \ #define blogic_multimaster_type(adapter) (true)
(true) #define blogic_flashpoint_type(adapter) (false)
#define BusLogic_FlashPointHostAdapterP(HostAdapter) \
(false)
#endif #endif
...@@ -184,35 +181,35 @@ static int BusLogic_HostAdapterAddressCount[3] = { 0, BusLogic_MultiMasterAddres ...@@ -184,35 +181,35 @@ static int BusLogic_HostAdapterAddressCount[3] = { 0, BusLogic_MultiMasterAddres
Define the possible Host Adapter Bus Types. Define the possible Host Adapter Bus Types.
*/ */
enum BusLogic_HostAdapterBusType { enum blogic_adapter_bus_type {
BusLogic_Unknown_Bus = 0, BLOGIC_UNKNOWN_BUS = 0,
BusLogic_ISA_Bus = 1, BLOGIC_ISA_BUS = 1,
BusLogic_EISA_Bus = 2, BLOGIC_EISA_BUS = 2,
BusLogic_PCI_Bus = 3, BLOGIC_PCI_BUS = 3,
BusLogic_VESA_Bus = 4, BLOGIC_VESA_BUS = 4,
BusLogic_MCA_Bus = 5 BLOGIC_MCA_BUS = 5
} PACKED; } PACKED;
static char *BusLogic_HostAdapterBusNames[] = { "Unknown", "ISA", "EISA", "PCI", "VESA", "MCA" }; static char *blogic_adapter_busnames[] = { "Unknown", "ISA", "EISA", "PCI", "VESA", "MCA" };
static enum BusLogic_HostAdapterBusType BusLogic_HostAdapterBusTypes[] = { static enum blogic_adapter_bus_type blogic_adater_bus_types[] = {
BusLogic_VESA_Bus, /* BT-4xx */ BLOGIC_VESA_BUS, /* BT-4xx */
BusLogic_ISA_Bus, /* BT-5xx */ BLOGIC_ISA_BUS, /* BT-5xx */
BusLogic_MCA_Bus, /* BT-6xx */ BLOGIC_MCA_BUS, /* BT-6xx */
BusLogic_EISA_Bus, /* BT-7xx */ BLOGIC_EISA_BUS, /* BT-7xx */
BusLogic_Unknown_Bus, /* BT-8xx */ BLOGIC_UNKNOWN_BUS, /* BT-8xx */
BusLogic_PCI_Bus /* BT-9xx */ BLOGIC_PCI_BUS /* BT-9xx */
}; };
/* /*
Define the possible Host Adapter BIOS Disk Geometry Translations. Define the possible Host Adapter BIOS Disk Geometry Translations.
*/ */
enum BusLogic_BIOS_DiskGeometryTranslation { enum blogic_bios_diskgeometry {
BusLogic_BIOS_Disk_Not_Installed = 0, BLOGIC_BIOS_NODISK = 0,
BusLogic_BIOS_Disk_Installed_64x32 = 1, BLOGIC_BIOS_DISK64x32 = 1,
BusLogic_BIOS_Disk_Installed_128x32 = 2, BLOGIC_BIOS_DISK128x32 = 2,
BusLogic_BIOS_Disk_Installed_255x63 = 3 BLOGIC_BIOS_DISK255x63 = 3
} PACKED; } PACKED;
...@@ -220,9 +217,9 @@ enum BusLogic_BIOS_DiskGeometryTranslation { ...@@ -220,9 +217,9 @@ enum BusLogic_BIOS_DiskGeometryTranslation {
Define a 10^18 Statistics Byte Counter data type. Define a 10^18 Statistics Byte Counter data type.
*/ */
struct BusLogic_ByteCounter { struct blogic_byte_count {
unsigned int Units; unsigned int units;
unsigned int Billions; unsigned int billions;
}; };
...@@ -230,79 +227,71 @@ struct BusLogic_ByteCounter { ...@@ -230,79 +227,71 @@ struct BusLogic_ByteCounter {
Define the structure for I/O Address and Bus Probing Information. Define the structure for I/O Address and Bus Probing Information.
*/ */
struct BusLogic_ProbeInfo { struct blogic_probeinfo {
enum BusLogic_HostAdapterType HostAdapterType; enum blogic_adapter_type adapter_type;
enum BusLogic_HostAdapterBusType HostAdapterBusType; enum blogic_adapter_bus_type adapter_bus_type;
unsigned long IO_Address; unsigned long io_addr;
unsigned long PCI_Address; unsigned long pci_addr;
struct pci_dev *PCI_Device; struct pci_dev *pci_device;
unsigned char Bus; unsigned char bus;
unsigned char Device; unsigned char dev;
unsigned char IRQ_Channel; unsigned char irq_ch;
}; };
/* /*
Define the Probe Options. Define the Probe Options.
*/ */
struct BusLogic_ProbeOptions { struct blogic_probe_options {
bool NoProbe:1; /* Bit 0 */ bool noprobe:1; /* Bit 0 */
bool NoProbeISA:1; /* Bit 1 */ bool noprobe_isa:1; /* Bit 1 */
bool NoProbePCI:1; /* Bit 2 */ bool noprobe_pci:1; /* Bit 2 */
bool NoSortPCI:1; /* Bit 3 */ bool nosort_pci:1; /* Bit 3 */
bool MultiMasterFirst:1;/* Bit 4 */ bool multimaster_first:1; /* Bit 4 */
bool FlashPointFirst:1; /* Bit 5 */ bool flashpoint_first:1; /* Bit 5 */
bool LimitedProbeISA:1; /* Bit 6 */ bool limited_isa:1; /* Bit 6 */
bool Probe330:1; /* Bit 7 */ bool probe330:1; /* Bit 7 */
bool Probe334:1; /* Bit 8 */ bool probe334:1; /* Bit 8 */
bool Probe230:1; /* Bit 9 */ bool probe230:1; /* Bit 9 */
bool Probe234:1; /* Bit 10 */ bool probe234:1; /* Bit 10 */
bool Probe130:1; /* Bit 11 */ bool probe130:1; /* Bit 11 */
bool Probe134:1; /* Bit 12 */ bool probe134:1; /* Bit 12 */
}; };
/* /*
Define the Global Options. Define the Global Options.
*/ */
struct BusLogic_GlobalOptions { struct blogic_global_options {
bool TraceProbe:1; /* Bit 0 */ bool trace_probe:1; /* Bit 0 */
bool TraceHardwareReset:1; /* Bit 1 */ bool trace_hw_reset:1; /* Bit 1 */
bool TraceConfiguration:1; /* Bit 2 */ bool trace_config:1; /* Bit 2 */
bool TraceErrors:1; /* Bit 3 */ bool trace_err:1; /* Bit 3 */
};
/*
Define the Local Options.
*/
struct BusLogic_LocalOptions {
bool InhibitTargetInquiry:1; /* Bit 0 */
}; };
/* /*
Define the BusLogic SCSI Host Adapter I/O Register Offsets. Define the BusLogic SCSI Host Adapter I/O Register Offsets.
*/ */
#define BusLogic_ControlRegisterOffset 0 /* WO register */ #define BLOGIC_CNTRL_REG 0 /* WO register */
#define BusLogic_StatusRegisterOffset 0 /* RO register */ #define BLOGIC_STATUS_REG 0 /* RO register */
#define BusLogic_CommandParameterRegisterOffset 1 /* WO register */ #define BLOGIC_CMD_PARM_REG 1 /* WO register */
#define BusLogic_DataInRegisterOffset 1 /* RO register */ #define BLOGIC_DATAIN_REG 1 /* RO register */
#define BusLogic_InterruptRegisterOffset 2 /* RO register */ #define BLOGIC_INT_REG 2 /* RO register */
#define BusLogic_GeometryRegisterOffset 3 /* RO register */ #define BLOGIC_GEOMETRY_REG 3 /* RO register */
/* /*
Define the structure of the write-only Control Register. Define the structure of the write-only Control Register.
*/ */
union BusLogic_ControlRegister { union blogic_cntrl_reg {
unsigned char All; unsigned char all;
struct { struct {
unsigned char:4; /* Bits 0-3 */ unsigned char:4; /* Bits 0-3 */
bool SCSIBusReset:1; /* Bit 4 */ bool bus_reset:1; /* Bit 4 */
bool InterruptReset:1; /* Bit 5 */ bool int_reset:1; /* Bit 5 */
bool SoftReset:1; /* Bit 6 */ bool soft_reset:1; /* Bit 6 */
bool HardReset:1; /* Bit 7 */ bool hard_reset:1; /* Bit 7 */
} cr; } cr;
}; };
...@@ -310,17 +299,17 @@ union BusLogic_ControlRegister { ...@@ -310,17 +299,17 @@ union BusLogic_ControlRegister {
Define the structure of the read-only Status Register. Define the structure of the read-only Status Register.
*/ */
union BusLogic_StatusRegister { union blogic_stat_reg {
unsigned char All; unsigned char all;
struct { struct {
bool CommandInvalid:1; /* Bit 0 */ bool cmd_invalid:1; /* Bit 0 */
bool Reserved:1; /* Bit 1 */ bool rsvd:1; /* Bit 1 */
bool DataInRegisterReady:1; /* Bit 2 */ bool datain_ready:1; /* Bit 2 */
bool CommandParameterRegisterBusy:1; /* Bit 3 */ bool cmd_param_busy:1; /* Bit 3 */
bool HostAdapterReady:1; /* Bit 4 */ bool adapter_ready:1; /* Bit 4 */
bool InitializationRequired:1; /* Bit 5 */ bool init_reqd:1; /* Bit 5 */
bool DiagnosticFailure:1; /* Bit 6 */ bool diag_failed:1; /* Bit 6 */
bool DiagnosticActive:1; /* Bit 7 */ bool diag_active:1; /* Bit 7 */
} sr; } sr;
}; };
...@@ -328,15 +317,15 @@ union BusLogic_StatusRegister { ...@@ -328,15 +317,15 @@ union BusLogic_StatusRegister {
Define the structure of the read-only Interrupt Register. Define the structure of the read-only Interrupt Register.
*/ */
union BusLogic_InterruptRegister { union blogic_int_reg {
unsigned char All; unsigned char all;
struct { struct {
bool IncomingMailboxLoaded:1; /* Bit 0 */ bool mailin_loaded:1; /* Bit 0 */
bool OutgoingMailboxAvailable:1;/* Bit 1 */ bool mailout_avail:1; /* Bit 1 */
bool CommandComplete:1; /* Bit 2 */ bool cmd_complete:1; /* Bit 2 */
bool ExternalBusReset:1; /* Bit 3 */ bool ext_busreset:1; /* Bit 3 */
unsigned char Reserved:3; /* Bits 4-6 */ unsigned char rsvd:3; /* Bits 4-6 */
bool InterruptValid:1; /* Bit 7 */ bool int_valid:1; /* Bit 7 */
} ir; } ir;
}; };
...@@ -344,13 +333,13 @@ union BusLogic_InterruptRegister { ...@@ -344,13 +333,13 @@ union BusLogic_InterruptRegister {
Define the structure of the read-only Geometry Register. Define the structure of the read-only Geometry Register.
*/ */
union BusLogic_GeometryRegister { union blogic_geo_reg {
unsigned char All; unsigned char all;
struct { struct {
enum BusLogic_BIOS_DiskGeometryTranslation Drive0Geometry:2; /* Bits 0-1 */ enum blogic_bios_diskgeometry d0_geo:2; /* Bits 0-1 */
enum BusLogic_BIOS_DiskGeometryTranslation Drive1Geometry:2; /* Bits 2-3 */ enum blogic_bios_diskgeometry d1_geo:2; /* Bits 2-3 */
unsigned char:3; /* Bits 4-6 */ unsigned char:3; /* Bits 4-6 */
bool ExtendedTranslationEnabled:1; /* Bit 7 */ bool ext_trans_enable:1; /* Bit 7 */
} gr; } gr;
}; };
...@@ -358,82 +347,82 @@ union BusLogic_GeometryRegister { ...@@ -358,82 +347,82 @@ union BusLogic_GeometryRegister {
Define the BusLogic SCSI Host Adapter Command Register Operation Codes. Define the BusLogic SCSI Host Adapter Command Register Operation Codes.
*/ */
enum BusLogic_OperationCode { enum blogic_opcode {
BusLogic_TestCommandCompleteInterrupt = 0x00, BLOGIC_TEST_CMP_COMPLETE = 0x00,
BusLogic_InitializeMailbox = 0x01, BLOGIC_INIT_MBOX = 0x01,
BusLogic_ExecuteMailboxCommand = 0x02, BLOGIC_EXEC_MBOX_CMD = 0x02,
BusLogic_ExecuteBIOSCommand = 0x03, BLOGIC_EXEC_BIOS_CMD = 0x03,
BusLogic_InquireBoardID = 0x04, BLOGIC_GET_BOARD_ID = 0x04,
BusLogic_EnableOutgoingMailboxAvailableInt = 0x05, BLOGIC_ENABLE_OUTBOX_AVAIL_INT = 0x05,
BusLogic_SetSCSISelectionTimeout = 0x06, BLOGIC_SET_SELECT_TIMEOUT = 0x06,
BusLogic_SetPreemptTimeOnBus = 0x07, BLOGIC_SET_PREEMPT_TIME = 0x07,
BusLogic_SetTimeOffBus = 0x08, BLOGIC_SET_TIMEOFF_BUS = 0x08,
BusLogic_SetBusTransferRate = 0x09, BLOGIC_SET_TXRATE = 0x09,
BusLogic_InquireInstalledDevicesID0to7 = 0x0A, BLOGIC_INQ_DEV0TO7 = 0x0A,
BusLogic_InquireConfiguration = 0x0B, BLOGIC_INQ_CONFIG = 0x0B,
BusLogic_EnableTargetMode = 0x0C, BLOGIC_TGT_MODE = 0x0C,
BusLogic_InquireSetupInformation = 0x0D, BLOGIC_INQ_SETUPINFO = 0x0D,
BusLogic_WriteAdapterLocalRAM = 0x1A, BLOGIC_WRITE_LOCALRAM = 0x1A,
BusLogic_ReadAdapterLocalRAM = 0x1B, BLOGIC_READ_LOCALRAM = 0x1B,
BusLogic_WriteBusMasterChipFIFO = 0x1C, BLOGIC_WRITE_BUSMASTER_FIFO = 0x1C,
BusLogic_ReadBusMasterChipFIFO = 0x1D, BLOGIC_READ_BUSMASTER_FIFO = 0x1D,
BusLogic_EchoCommandData = 0x1F, BLOGIC_ECHO_CMDDATA = 0x1F,
BusLogic_HostAdapterDiagnostic = 0x20, BLOGIC_ADAPTER_DIAG = 0x20,
BusLogic_SetAdapterOptions = 0x21, BLOGIC_SET_OPTIONS = 0x21,
BusLogic_InquireInstalledDevicesID8to15 = 0x23, BLOGIC_INQ_DEV8TO15 = 0x23,
BusLogic_InquireTargetDevices = 0x24, BLOGIC_INQ_DEV = 0x24,
BusLogic_DisableHostAdapterInterrupt = 0x25, BLOGIC_DISABLE_INT = 0x25,
BusLogic_InitializeExtendedMailbox = 0x81, BLOGIC_INIT_EXT_MBOX = 0x81,
BusLogic_ExecuteSCSICommand = 0x83, BLOGIC_EXEC_SCS_CMD = 0x83,
BusLogic_InquireFirmwareVersion3rdDigit = 0x84, BLOGIC_INQ_FWVER_D3 = 0x84,
BusLogic_InquireFirmwareVersionLetter = 0x85, BLOGIC_INQ_FWVER_LETTER = 0x85,
BusLogic_InquirePCIHostAdapterInformation = 0x86, BLOGIC_INQ_PCI_INFO = 0x86,
BusLogic_InquireHostAdapterModelNumber = 0x8B, BLOGIC_INQ_MODELNO = 0x8B,
BusLogic_InquireSynchronousPeriod = 0x8C, BLOGIC_INQ_SYNC_PERIOD = 0x8C,
BusLogic_InquireExtendedSetupInformation = 0x8D, BLOGIC_INQ_EXTSETUP = 0x8D,
BusLogic_EnableStrictRoundRobinMode = 0x8F, BLOGIC_STRICT_RR = 0x8F,
BusLogic_StoreHostAdapterLocalRAM = 0x90, BLOGIC_STORE_LOCALRAM = 0x90,
BusLogic_FetchHostAdapterLocalRAM = 0x91, BLOGIC_FETCH_LOCALRAM = 0x91,
BusLogic_StoreLocalDataInEEPROM = 0x92, BLOGIC_STORE_TO_EEPROM = 0x92,
BusLogic_UploadAutoSCSICode = 0x94, BLOGIC_LOAD_AUTOSCSICODE = 0x94,
BusLogic_ModifyIOAddress = 0x95, BLOGIC_MOD_IOADDR = 0x95,
BusLogic_SetCCBFormat = 0x96, BLOGIC_SETCCB_FMT = 0x96,
BusLogic_WriteInquiryBuffer = 0x9A, BLOGIC_WRITE_INQBUF = 0x9A,
BusLogic_ReadInquiryBuffer = 0x9B, BLOGIC_READ_INQBUF = 0x9B,
BusLogic_FlashROMUploadDownload = 0xA7, BLOGIC_FLASH_LOAD = 0xA7,
BusLogic_ReadSCAMData = 0xA8, BLOGIC_READ_SCAMDATA = 0xA8,
BusLogic_WriteSCAMData = 0xA9 BLOGIC_WRITE_SCAMDATA = 0xA9
}; };
/* /*
Define the Inquire Board ID reply structure. Define the Inquire Board ID reply structure.
*/ */
struct BusLogic_BoardID { struct blogic_board_id {
unsigned char BoardType; /* Byte 0 */ unsigned char type; /* Byte 0 */
unsigned char CustomFeatures; /* Byte 1 */ unsigned char custom_features; /* Byte 1 */
unsigned char FirmwareVersion1stDigit; /* Byte 2 */ unsigned char fw_ver_digit1; /* Byte 2 */
unsigned char FirmwareVersion2ndDigit; /* Byte 3 */ unsigned char fw_ver_digit2; /* Byte 3 */
}; };
/* /*
Define the Inquire Configuration reply structure. Define the Inquire Configuration reply structure.
*/ */
struct BusLogic_Configuration { struct blogic_config {
unsigned char:5; /* Byte 0 Bits 0-4 */ unsigned char:5; /* Byte 0 Bits 0-4 */
bool DMA_Channel5:1; /* Byte 0 Bit 5 */ bool dma_ch5:1; /* Byte 0 Bit 5 */
bool DMA_Channel6:1; /* Byte 0 Bit 6 */ bool dma_ch6:1; /* Byte 0 Bit 6 */
bool DMA_Channel7:1; /* Byte 0 Bit 7 */ bool dma_ch7:1; /* Byte 0 Bit 7 */
bool IRQ_Channel9:1; /* Byte 1 Bit 0 */ bool irq_ch9:1; /* Byte 1 Bit 0 */
bool IRQ_Channel10:1; /* Byte 1 Bit 1 */ bool irq_ch10:1; /* Byte 1 Bit 1 */
bool IRQ_Channel11:1; /* Byte 1 Bit 2 */ bool irq_ch11:1; /* Byte 1 Bit 2 */
bool IRQ_Channel12:1; /* Byte 1 Bit 3 */ bool irq_ch12:1; /* Byte 1 Bit 3 */
unsigned char:1; /* Byte 1 Bit 4 */ unsigned char:1; /* Byte 1 Bit 4 */
bool IRQ_Channel14:1; /* Byte 1 Bit 5 */ bool irq_ch14:1; /* Byte 1 Bit 5 */
bool IRQ_Channel15:1; /* Byte 1 Bit 6 */ bool irq_ch15:1; /* Byte 1 Bit 6 */
unsigned char:1; /* Byte 1 Bit 7 */ unsigned char:1; /* Byte 1 Bit 7 */
unsigned char HostAdapterID:4; /* Byte 2 Bits 0-3 */ unsigned char id:4; /* Byte 2 Bits 0-3 */
unsigned char:4; /* Byte 2 Bits 4-7 */ unsigned char:4; /* Byte 2 Bits 4-7 */
}; };
...@@ -441,42 +430,42 @@ struct BusLogic_Configuration { ...@@ -441,42 +430,42 @@ struct BusLogic_Configuration {
Define the Inquire Setup Information reply structure. Define the Inquire Setup Information reply structure.
*/ */
struct BusLogic_SynchronousValue { struct blogic_syncval {
unsigned char Offset:4; /* Bits 0-3 */ unsigned char offset:4; /* Bits 0-3 */
unsigned char TransferPeriod:3; /* Bits 4-6 */ unsigned char tx_period:3; /* Bits 4-6 */
bool Synchronous:1; /* Bit 7 */ bool sync:1; /* Bit 7 */
}; };
struct BusLogic_SetupInformation { struct blogic_setup_info {
bool SynchronousInitiationEnabled:1; /* Byte 0 Bit 0 */ bool sync:1; /* Byte 0 Bit 0 */
bool ParityCheckingEnabled:1; /* Byte 0 Bit 1 */ bool parity:1; /* Byte 0 Bit 1 */
unsigned char:6; /* Byte 0 Bits 2-7 */ unsigned char:6; /* Byte 0 Bits 2-7 */
unsigned char BusTransferRate; /* Byte 1 */ unsigned char tx_rate; /* Byte 1 */
unsigned char PreemptTimeOnBus; /* Byte 2 */ unsigned char preempt_time; /* Byte 2 */
unsigned char TimeOffBus; /* Byte 3 */ unsigned char timeoff_bus; /* Byte 3 */
unsigned char MailboxCount; /* Byte 4 */ unsigned char mbox_count; /* Byte 4 */
unsigned char MailboxAddress[3]; /* Bytes 5-7 */ unsigned char mbox_addr[3]; /* Bytes 5-7 */
struct BusLogic_SynchronousValue SynchronousValuesID0to7[8]; /* Bytes 8-15 */ struct blogic_syncval sync0to7[8]; /* Bytes 8-15 */
unsigned char DisconnectPermittedID0to7; /* Byte 16 */ unsigned char disconnect_ok0to7; /* Byte 16 */
unsigned char Signature; /* Byte 17 */ unsigned char sig; /* Byte 17 */
unsigned char CharacterD; /* Byte 18 */ unsigned char char_d; /* Byte 18 */
unsigned char HostBusType; /* Byte 19 */ unsigned char bus_type; /* Byte 19 */
unsigned char WideTransfersPermittedID0to7; /* Byte 20 */ unsigned char wide_tx_ok0to7; /* Byte 20 */
unsigned char WideTransfersActiveID0to7; /* Byte 21 */ unsigned char wide_tx_active0to7; /* Byte 21 */
struct BusLogic_SynchronousValue SynchronousValuesID8to15[8]; /* Bytes 22-29 */ struct blogic_syncval sync8to15[8]; /* Bytes 22-29 */
unsigned char DisconnectPermittedID8to15; /* Byte 30 */ unsigned char disconnect_ok8to15; /* Byte 30 */
unsigned char:8; /* Byte 31 */ unsigned char:8; /* Byte 31 */
unsigned char WideTransfersPermittedID8to15; /* Byte 32 */ unsigned char wide_tx_ok8to15; /* Byte 32 */
unsigned char WideTransfersActiveID8to15; /* Byte 33 */ unsigned char wide_tx_active8to15; /* Byte 33 */
}; };
/* /*
Define the Initialize Extended Mailbox request structure. Define the Initialize Extended Mailbox request structure.
*/ */
struct BusLogic_ExtendedMailboxRequest { struct blogic_extmbox_req {
unsigned char MailboxCount; /* Byte 0 */ unsigned char mbox_count; /* Byte 0 */
u32 BaseMailboxAddress; /* Bytes 1-4 */ u32 base_mbox_addr; /* Bytes 1-4 */
} PACKED; } PACKED;
...@@ -486,63 +475,63 @@ struct BusLogic_ExtendedMailboxRequest { ...@@ -486,63 +475,63 @@ struct BusLogic_ExtendedMailboxRequest {
the Modify I/O Address command. the Modify I/O Address command.
*/ */
enum BusLogic_ISACompatibleIOPort { enum blogic_isa_ioport {
BusLogic_IO_330 = 0, BLOGIC_IO_330 = 0,
BusLogic_IO_334 = 1, BLOGIC_IO_334 = 1,
BusLogic_IO_230 = 2, BLOGIC_IO_230 = 2,
BusLogic_IO_234 = 3, BLOGIC_IO_234 = 3,
BusLogic_IO_130 = 4, BLOGIC_IO_130 = 4,
BusLogic_IO_134 = 5, BLOGIC_IO_134 = 5,
BusLogic_IO_Disable = 6, BLOGIC_IO_DISABLE = 6,
BusLogic_IO_Disable2 = 7 BLOGIC_IO_DISABLE2 = 7
} PACKED; } PACKED;
struct BusLogic_PCIHostAdapterInformation { struct blogic_adapter_info {
enum BusLogic_ISACompatibleIOPort ISACompatibleIOPort; /* Byte 0 */ enum blogic_isa_ioport isa_port; /* Byte 0 */
unsigned char PCIAssignedIRQChannel; /* Byte 1 */ unsigned char irq_ch; /* Byte 1 */
bool LowByteTerminated:1; /* Byte 2 Bit 0 */ bool low_term:1; /* Byte 2 Bit 0 */
bool HighByteTerminated:1; /* Byte 2 Bit 1 */ bool high_term:1; /* Byte 2 Bit 1 */
unsigned char:2; /* Byte 2 Bits 2-3 */ unsigned char:2; /* Byte 2 Bits 2-3 */
bool JP1:1; /* Byte 2 Bit 4 */ bool JP1:1; /* Byte 2 Bit 4 */
bool JP2:1; /* Byte 2 Bit 5 */ bool JP2:1; /* Byte 2 Bit 5 */
bool JP3:1; /* Byte 2 Bit 6 */ bool JP3:1; /* Byte 2 Bit 6 */
bool GenericInfoValid:1;/* Byte 2 Bit 7 */ bool genericinfo_valid:1; /* Byte 2 Bit 7 */
unsigned char:8; /* Byte 3 */ unsigned char:8; /* Byte 3 */
}; };
/* /*
Define the Inquire Extended Setup Information reply structure. Define the Inquire Extended Setup Information reply structure.
*/ */
struct BusLogic_ExtendedSetupInformation { struct blogic_ext_setup {
unsigned char BusType; /* Byte 0 */ unsigned char bus_type; /* Byte 0 */
unsigned char BIOS_Address; /* Byte 1 */ unsigned char bios_addr; /* Byte 1 */
unsigned short ScatterGatherLimit; /* Bytes 2-3 */ unsigned short sg_limit; /* Bytes 2-3 */
unsigned char MailboxCount; /* Byte 4 */ unsigned char mbox_count; /* Byte 4 */
u32 BaseMailboxAddress; /* Bytes 5-8 */ u32 base_mbox_addr; /* Bytes 5-8 */
struct { struct {
unsigned char:2; /* Byte 9 Bits 0-1 */ unsigned char:2; /* Byte 9 Bits 0-1 */
bool FastOnEISA:1; /* Byte 9 Bit 2 */ bool fast_on_eisa:1; /* Byte 9 Bit 2 */
unsigned char:3; /* Byte 9 Bits 3-5 */ unsigned char:3; /* Byte 9 Bits 3-5 */
bool LevelSensitiveInterrupt:1; /* Byte 9 Bit 6 */ bool level_int:1; /* Byte 9 Bit 6 */
unsigned char:1; /* Byte 9 Bit 7 */ unsigned char:1; /* Byte 9 Bit 7 */
} Misc; } misc;
unsigned char FirmwareRevision[3]; /* Bytes 10-12 */ unsigned char fw_rev[3]; /* Bytes 10-12 */
bool HostWideSCSI:1; /* Byte 13 Bit 0 */ bool wide:1; /* Byte 13 Bit 0 */
bool HostDifferentialSCSI:1; /* Byte 13 Bit 1 */ bool differential:1; /* Byte 13 Bit 1 */
bool HostSupportsSCAM:1; /* Byte 13 Bit 2 */ bool scam:1; /* Byte 13 Bit 2 */
bool HostUltraSCSI:1; /* Byte 13 Bit 3 */ bool ultra:1; /* Byte 13 Bit 3 */
bool HostSmartTermination:1; /* Byte 13 Bit 4 */ bool smart_term:1; /* Byte 13 Bit 4 */
unsigned char:3; /* Byte 13 Bits 5-7 */ unsigned char:3; /* Byte 13 Bits 5-7 */
} PACKED; } PACKED;
/* /*
Define the Enable Strict Round Robin Mode request type. Define the Enable Strict Round Robin Mode request type.
*/ */
enum BusLogic_RoundRobinModeRequest { enum blogic_rr_req {
BusLogic_AggressiveRoundRobinMode = 0, BLOGIC_AGGRESSIVE_RR = 0,
BusLogic_StrictRoundRobinMode = 1 BLOGIC_STRICT_RR_MODE = 1
} PACKED; } PACKED;
...@@ -550,95 +539,95 @@ enum BusLogic_RoundRobinModeRequest { ...@@ -550,95 +539,95 @@ enum BusLogic_RoundRobinModeRequest {
Define the Fetch Host Adapter Local RAM request type. Define the Fetch Host Adapter Local RAM request type.
*/ */
#define BusLogic_BIOS_BaseOffset 0 #define BLOGIC_BIOS_BASE 0
#define BusLogic_AutoSCSI_BaseOffset 64 #define BLOGIC_AUTOSCSI_BASE 64
struct BusLogic_FetchHostAdapterLocalRAMRequest { struct blogic_fetch_localram {
unsigned char ByteOffset; /* Byte 0 */ unsigned char offset; /* Byte 0 */
unsigned char ByteCount; /* Byte 1 */ unsigned char count; /* Byte 1 */
}; };
/* /*
Define the Host Adapter Local RAM AutoSCSI structure. Define the Host Adapter Local RAM AutoSCSI structure.
*/ */
struct BusLogic_AutoSCSIData { struct blogic_autoscsi {
unsigned char InternalFactorySignature[2]; /* Bytes 0-1 */ unsigned char factory_sig[2]; /* Bytes 0-1 */
unsigned char InformationByteCount; /* Byte 2 */ unsigned char info_bytes; /* Byte 2 */
unsigned char HostAdapterType[6]; /* Bytes 3-8 */ unsigned char adapter_type[6]; /* Bytes 3-8 */
unsigned char:8; /* Byte 9 */ unsigned char:8; /* Byte 9 */
bool FloppyEnabled:1; /* Byte 10 Bit 0 */ bool floppy:1; /* Byte 10 Bit 0 */
bool FloppySecondary:1; /* Byte 10 Bit 1 */ bool floppy_sec:1; /* Byte 10 Bit 1 */
bool LevelSensitiveInterrupt:1; /* Byte 10 Bit 2 */ bool level_int:1; /* Byte 10 Bit 2 */
unsigned char:2; /* Byte 10 Bits 3-4 */ unsigned char:2; /* Byte 10 Bits 3-4 */
unsigned char SystemRAMAreaForBIOS:3; /* Byte 10 Bits 5-7 */ unsigned char systemram_bios:3; /* Byte 10 Bits 5-7 */
unsigned char DMA_Channel:7; /* Byte 11 Bits 0-6 */ unsigned char dma_ch:7; /* Byte 11 Bits 0-6 */
bool DMA_AutoConfiguration:1; /* Byte 11 Bit 7 */ bool dma_autoconf:1; /* Byte 11 Bit 7 */
unsigned char IRQ_Channel:7; /* Byte 12 Bits 0-6 */ unsigned char irq_ch:7; /* Byte 12 Bits 0-6 */
bool IRQ_AutoConfiguration:1; /* Byte 12 Bit 7 */ bool irq_autoconf:1; /* Byte 12 Bit 7 */
unsigned char DMA_TransferRate; /* Byte 13 */ unsigned char dma_tx_rate; /* Byte 13 */
unsigned char SCSI_ID; /* Byte 14 */ unsigned char scsi_id; /* Byte 14 */
bool LowByteTerminated:1; /* Byte 15 Bit 0 */ bool low_term:1; /* Byte 15 Bit 0 */
bool ParityCheckingEnabled:1; /* Byte 15 Bit 1 */ bool parity:1; /* Byte 15 Bit 1 */
bool HighByteTerminated:1; /* Byte 15 Bit 2 */ bool high_term:1; /* Byte 15 Bit 2 */
bool NoisyCablingEnvironment:1; /* Byte 15 Bit 3 */ bool noisy_cable:1; /* Byte 15 Bit 3 */
bool FastSynchronousNegotiation:1; /* Byte 15 Bit 4 */ bool fast_sync_neg:1; /* Byte 15 Bit 4 */
bool BusResetEnabled:1; /* Byte 15 Bit 5 */ bool reset_enabled:1; /* Byte 15 Bit 5 */
bool:1; /* Byte 15 Bit 6 */ bool:1; /* Byte 15 Bit 6 */
bool ActiveNegationEnabled:1; /* Byte 15 Bit 7 */ bool active_negation:1; /* Byte 15 Bit 7 */
unsigned char BusOnDelay; /* Byte 16 */ unsigned char bus_on_delay; /* Byte 16 */
unsigned char BusOffDelay; /* Byte 17 */ unsigned char bus_off_delay; /* Byte 17 */
bool HostAdapterBIOSEnabled:1; /* Byte 18 Bit 0 */ bool bios_enabled:1; /* Byte 18 Bit 0 */
bool BIOSRedirectionOfINT19Enabled:1; /* Byte 18 Bit 1 */ bool int19_redir_enabled:1; /* Byte 18 Bit 1 */
bool ExtendedTranslationEnabled:1; /* Byte 18 Bit 2 */ bool ext_trans_enable:1; /* Byte 18 Bit 2 */
bool MapRemovableAsFixedEnabled:1; /* Byte 18 Bit 3 */ bool removable_as_fixed:1; /* Byte 18 Bit 3 */
bool:1; /* Byte 18 Bit 4 */ bool:1; /* Byte 18 Bit 4 */
bool BIOSSupportsMoreThan2DrivesEnabled:1; /* Byte 18 Bit 5 */ bool morethan2_drives:1; /* Byte 18 Bit 5 */
bool BIOSInterruptModeEnabled:1; /* Byte 18 Bit 6 */ bool bios_int:1; /* Byte 18 Bit 6 */
bool FlopticalSupportEnabled:1; /* Byte 19 Bit 7 */ bool floptical:1; /* Byte 19 Bit 7 */
unsigned short DeviceEnabled; /* Bytes 19-20 */ unsigned short dev_enabled; /* Bytes 19-20 */
unsigned short WidePermitted; /* Bytes 21-22 */ unsigned short wide_ok; /* Bytes 21-22 */
unsigned short FastPermitted; /* Bytes 23-24 */ unsigned short fast_ok; /* Bytes 23-24 */
unsigned short SynchronousPermitted; /* Bytes 25-26 */ unsigned short sync_ok; /* Bytes 25-26 */
unsigned short DisconnectPermitted; /* Bytes 27-28 */ unsigned short discon_ok; /* Bytes 27-28 */
unsigned short SendStartUnitCommand; /* Bytes 29-30 */ unsigned short send_start_unit; /* Bytes 29-30 */
unsigned short IgnoreInBIOSScan; /* Bytes 31-32 */ unsigned short ignore_bios_scan; /* Bytes 31-32 */
unsigned char PCIInterruptPin:2; /* Byte 33 Bits 0-1 */ unsigned char pci_int_pin:2; /* Byte 33 Bits 0-1 */
unsigned char HostAdapterIOPortAddress:2; /* Byte 33 Bits 2-3 */ unsigned char adapter_ioport:2; /* Byte 33 Bits 2-3 */
bool StrictRoundRobinModeEnabled:1; /* Byte 33 Bit 4 */ bool strict_rr_enabled:1; /* Byte 33 Bit 4 */
bool VESABusSpeedGreaterThan33MHz:1; /* Byte 33 Bit 5 */ bool vesabus_33mhzplus:1; /* Byte 33 Bit 5 */
bool VESABurstWriteEnabled:1; /* Byte 33 Bit 6 */ bool vesa_burst_write:1; /* Byte 33 Bit 6 */
bool VESABurstReadEnabled:1; /* Byte 33 Bit 7 */ bool vesa_burst_read:1; /* Byte 33 Bit 7 */
unsigned short UltraPermitted; /* Bytes 34-35 */ unsigned short ultra_ok; /* Bytes 34-35 */
unsigned int:32; /* Bytes 36-39 */ unsigned int:32; /* Bytes 36-39 */
unsigned char:8; /* Byte 40 */ unsigned char:8; /* Byte 40 */
unsigned char AutoSCSIMaximumLUN; /* Byte 41 */ unsigned char autoscsi_maxlun; /* Byte 41 */
bool:1; /* Byte 42 Bit 0 */ bool:1; /* Byte 42 Bit 0 */
bool SCAM_Dominant:1; /* Byte 42 Bit 1 */ bool scam_dominant:1; /* Byte 42 Bit 1 */
bool SCAM_Enabled:1; /* Byte 42 Bit 2 */ bool scam_enabled:1; /* Byte 42 Bit 2 */
bool SCAM_Level2:1; /* Byte 42 Bit 3 */ bool scam_lev2:1; /* Byte 42 Bit 3 */
unsigned char:4; /* Byte 42 Bits 4-7 */ unsigned char:4; /* Byte 42 Bits 4-7 */
bool INT13ExtensionEnabled:1; /* Byte 43 Bit 0 */ bool int13_exten:1; /* Byte 43 Bit 0 */
bool:1; /* Byte 43 Bit 1 */ bool:1; /* Byte 43 Bit 1 */
bool CDROMBootEnabled:1; /* Byte 43 Bit 2 */ bool cd_boot:1; /* Byte 43 Bit 2 */
unsigned char:5; /* Byte 43 Bits 3-7 */ unsigned char:5; /* Byte 43 Bits 3-7 */
unsigned char BootTargetID:4; /* Byte 44 Bits 0-3 */ unsigned char boot_id:4; /* Byte 44 Bits 0-3 */
unsigned char BootChannel:4; /* Byte 44 Bits 4-7 */ unsigned char boot_ch:4; /* Byte 44 Bits 4-7 */
unsigned char ForceBusDeviceScanningOrder:1; /* Byte 45 Bit 0 */ unsigned char force_scan_order:1; /* Byte 45 Bit 0 */
unsigned char:7; /* Byte 45 Bits 1-7 */ unsigned char:7; /* Byte 45 Bits 1-7 */
unsigned short NonTaggedToAlternateLUNPermitted; /* Bytes 46-47 */ unsigned short nontagged_to_alt_ok; /* Bytes 46-47 */
unsigned short RenegotiateSyncAfterCheckCondition; /* Bytes 48-49 */ unsigned short reneg_sync_on_check; /* Bytes 48-49 */
unsigned char Reserved[10]; /* Bytes 50-59 */ unsigned char rsvd[10]; /* Bytes 50-59 */
unsigned char ManufacturingDiagnostic[2]; /* Bytes 60-61 */ unsigned char manuf_diag[2]; /* Bytes 60-61 */
unsigned short Checksum; /* Bytes 62-63 */ unsigned short cksum; /* Bytes 62-63 */
} PACKED; } PACKED;
/* /*
Define the Host Adapter Local RAM Auto SCSI Byte 45 structure. Define the Host Adapter Local RAM Auto SCSI Byte 45 structure.
*/ */
struct BusLogic_AutoSCSIByte45 { struct blogic_autoscsi_byte45 {
unsigned char ForceBusDeviceScanningOrder:1; /* Bit 0 */ unsigned char force_scan_order:1; /* Bit 0 */
unsigned char:7; /* Bits 1-7 */ unsigned char:7; /* Bits 1-7 */
}; };
...@@ -646,13 +635,13 @@ struct BusLogic_AutoSCSIByte45 { ...@@ -646,13 +635,13 @@ struct BusLogic_AutoSCSIByte45 {
Define the Host Adapter Local RAM BIOS Drive Map Byte structure. Define the Host Adapter Local RAM BIOS Drive Map Byte structure.
*/ */
#define BusLogic_BIOS_DriveMapOffset 17 #define BLOGIC_BIOS_DRVMAP 17
struct BusLogic_BIOSDriveMapByte { struct blogic_bios_drvmap {
unsigned char TargetIDBit3:1; /* Bit 0 */ unsigned char tgt_idbit3:1; /* Bit 0 */
unsigned char:2; /* Bits 1-2 */ unsigned char:2; /* Bits 1-2 */
enum BusLogic_BIOS_DiskGeometryTranslation DiskGeometry:2; /* Bits 3-4 */ enum blogic_bios_diskgeometry diskgeom:2; /* Bits 3-4 */
unsigned char TargetID:3; /* Bits 5-7 */ unsigned char tgt_id:3; /* Bits 5-7 */
}; };
/* /*
...@@ -660,19 +649,19 @@ struct BusLogic_BIOSDriveMapByte { ...@@ -660,19 +649,19 @@ struct BusLogic_BIOSDriveMapByte {
necessary to support more than 8 Logical Units per Target Device. necessary to support more than 8 Logical Units per Target Device.
*/ */
enum BusLogic_SetCCBFormatRequest { enum blogic_setccb_fmt {
BusLogic_LegacyLUNFormatCCB = 0, BLOGIC_LEGACY_LUN_CCB = 0,
BusLogic_ExtendedLUNFormatCCB = 1 BLOGIC_EXT_LUN_CCB = 1
} PACKED; } PACKED;
/* /*
Define the Outgoing Mailbox Action Codes. Define the Outgoing Mailbox Action Codes.
*/ */
enum BusLogic_ActionCode { enum blogic_action {
BusLogic_OutgoingMailboxFree = 0x00, BLOGIC_OUTBOX_FREE = 0x00,
BusLogic_MailboxStartCommand = 0x01, BLOGIC_MBOX_START = 0x01,
BusLogic_MailboxAbortCommand = 0x02 BLOGIC_MBOX_ABORT = 0x02
} PACKED; } PACKED;
...@@ -682,26 +671,26 @@ enum BusLogic_ActionCode { ...@@ -682,26 +671,26 @@ enum BusLogic_ActionCode {
completion codes are stored in the CCB; it only uses codes 1, 2, 4, and 5. completion codes are stored in the CCB; it only uses codes 1, 2, 4, and 5.
*/ */
enum BusLogic_CompletionCode { enum blogic_cmplt_code {
BusLogic_IncomingMailboxFree = 0x00, BLOGIC_INBOX_FREE = 0x00,
BusLogic_CommandCompletedWithoutError = 0x01, BLOGIC_CMD_COMPLETE_GOOD = 0x01,
BusLogic_CommandAbortedAtHostRequest = 0x02, BLOGIC_CMD_ABORT_BY_HOST = 0x02,
BusLogic_AbortedCommandNotFound = 0x03, BLOGIC_CMD_NOTFOUND = 0x03,
BusLogic_CommandCompletedWithError = 0x04, BLOGIC_CMD_COMPLETE_ERROR = 0x04,
BusLogic_InvalidCCB = 0x05 BLOGIC_INVALID_CCB = 0x05
} PACKED; } PACKED;
/* /*
Define the Command Control Block (CCB) Opcodes. Define the Command Control Block (CCB) Opcodes.
*/ */
enum BusLogic_CCB_Opcode { enum blogic_ccb_opcode {
BusLogic_InitiatorCCB = 0x00, BLOGIC_INITIATOR_CCB = 0x00,
BusLogic_TargetCCB = 0x01, BLOGIC_TGT_CCB = 0x01,
BusLogic_InitiatorCCB_ScatterGather = 0x02, BLOGIC_INITIATOR_CCB_SG = 0x02,
BusLogic_InitiatorCCB_ResidualDataLength = 0x03, BLOGIC_INITIATOR_CCBB_RESIDUAL = 0x03,
BusLogic_InitiatorCCB_ScatterGatherResidual = 0x04, BLOGIC_INITIATOR_CCB_SG_RESIDUAL = 0x04,
BusLogic_BusDeviceReset = 0x81 BLOGIC_BDR = 0x81
} PACKED; } PACKED;
...@@ -709,11 +698,11 @@ enum BusLogic_CCB_Opcode { ...@@ -709,11 +698,11 @@ enum BusLogic_CCB_Opcode {
Define the CCB Data Direction Codes. Define the CCB Data Direction Codes.
*/ */
enum BusLogic_DataDirection { enum blogic_datadir {
BusLogic_UncheckedDataTransfer = 0, BLOGIC_UNCHECKED_TX = 0,
BusLogic_DataInLengthChecked = 1, BLOGIC_DATAIN_CHECKED = 1,
BusLogic_DataOutLengthChecked = 2, BLOGIC_DATAOUT_CHECKED = 2,
BusLogic_NoDataTransfer = 3 BLOGIC_NOTX = 3
}; };
...@@ -722,32 +711,32 @@ enum BusLogic_DataDirection { ...@@ -722,32 +711,32 @@ enum BusLogic_DataDirection {
return status code 0x0C; it uses 0x12 for both overruns and underruns. return status code 0x0C; it uses 0x12 for both overruns and underruns.
*/ */
enum BusLogic_HostAdapterStatus { enum blogic_adapter_status {
BusLogic_CommandCompletedNormally = 0x00, BLOGIC_CMD_CMPLT_NORMAL = 0x00,
BusLogic_LinkedCommandCompleted = 0x0A, BLOGIC_LINK_CMD_CMPLT = 0x0A,
BusLogic_LinkedCommandCompletedWithFlag = 0x0B, BLOGIC_LINK_CMD_CMPLT_FLAG = 0x0B,
BusLogic_DataUnderRun = 0x0C, BLOGIC_DATA_UNDERRUN = 0x0C,
BusLogic_SCSISelectionTimeout = 0x11, BLOGIC_SELECT_TIMEOUT = 0x11,
BusLogic_DataOverRun = 0x12, BLOGIC_DATA_OVERRUN = 0x12,
BusLogic_UnexpectedBusFree = 0x13, BLOGIC_NOEXPECT_BUSFREE = 0x13,
BusLogic_InvalidBusPhaseRequested = 0x14, BLOGIC_INVALID_BUSPHASE = 0x14,
BusLogic_InvalidOutgoingMailboxActionCode = 0x15, BLOGIC_INVALID_OUTBOX_CODE = 0x15,
BusLogic_InvalidCommandOperationCode = 0x16, BLOGIC_INVALID_CMD_CODE = 0x16,
BusLogic_LinkedCCBhasInvalidLUN = 0x17, BLOGIC_LINKCCB_BADLUN = 0x17,
BusLogic_InvalidCommandParameter = 0x1A, BLOGIC_BAD_CMD_PARAM = 0x1A,
BusLogic_AutoRequestSenseFailed = 0x1B, BLOGIC_AUTOREQSENSE_FAIL = 0x1B,
BusLogic_TaggedQueuingMessageRejected = 0x1C, BLOGIC_TAGQUEUE_REJECT = 0x1C,
BusLogic_UnsupportedMessageReceived = 0x1D, BLOGIC_BAD_MSG_RCVD = 0x1D,
BusLogic_HostAdapterHardwareFailed = 0x20, BLOGIC_HW_FAIL = 0x20,
BusLogic_TargetFailedResponseToATN = 0x21, BLOGIC_NORESPONSE_TO_ATN = 0x21,
BusLogic_HostAdapterAssertedRST = 0x22, BLOGIC_HW_RESET = 0x22,
BusLogic_OtherDeviceAssertedRST = 0x23, BLOGIC_RST_FROM_OTHERDEV = 0x23,
BusLogic_TargetDeviceReconnectedImproperly = 0x24, BLOGIC_BAD_RECONNECT = 0x24,
BusLogic_HostAdapterAssertedBusDeviceReset = 0x25, BLOGIC_HW_BDR = 0x25,
BusLogic_AbortQueueGenerated = 0x26, BLOGIC_ABRT_QUEUE = 0x26,
BusLogic_HostAdapterSoftwareError = 0x27, BLOGIC_ADAPTER_SW_ERROR = 0x27,
BusLogic_HostAdapterHardwareTimeoutError = 0x30, BLOGIC_HW_TIMEOUT = 0x30,
BusLogic_SCSIParityErrorDetected = 0x34 BLOGIC_PARITY_ERR = 0x34
} PACKED; } PACKED;
...@@ -755,30 +744,28 @@ enum BusLogic_HostAdapterStatus { ...@@ -755,30 +744,28 @@ enum BusLogic_HostAdapterStatus {
Define the SCSI Target Device Status Codes. Define the SCSI Target Device Status Codes.
*/ */
enum BusLogic_TargetDeviceStatus { enum blogic_tgt_status {
BusLogic_OperationGood = 0x00, BLOGIC_OP_GOOD = 0x00,
BusLogic_CheckCondition = 0x02, BLOGIC_CHECKCONDITION = 0x02,
BusLogic_DeviceBusy = 0x08 BLOGIC_DEVBUSY = 0x08
} PACKED; } PACKED;
/* /*
Define the Queue Tag Codes. Define the Queue Tag Codes.
*/ */
enum BusLogic_QueueTag { enum blogic_queuetag {
BusLogic_SimpleQueueTag = 0, BLOGIC_SIMPLETAG = 0,
BusLogic_HeadOfQueueTag = 1, BLOGIC_HEADTAG = 1,
BusLogic_OrderedQueueTag = 2, BLOGIC_ORDEREDTAG = 2,
BusLogic_ReservedQT = 3 BLOGIC_RSVDTAG = 3
}; };
/* /*
Define the SCSI Command Descriptor Block (CDB). Define the SCSI Command Descriptor Block (CDB).
*/ */
#define BusLogic_CDB_MaxLength 12 #define BLOGIC_CDB_MAXLEN 12
typedef unsigned char SCSI_CDB_T[BusLogic_CDB_MaxLength];
/* /*
...@@ -786,20 +773,20 @@ typedef unsigned char SCSI_CDB_T[BusLogic_CDB_MaxLength]; ...@@ -786,20 +773,20 @@ typedef unsigned char SCSI_CDB_T[BusLogic_CDB_MaxLength];
Firmware Interface and the FlashPoint SCCB Manager. Firmware Interface and the FlashPoint SCCB Manager.
*/ */
struct BusLogic_ScatterGatherSegment { struct blogic_sg_seg {
u32 SegmentByteCount; /* Bytes 0-3 */ u32 segbytes; /* Bytes 0-3 */
u32 SegmentDataPointer; /* Bytes 4-7 */ u32 segdata; /* Bytes 4-7 */
}; };
/* /*
Define the Driver CCB Status Codes. Define the Driver CCB Status Codes.
*/ */
enum BusLogic_CCB_Status { enum blogic_ccb_status {
BusLogic_CCB_Free = 0, BLOGIC_CCB_FREE = 0,
BusLogic_CCB_Active = 1, BLOGIC_CCB_ACTIVE = 1,
BusLogic_CCB_Completed = 2, BLOGIC_CCB_COMPLETE = 2,
BusLogic_CCB_Reset = 3 BLOGIC_CCB_RESET = 3
} PACKED; } PACKED;
...@@ -822,79 +809,78 @@ enum BusLogic_CCB_Status { ...@@ -822,79 +809,78 @@ enum BusLogic_CCB_Status {
32 Logical Units per Target Device. 32 Logical Units per Target Device.
*/ */
struct BusLogic_CCB { struct blogic_ccb {
/* /*
MultiMaster Firmware and FlashPoint SCCB Manager Common Portion. MultiMaster Firmware and FlashPoint SCCB Manager Common Portion.
*/ */
enum BusLogic_CCB_Opcode Opcode; /* Byte 0 */ enum blogic_ccb_opcode opcode; /* Byte 0 */
unsigned char:3; /* Byte 1 Bits 0-2 */ unsigned char:3; /* Byte 1 Bits 0-2 */
enum BusLogic_DataDirection DataDirection:2; /* Byte 1 Bits 3-4 */ enum blogic_datadir datadir:2; /* Byte 1 Bits 3-4 */
bool TagEnable:1; /* Byte 1 Bit 5 */ bool tag_enable:1; /* Byte 1 Bit 5 */
enum BusLogic_QueueTag QueueTag:2; /* Byte 1 Bits 6-7 */ enum blogic_queuetag queuetag:2; /* Byte 1 Bits 6-7 */
unsigned char CDB_Length; /* Byte 2 */ unsigned char cdblen; /* Byte 2 */
unsigned char SenseDataLength; /* Byte 3 */ unsigned char sense_datalen; /* Byte 3 */
u32 DataLength; /* Bytes 4-7 */ u32 datalen; /* Bytes 4-7 */
u32 DataPointer; /* Bytes 8-11 */ u32 data; /* Bytes 8-11 */
unsigned char:8; /* Byte 12 */ unsigned char:8; /* Byte 12 */
unsigned char:8; /* Byte 13 */ unsigned char:8; /* Byte 13 */
enum BusLogic_HostAdapterStatus HostAdapterStatus; /* Byte 14 */ enum blogic_adapter_status adapter_status; /* Byte 14 */
enum BusLogic_TargetDeviceStatus TargetDeviceStatus; /* Byte 15 */ enum blogic_tgt_status tgt_status; /* Byte 15 */
unsigned char TargetID; /* Byte 16 */ unsigned char tgt_id; /* Byte 16 */
unsigned char LogicalUnit:5; /* Byte 17 Bits 0-4 */ unsigned char lun:5; /* Byte 17 Bits 0-4 */
bool LegacyTagEnable:1; /* Byte 17 Bit 5 */ bool legacytag_enable:1; /* Byte 17 Bit 5 */
enum BusLogic_QueueTag LegacyQueueTag:2; /* Byte 17 Bits 6-7 */ enum blogic_queuetag legacy_tag:2; /* Byte 17 Bits 6-7 */
SCSI_CDB_T CDB; /* Bytes 18-29 */ unsigned char cdb[BLOGIC_CDB_MAXLEN]; /* Bytes 18-29 */
unsigned char:8; /* Byte 30 */ unsigned char:8; /* Byte 30 */
unsigned char:8; /* Byte 31 */ unsigned char:8; /* Byte 31 */
unsigned int:32; /* Bytes 32-35 */ unsigned int:32; /* Bytes 32-35 */
u32 SenseDataPointer; /* Bytes 36-39 */ u32 sensedata; /* Bytes 36-39 */
/* /*
FlashPoint SCCB Manager Defined Portion. FlashPoint SCCB Manager Defined Portion.
*/ */
void (*CallbackFunction) (struct BusLogic_CCB *); /* Bytes 40-43 */ void (*callback) (struct blogic_ccb *); /* Bytes 40-43 */
u32 BaseAddress; /* Bytes 44-47 */ u32 base_addr; /* Bytes 44-47 */
enum BusLogic_CompletionCode CompletionCode; /* Byte 48 */ enum blogic_cmplt_code comp_code; /* Byte 48 */
#ifdef CONFIG_SCSI_FLASHPOINT #ifdef CONFIG_SCSI_FLASHPOINT
unsigned char:8; /* Byte 49 */ unsigned char:8; /* Byte 49 */
unsigned short OS_Flags; /* Bytes 50-51 */ unsigned short os_flags; /* Bytes 50-51 */
unsigned char Private[48]; /* Bytes 52-99 */ unsigned char private[48]; /* Bytes 52-99 */
#endif #endif
/* /*
BusLogic Linux Driver Defined Portion. BusLogic Linux Driver Defined Portion.
*/ */
dma_addr_t AllocationGroupHead; dma_addr_t allocgrp_head;
unsigned int AllocationGroupSize; unsigned int allocgrp_size;
u32 DMA_Handle; u32 dma_handle;
enum BusLogic_CCB_Status Status; enum blogic_ccb_status status;
unsigned long SerialNumber; unsigned long serial;
struct scsi_cmnd *Command; struct scsi_cmnd *command;
struct BusLogic_HostAdapter *HostAdapter; struct blogic_adapter *adapter;
struct BusLogic_CCB *Next; struct blogic_ccb *next;
struct BusLogic_CCB *NextAll; struct blogic_ccb *next_all;
struct BusLogic_ScatterGatherSegment struct blogic_sg_seg sglist[BLOGIC_SG_LIMIT];
ScatterGatherList[BusLogic_ScatterGatherLimit];
}; };
/* /*
Define the 32 Bit Mode Outgoing Mailbox structure. Define the 32 Bit Mode Outgoing Mailbox structure.
*/ */
struct BusLogic_OutgoingMailbox { struct blogic_outbox {
u32 CCB; /* Bytes 0-3 */ u32 ccb; /* Bytes 0-3 */
unsigned int:24; /* Bytes 4-6 */ unsigned int:24; /* Bytes 4-6 */
enum BusLogic_ActionCode ActionCode; /* Byte 7 */ enum blogic_action action; /* Byte 7 */
}; };
/* /*
Define the 32 Bit Mode Incoming Mailbox structure. Define the 32 Bit Mode Incoming Mailbox structure.
*/ */
struct BusLogic_IncomingMailbox { struct blogic_inbox {
u32 CCB; /* Bytes 0-3 */ u32 ccb; /* Bytes 0-3 */
enum BusLogic_HostAdapterStatus HostAdapterStatus; /* Byte 4 */ enum blogic_adapter_status adapter_status; /* Byte 4 */
enum BusLogic_TargetDeviceStatus TargetDeviceStatus; /* Byte 5 */ enum blogic_tgt_status tgt_status; /* Byte 5 */
unsigned char:8; /* Byte 6 */ unsigned char:8; /* Byte 6 */
enum BusLogic_CompletionCode CompletionCode; /* Byte 7 */ enum blogic_cmplt_code comp_code; /* Byte 7 */
}; };
...@@ -902,64 +888,60 @@ struct BusLogic_IncomingMailbox { ...@@ -902,64 +888,60 @@ struct BusLogic_IncomingMailbox {
Define the BusLogic Driver Options structure. Define the BusLogic Driver Options structure.
*/ */
struct BusLogic_DriverOptions { struct blogic_drvr_options {
unsigned short TaggedQueuingPermitted; unsigned short tagq_ok;
unsigned short TaggedQueuingPermittedMask; unsigned short tagq_ok_mask;
unsigned short BusSettleTime; unsigned short bus_settle_time;
struct BusLogic_LocalOptions LocalOptions; unsigned short stop_tgt_inquiry;
unsigned char CommonQueueDepth; unsigned char common_qdepth;
unsigned char QueueDepth[BusLogic_MaxTargetDevices]; unsigned char qdepth[BLOGIC_MAXDEV];
}; };
/* /*
Define the Host Adapter Target Flags structure. Define the Host Adapter Target Flags structure.
*/ */
struct BusLogic_TargetFlags { struct blogic_tgt_flags {
bool TargetExists:1; bool tgt_exists:1;
bool TaggedQueuingSupported:1; bool tagq_ok:1;
bool WideTransfersSupported:1; bool wide_ok:1;
bool TaggedQueuingActive:1; bool tagq_active:1;
bool WideTransfersActive:1; bool wide_active:1;
bool CommandSuccessfulFlag:1; bool cmd_good:1;
bool TargetInfoReported:1; bool tgt_info_in:1;
}; };
/* /*
Define the Host Adapter Target Statistics structure. Define the Host Adapter Target Statistics structure.
*/ */
#define BusLogic_SizeBuckets 10 #define BLOGIC_SZ_BUCKETS 10
typedef unsigned int BusLogic_CommandSizeBuckets_T[BusLogic_SizeBuckets]; struct blogic_tgt_stats {
unsigned int cmds_tried;
struct BusLogic_TargetStatistics { unsigned int cmds_complete;
unsigned int CommandsAttempted; unsigned int read_cmds;
unsigned int CommandsCompleted; unsigned int write_cmds;
unsigned int ReadCommands; struct blogic_byte_count bytesread;
unsigned int WriteCommands; struct blogic_byte_count byteswritten;
struct BusLogic_ByteCounter TotalBytesRead; unsigned int read_sz_buckets[BLOGIC_SZ_BUCKETS];
struct BusLogic_ByteCounter TotalBytesWritten; unsigned int write_sz_buckets[BLOGIC_SZ_BUCKETS];
BusLogic_CommandSizeBuckets_T ReadCommandSizeBuckets; unsigned short aborts_request;
BusLogic_CommandSizeBuckets_T WriteCommandSizeBuckets; unsigned short aborts_tried;
unsigned short CommandAbortsRequested; unsigned short aborts_done;
unsigned short CommandAbortsAttempted; unsigned short bdr_request;
unsigned short CommandAbortsCompleted; unsigned short bdr_tried;
unsigned short BusDeviceResetsRequested; unsigned short bdr_done;
unsigned short BusDeviceResetsAttempted; unsigned short adatper_reset_req;
unsigned short BusDeviceResetsCompleted; unsigned short adapter_reset_attempt;
unsigned short HostAdapterResetsRequested; unsigned short adapter_reset_done;
unsigned short HostAdapterResetsAttempted;
unsigned short HostAdapterResetsCompleted;
}; };
/* /*
Define the FlashPoint Card Handle data type. Define the FlashPoint Card Handle data type.
*/ */
#define FlashPoint_BadCardHandle 0xFFFFFFFF #define FPOINT_BADCARD_HANDLE 0xFFFFFFFF
typedef unsigned int FlashPoint_CardHandle_T;
/* /*
...@@ -967,179 +949,179 @@ typedef unsigned int FlashPoint_CardHandle_T; ...@@ -967,179 +949,179 @@ typedef unsigned int FlashPoint_CardHandle_T;
by the FlashPoint SCCB Manager. by the FlashPoint SCCB Manager.
*/ */
struct FlashPoint_Info { struct fpoint_info {
u32 BaseAddress; /* Bytes 0-3 */ u32 base_addr; /* Bytes 0-3 */
bool Present; /* Byte 4 */ bool present; /* Byte 4 */
unsigned char IRQ_Channel; /* Byte 5 */ unsigned char irq_ch; /* Byte 5 */
unsigned char SCSI_ID; /* Byte 6 */ unsigned char scsi_id; /* Byte 6 */
unsigned char SCSI_LUN; /* Byte 7 */ unsigned char scsi_lun; /* Byte 7 */
unsigned short FirmwareRevision; /* Bytes 8-9 */ unsigned short fw_rev; /* Bytes 8-9 */
unsigned short SynchronousPermitted; /* Bytes 10-11 */ unsigned short sync_ok; /* Bytes 10-11 */
unsigned short FastPermitted; /* Bytes 12-13 */ unsigned short fast_ok; /* Bytes 12-13 */
unsigned short UltraPermitted; /* Bytes 14-15 */ unsigned short ultra_ok; /* Bytes 14-15 */
unsigned short DisconnectPermitted; /* Bytes 16-17 */ unsigned short discon_ok; /* Bytes 16-17 */
unsigned short WidePermitted; /* Bytes 18-19 */ unsigned short wide_ok; /* Bytes 18-19 */
bool ParityCheckingEnabled:1; /* Byte 20 Bit 0 */ bool parity:1; /* Byte 20 Bit 0 */
bool HostWideSCSI:1; /* Byte 20 Bit 1 */ bool wide:1; /* Byte 20 Bit 1 */
bool HostSoftReset:1; /* Byte 20 Bit 2 */ bool softreset:1; /* Byte 20 Bit 2 */
bool ExtendedTranslationEnabled:1; /* Byte 20 Bit 3 */ bool ext_trans_enable:1; /* Byte 20 Bit 3 */
bool LowByteTerminated:1; /* Byte 20 Bit 4 */ bool low_term:1; /* Byte 20 Bit 4 */
bool HighByteTerminated:1; /* Byte 20 Bit 5 */ bool high_term:1; /* Byte 20 Bit 5 */
bool ReportDataUnderrun:1; /* Byte 20 Bit 6 */ bool report_underrun:1; /* Byte 20 Bit 6 */
bool SCAM_Enabled:1; /* Byte 20 Bit 7 */ bool scam_enabled:1; /* Byte 20 Bit 7 */
bool SCAM_Level2:1; /* Byte 21 Bit 0 */ bool scam_lev2:1; /* Byte 21 Bit 0 */
unsigned char:7; /* Byte 21 Bits 1-7 */ unsigned char:7; /* Byte 21 Bits 1-7 */
unsigned char Family; /* Byte 22 */ unsigned char family; /* Byte 22 */
unsigned char BusType; /* Byte 23 */ unsigned char bus_type; /* Byte 23 */
unsigned char ModelNumber[3]; /* Bytes 24-26 */ unsigned char model[3]; /* Bytes 24-26 */
unsigned char RelativeCardNumber; /* Byte 27 */ unsigned char relative_cardnum; /* Byte 27 */
unsigned char Reserved[4]; /* Bytes 28-31 */ unsigned char rsvd[4]; /* Bytes 28-31 */
unsigned int OS_Reserved; /* Bytes 32-35 */ unsigned int os_rsvd; /* Bytes 32-35 */
unsigned char TranslationInfo[4]; /* Bytes 36-39 */ unsigned char translation_info[4]; /* Bytes 36-39 */
unsigned int Reserved2[5]; /* Bytes 40-59 */ unsigned int rsvd2[5]; /* Bytes 40-59 */
unsigned int SecondaryRange; /* Bytes 60-63 */ unsigned int sec_range; /* Bytes 60-63 */
}; };
/* /*
Define the BusLogic Driver Host Adapter structure. Define the BusLogic Driver Host Adapter structure.
*/ */
struct BusLogic_HostAdapter { struct blogic_adapter {
struct Scsi_Host *SCSI_Host; struct Scsi_Host *scsi_host;
struct pci_dev *PCI_Device; struct pci_dev *pci_device;
enum BusLogic_HostAdapterType HostAdapterType; enum blogic_adapter_type adapter_type;
enum BusLogic_HostAdapterBusType HostAdapterBusType; enum blogic_adapter_bus_type adapter_bus_type;
unsigned long IO_Address; unsigned long io_addr;
unsigned long PCI_Address; unsigned long pci_addr;
unsigned short AddressCount; unsigned short addr_count;
unsigned char HostNumber; unsigned char host_no;
unsigned char ModelName[9]; unsigned char model[9];
unsigned char FirmwareVersion[6]; unsigned char fw_ver[6];
unsigned char FullModelName[18]; unsigned char full_model[18];
unsigned char Bus; unsigned char bus;
unsigned char Device; unsigned char dev;
unsigned char IRQ_Channel; unsigned char irq_ch;
unsigned char DMA_Channel; unsigned char dma_ch;
unsigned char SCSI_ID; unsigned char scsi_id;
bool IRQ_ChannelAcquired:1; bool irq_acquired:1;
bool DMA_ChannelAcquired:1; bool dma_chan_acquired:1;
bool ExtendedTranslationEnabled:1; bool ext_trans_enable:1;
bool ParityCheckingEnabled:1; bool parity:1;
bool BusResetEnabled:1; bool reset_enabled:1;
bool LevelSensitiveInterrupt:1; bool level_int:1;
bool HostWideSCSI:1; bool wide:1;
bool HostDifferentialSCSI:1; bool differential:1;
bool HostSupportsSCAM:1; bool scam:1;
bool HostUltraSCSI:1; bool ultra:1;
bool ExtendedLUNSupport:1; bool ext_lun:1;
bool TerminationInfoValid:1; bool terminfo_valid:1;
bool LowByteTerminated:1; bool low_term:1;
bool HighByteTerminated:1; bool high_term:1;
bool BounceBuffersRequired:1; bool need_bouncebuf:1;
bool StrictRoundRobinModeSupport:1; bool strict_rr:1;
bool SCAM_Enabled:1; bool scam_enabled:1;
bool SCAM_Level2:1; bool scam_lev2:1;
bool HostAdapterInitialized:1; bool adapter_initd:1;
bool HostAdapterExternalReset:1; bool adapter_extreset:1;
bool HostAdapterInternalError:1; bool adapter_intern_err:1;
bool ProcessCompletedCCBsActive; bool processing_ccbs;
volatile bool HostAdapterCommandCompleted; volatile bool adapter_cmd_complete;
unsigned short HostAdapterScatterGatherLimit; unsigned short adapter_sglimit;
unsigned short DriverScatterGatherLimit; unsigned short drvr_sglimit;
unsigned short MaxTargetDevices; unsigned short maxdev;
unsigned short MaxLogicalUnits; unsigned short maxlun;
unsigned short MailboxCount; unsigned short mbox_count;
unsigned short InitialCCBs; unsigned short initccbs;
unsigned short IncrementalCCBs; unsigned short inc_ccbs;
unsigned short AllocatedCCBs; unsigned short alloc_ccbs;
unsigned short DriverQueueDepth; unsigned short drvr_qdepth;
unsigned short HostAdapterQueueDepth; unsigned short adapter_qdepth;
unsigned short UntaggedQueueDepth; unsigned short untag_qdepth;
unsigned short CommonQueueDepth; unsigned short common_qdepth;
unsigned short BusSettleTime; unsigned short bus_settle_time;
unsigned short SynchronousPermitted; unsigned short sync_ok;
unsigned short FastPermitted; unsigned short fast_ok;
unsigned short UltraPermitted; unsigned short ultra_ok;
unsigned short WidePermitted; unsigned short wide_ok;
unsigned short DisconnectPermitted; unsigned short discon_ok;
unsigned short TaggedQueuingPermitted; unsigned short tagq_ok;
unsigned short ExternalHostAdapterResets; unsigned short ext_resets;
unsigned short HostAdapterInternalErrors; unsigned short adapter_intern_errors;
unsigned short TargetDeviceCount; unsigned short tgt_count;
unsigned short MessageBufferLength; unsigned short msgbuflen;
u32 BIOS_Address; u32 bios_addr;
struct BusLogic_DriverOptions *DriverOptions; struct blogic_drvr_options *drvr_opts;
struct FlashPoint_Info FlashPointInfo; struct fpoint_info fpinfo;
FlashPoint_CardHandle_T CardHandle; unsigned int cardhandle;
struct list_head host_list; struct list_head host_list;
struct BusLogic_CCB *All_CCBs; struct blogic_ccb *all_ccbs;
struct BusLogic_CCB *Free_CCBs; struct blogic_ccb *free_ccbs;
struct BusLogic_CCB *FirstCompletedCCB; struct blogic_ccb *firstccb;
struct BusLogic_CCB *LastCompletedCCB; struct blogic_ccb *lastccb;
struct BusLogic_CCB *BusDeviceResetPendingCCB[BusLogic_MaxTargetDevices]; struct blogic_ccb *bdr_pend[BLOGIC_MAXDEV];
struct BusLogic_TargetFlags TargetFlags[BusLogic_MaxTargetDevices]; struct blogic_tgt_flags tgt_flags[BLOGIC_MAXDEV];
unsigned char QueueDepth[BusLogic_MaxTargetDevices]; unsigned char qdepth[BLOGIC_MAXDEV];
unsigned char SynchronousPeriod[BusLogic_MaxTargetDevices]; unsigned char sync_period[BLOGIC_MAXDEV];
unsigned char SynchronousOffset[BusLogic_MaxTargetDevices]; unsigned char sync_offset[BLOGIC_MAXDEV];
unsigned char ActiveCommands[BusLogic_MaxTargetDevices]; unsigned char active_cmds[BLOGIC_MAXDEV];
unsigned int CommandsSinceReset[BusLogic_MaxTargetDevices]; unsigned int cmds_since_rst[BLOGIC_MAXDEV];
unsigned long LastSequencePoint[BusLogic_MaxTargetDevices]; unsigned long last_seqpoint[BLOGIC_MAXDEV];
unsigned long LastResetAttempted[BusLogic_MaxTargetDevices]; unsigned long last_resettried[BLOGIC_MAXDEV];
unsigned long LastResetCompleted[BusLogic_MaxTargetDevices]; unsigned long last_resetdone[BLOGIC_MAXDEV];
struct BusLogic_OutgoingMailbox *FirstOutgoingMailbox; struct blogic_outbox *first_outbox;
struct BusLogic_OutgoingMailbox *LastOutgoingMailbox; struct blogic_outbox *last_outbox;
struct BusLogic_OutgoingMailbox *NextOutgoingMailbox; struct blogic_outbox *next_outbox;
struct BusLogic_IncomingMailbox *FirstIncomingMailbox; struct blogic_inbox *first_inbox;
struct BusLogic_IncomingMailbox *LastIncomingMailbox; struct blogic_inbox *last_inbox;
struct BusLogic_IncomingMailbox *NextIncomingMailbox; struct blogic_inbox *next_inbox;
struct BusLogic_TargetStatistics TargetStatistics[BusLogic_MaxTargetDevices]; struct blogic_tgt_stats tgt_stats[BLOGIC_MAXDEV];
unsigned char *MailboxSpace; unsigned char *mbox_space;
dma_addr_t MailboxSpaceHandle; dma_addr_t mbox_space_handle;
unsigned int MailboxSize; unsigned int mbox_sz;
unsigned long CCB_Offset; unsigned long ccb_offset;
char MessageBuffer[BusLogic_MessageBufferSize]; char msgbuf[BLOGIC_MSGBUF_SIZE];
}; };
/* /*
Define a structure for the BIOS Disk Parameters. Define a structure for the BIOS Disk Parameters.
*/ */
struct BIOS_DiskParameters { struct bios_diskparam {
int Heads; int heads;
int Sectors; int sectors;
int Cylinders; int cylinders;
}; };
/* /*
Define a structure for the SCSI Inquiry command results. Define a structure for the SCSI Inquiry command results.
*/ */
struct SCSI_Inquiry { struct scsi_inquiry {
unsigned char PeripheralDeviceType:5; /* Byte 0 Bits 0-4 */ unsigned char devtype:5; /* Byte 0 Bits 0-4 */
unsigned char PeripheralQualifier:3; /* Byte 0 Bits 5-7 */ unsigned char dev_qual:3; /* Byte 0 Bits 5-7 */
unsigned char DeviceTypeModifier:7; /* Byte 1 Bits 0-6 */ unsigned char dev_modifier:7; /* Byte 1 Bits 0-6 */
bool RMB:1; /* Byte 1 Bit 7 */ bool rmb:1; /* Byte 1 Bit 7 */
unsigned char ANSI_ApprovedVersion:3; /* Byte 2 Bits 0-2 */ unsigned char ansi_ver:3; /* Byte 2 Bits 0-2 */
unsigned char ECMA_Version:3; /* Byte 2 Bits 3-5 */ unsigned char ecma_ver:3; /* Byte 2 Bits 3-5 */
unsigned char ISO_Version:2; /* Byte 2 Bits 6-7 */ unsigned char iso_ver:2; /* Byte 2 Bits 6-7 */
unsigned char ResponseDataFormat:4; /* Byte 3 Bits 0-3 */ unsigned char resp_fmt:4; /* Byte 3 Bits 0-3 */
unsigned char:2; /* Byte 3 Bits 4-5 */ unsigned char:2; /* Byte 3 Bits 4-5 */
bool TrmIOP:1; /* Byte 3 Bit 6 */ bool TrmIOP:1; /* Byte 3 Bit 6 */
bool AENC:1; /* Byte 3 Bit 7 */ bool AENC:1; /* Byte 3 Bit 7 */
unsigned char AdditionalLength; /* Byte 4 */ unsigned char addl_len; /* Byte 4 */
unsigned char:8; /* Byte 5 */ unsigned char:8; /* Byte 5 */
unsigned char:8; /* Byte 6 */ unsigned char:8; /* Byte 6 */
bool SftRe:1; /* Byte 7 Bit 0 */ bool SftRe:1; /* Byte 7 Bit 0 */
bool CmdQue:1; /* Byte 7 Bit 1 */ bool CmdQue:1; /* Byte 7 Bit 1 */
bool:1; /* Byte 7 Bit 2 */ bool:1; /* Byte 7 Bit 2 */
bool Linked:1; /* Byte 7 Bit 3 */ bool linked:1; /* Byte 7 Bit 3 */
bool Sync:1; /* Byte 7 Bit 4 */ bool sync:1; /* Byte 7 Bit 4 */
bool WBus16:1; /* Byte 7 Bit 5 */ bool WBus16:1; /* Byte 7 Bit 5 */
bool WBus32:1; /* Byte 7 Bit 6 */ bool WBus32:1; /* Byte 7 Bit 6 */
bool RelAdr:1; /* Byte 7 Bit 7 */ bool RelAdr:1; /* Byte 7 Bit 7 */
unsigned char VendorIdentification[8]; /* Bytes 8-15 */ unsigned char vendor[8]; /* Bytes 8-15 */
unsigned char ProductIdentification[16]; /* Bytes 16-31 */ unsigned char product[16]; /* Bytes 16-31 */
unsigned char ProductRevisionLevel[4]; /* Bytes 32-35 */ unsigned char product_rev[4]; /* Bytes 32-35 */
}; };
...@@ -1148,184 +1130,170 @@ struct SCSI_Inquiry { ...@@ -1148,184 +1130,170 @@ struct SCSI_Inquiry {
Host Adapter I/O Registers. Host Adapter I/O Registers.
*/ */
static inline void BusLogic_SCSIBusReset(struct BusLogic_HostAdapter *HostAdapter) static inline void blogic_busreset(struct blogic_adapter *adapter)
{ {
union BusLogic_ControlRegister ControlRegister; union blogic_cntrl_reg cr;
ControlRegister.All = 0; cr.all = 0;
ControlRegister.cr.SCSIBusReset = true; cr.cr.bus_reset = true;
outb(ControlRegister.All, HostAdapter->IO_Address + BusLogic_ControlRegisterOffset); outb(cr.all, adapter->io_addr + BLOGIC_CNTRL_REG);
} }
static inline void BusLogic_InterruptReset(struct BusLogic_HostAdapter *HostAdapter) static inline void blogic_intreset(struct blogic_adapter *adapter)
{ {
union BusLogic_ControlRegister ControlRegister; union blogic_cntrl_reg cr;
ControlRegister.All = 0; cr.all = 0;
ControlRegister.cr.InterruptReset = true; cr.cr.int_reset = true;
outb(ControlRegister.All, HostAdapter->IO_Address + BusLogic_ControlRegisterOffset); outb(cr.all, adapter->io_addr + BLOGIC_CNTRL_REG);
} }
static inline void BusLogic_SoftReset(struct BusLogic_HostAdapter *HostAdapter) static inline void blogic_softreset(struct blogic_adapter *adapter)
{ {
union BusLogic_ControlRegister ControlRegister; union blogic_cntrl_reg cr;
ControlRegister.All = 0; cr.all = 0;
ControlRegister.cr.SoftReset = true; cr.cr.soft_reset = true;
outb(ControlRegister.All, HostAdapter->IO_Address + BusLogic_ControlRegisterOffset); outb(cr.all, adapter->io_addr + BLOGIC_CNTRL_REG);
} }
static inline void BusLogic_HardReset(struct BusLogic_HostAdapter *HostAdapter) static inline void blogic_hardreset(struct blogic_adapter *adapter)
{ {
union BusLogic_ControlRegister ControlRegister; union blogic_cntrl_reg cr;
ControlRegister.All = 0; cr.all = 0;
ControlRegister.cr.HardReset = true; cr.cr.hard_reset = true;
outb(ControlRegister.All, HostAdapter->IO_Address + BusLogic_ControlRegisterOffset); outb(cr.all, adapter->io_addr + BLOGIC_CNTRL_REG);
} }
static inline unsigned char BusLogic_ReadStatusRegister(struct BusLogic_HostAdapter *HostAdapter) static inline unsigned char blogic_rdstatus(struct blogic_adapter *adapter)
{ {
return inb(HostAdapter->IO_Address + BusLogic_StatusRegisterOffset); return inb(adapter->io_addr + BLOGIC_STATUS_REG);
} }
static inline void BusLogic_WriteCommandParameterRegister(struct BusLogic_HostAdapter static inline void blogic_setcmdparam(struct blogic_adapter *adapter,
*HostAdapter, unsigned char Value) unsigned char value)
{ {
outb(Value, HostAdapter->IO_Address + BusLogic_CommandParameterRegisterOffset); outb(value, adapter->io_addr + BLOGIC_CMD_PARM_REG);
} }
static inline unsigned char BusLogic_ReadDataInRegister(struct BusLogic_HostAdapter *HostAdapter) static inline unsigned char blogic_rddatain(struct blogic_adapter *adapter)
{ {
return inb(HostAdapter->IO_Address + BusLogic_DataInRegisterOffset); return inb(adapter->io_addr + BLOGIC_DATAIN_REG);
} }
static inline unsigned char BusLogic_ReadInterruptRegister(struct BusLogic_HostAdapter *HostAdapter) static inline unsigned char blogic_rdint(struct blogic_adapter *adapter)
{ {
return inb(HostAdapter->IO_Address + BusLogic_InterruptRegisterOffset); return inb(adapter->io_addr + BLOGIC_INT_REG);
} }
static inline unsigned char BusLogic_ReadGeometryRegister(struct BusLogic_HostAdapter *HostAdapter) static inline unsigned char blogic_rdgeom(struct blogic_adapter *adapter)
{ {
return inb(HostAdapter->IO_Address + BusLogic_GeometryRegisterOffset); return inb(adapter->io_addr + BLOGIC_GEOMETRY_REG);
} }
/* /*
BusLogic_StartMailboxCommand issues an Execute Mailbox Command, which blogic_execmbox issues an Execute Mailbox Command, which
notifies the Host Adapter that an entry has been made in an Outgoing notifies the Host Adapter that an entry has been made in an Outgoing
Mailbox. Mailbox.
*/ */
static inline void BusLogic_StartMailboxCommand(struct BusLogic_HostAdapter *HostAdapter) static inline void blogic_execmbox(struct blogic_adapter *adapter)
{ {
BusLogic_WriteCommandParameterRegister(HostAdapter, BusLogic_ExecuteMailboxCommand); blogic_setcmdparam(adapter, BLOGIC_EXEC_MBOX_CMD);
} }
/* /*
BusLogic_Delay waits for Seconds to elapse. blogic_delay waits for Seconds to elapse.
*/ */
static inline void BusLogic_Delay(int Seconds) static inline void blogic_delay(int seconds)
{
mdelay(1000 * Seconds);
}
/*
Virtual_to_Bus and Bus_to_Virtual map between Kernel Virtual Addresses
and PCI/VLB/EISA/ISA Bus Addresses.
*/
static inline u32 Virtual_to_Bus(void *VirtualAddress)
{
return (u32) virt_to_bus(VirtualAddress);
}
static inline void *Bus_to_Virtual(u32 BusAddress)
{ {
return (void *) bus_to_virt(BusAddress); mdelay(1000 * seconds);
} }
/* /*
Virtual_to_32Bit_Virtual maps between Kernel Virtual Addresses and virt_to_32bit_virt maps between Kernel Virtual Addresses and
32 bit Kernel Virtual Addresses. This avoids compilation warnings 32 bit Kernel Virtual Addresses. This avoids compilation warnings
on 64 bit architectures. on 64 bit architectures.
*/ */
static inline u32 Virtual_to_32Bit_Virtual(void *VirtualAddress) static inline u32 virt_to_32bit_virt(void *virt_addr)
{ {
return (u32) (unsigned long) VirtualAddress; return (u32) (unsigned long) virt_addr;
} }
/* /*
BusLogic_IncrementErrorCounter increments Error Counter by 1, stopping at blogic_inc_count increments counter by 1, stopping at
65535 rather than wrapping around to 0. 65535 rather than wrapping around to 0.
*/ */
static inline void BusLogic_IncrementErrorCounter(unsigned short *ErrorCounter) static inline void blogic_inc_count(unsigned short *count)
{ {
if (*ErrorCounter < 65535) if (*count < 65535)
(*ErrorCounter)++; (*count)++;
} }
/* /*
BusLogic_IncrementByteCounter increments Byte Counter by Amount. blogic_addcount increments Byte Counter by Amount.
*/ */
static inline void BusLogic_IncrementByteCounter(struct BusLogic_ByteCounter static inline void blogic_addcount(struct blogic_byte_count *bytecount,
*ByteCounter, unsigned int Amount) unsigned int amount)
{ {
ByteCounter->Units += Amount; bytecount->units += amount;
if (ByteCounter->Units > 999999999) { if (bytecount->units > 999999999) {
ByteCounter->Units -= 1000000000; bytecount->units -= 1000000000;
ByteCounter->Billions++; bytecount->billions++;
} }
} }
/* /*
BusLogic_IncrementSizeBucket increments the Bucket for Amount. blogic_incszbucket increments the Bucket for Amount.
*/ */
static inline void BusLogic_IncrementSizeBucket(BusLogic_CommandSizeBuckets_T CommandSizeBuckets, unsigned int Amount) static inline void blogic_incszbucket(unsigned int *cmdsz_buckets,
unsigned int amount)
{ {
int Index = 0; int index = 0;
if (Amount < 8 * 1024) { if (amount < 8 * 1024) {
if (Amount < 2 * 1024) if (amount < 2 * 1024)
Index = (Amount < 1 * 1024 ? 0 : 1); index = (amount < 1 * 1024 ? 0 : 1);
else else
Index = (Amount < 4 * 1024 ? 2 : 3); index = (amount < 4 * 1024 ? 2 : 3);
} else if (Amount < 128 * 1024) { } else if (amount < 128 * 1024) {
if (Amount < 32 * 1024) if (amount < 32 * 1024)
Index = (Amount < 16 * 1024 ? 4 : 5); index = (amount < 16 * 1024 ? 4 : 5);
else else
Index = (Amount < 64 * 1024 ? 6 : 7); index = (amount < 64 * 1024 ? 6 : 7);
} else } else
Index = (Amount < 256 * 1024 ? 8 : 9); index = (amount < 256 * 1024 ? 8 : 9);
CommandSizeBuckets[Index]++; cmdsz_buckets[index]++;
} }
/* /*
Define the version number of the FlashPoint Firmware (SCCB Manager). Define the version number of the FlashPoint Firmware (SCCB Manager).
*/ */
#define FlashPoint_FirmwareVersion "5.02" #define FLASHPOINT_FW_VER "5.02"
/* /*
Define the possible return values from FlashPoint_HandleInterrupt. Define the possible return values from FlashPoint_HandleInterrupt.
*/ */
#define FlashPoint_NormalInterrupt 0x00 #define FPOINT_NORMAL_INT 0x00
#define FlashPoint_InternalError 0xFE #define FPOINT_INTERN_ERR 0xFE
#define FlashPoint_ExternalBusReset 0xFF #define FPOINT_EXT_RESET 0xFF
/* /*
Define prototypes for the forward referenced BusLogic Driver Define prototypes for the forward referenced BusLogic Driver
Internal Functions. Internal Functions.
*/ */
static const char *BusLogic_DriverInfo(struct Scsi_Host *); static const char *blogic_drvr_info(struct Scsi_Host *);
static int BusLogic_QueueCommand(struct Scsi_Host *h, struct scsi_cmnd *); static int blogic_qcmd(struct Scsi_Host *h, struct scsi_cmnd *);
static int BusLogic_BIOSDiskParameters(struct scsi_device *, struct block_device *, sector_t, int *); static int blogic_diskparam(struct scsi_device *, struct block_device *, sector_t, int *);
static int BusLogic_SlaveConfigure(struct scsi_device *); static int blogic_slaveconfig(struct scsi_device *);
static void BusLogic_QueueCompletedCCB(struct BusLogic_CCB *); static void blogic_qcompleted_ccb(struct blogic_ccb *);
static irqreturn_t BusLogic_InterruptHandler(int, void *); static irqreturn_t blogic_inthandler(int, void *);
static int BusLogic_ResetHostAdapter(struct BusLogic_HostAdapter *, bool HardReset); static int blogic_resetadapter(struct blogic_adapter *, bool hard_reset);
static void BusLogic_Message(enum BusLogic_MessageLevel, char *, struct BusLogic_HostAdapter *, ...); static void blogic_msg(enum blogic_msglevel, char *, struct blogic_adapter *, ...);
static int __init BusLogic_Setup(char *); static int __init blogic_setup(char *);
#endif /* _BUSLOGIC_H */ #endif /* _BUSLOGIC_H */
...@@ -7573,47 +7573,47 @@ static unsigned char FPT_CalcLrc(unsigned char buffer[]) ...@@ -7573,47 +7573,47 @@ static unsigned char FPT_CalcLrc(unsigned char buffer[])
*/ */
static inline unsigned char static inline unsigned char
FlashPoint__ProbeHostAdapter(struct FlashPoint_Info *FlashPointInfo) FlashPoint__ProbeHostAdapter(struct fpoint_info *FlashPointInfo)
{ {
return FlashPoint_ProbeHostAdapter((struct sccb_mgr_info *) return FlashPoint_ProbeHostAdapter((struct sccb_mgr_info *)
FlashPointInfo); FlashPointInfo);
} }
static inline FlashPoint_CardHandle_T static inline unsigned int
FlashPoint__HardwareResetHostAdapter(struct FlashPoint_Info *FlashPointInfo) FlashPoint__HardwareResetHostAdapter(struct fpoint_info *FlashPointInfo)
{ {
return FlashPoint_HardwareResetHostAdapter((struct sccb_mgr_info *) return FlashPoint_HardwareResetHostAdapter((struct sccb_mgr_info *)
FlashPointInfo); FlashPointInfo);
} }
static inline void static inline void
FlashPoint__ReleaseHostAdapter(FlashPoint_CardHandle_T CardHandle) FlashPoint__ReleaseHostAdapter(unsigned int CardHandle)
{ {
FlashPoint_ReleaseHostAdapter(CardHandle); FlashPoint_ReleaseHostAdapter(CardHandle);
} }
static inline void static inline void
FlashPoint__StartCCB(FlashPoint_CardHandle_T CardHandle, FlashPoint__StartCCB(unsigned int CardHandle,
struct BusLogic_CCB *CCB) struct blogic_ccb *CCB)
{ {
FlashPoint_StartCCB(CardHandle, (struct sccb *)CCB); FlashPoint_StartCCB(CardHandle, (struct sccb *)CCB);
} }
static inline void static inline void
FlashPoint__AbortCCB(FlashPoint_CardHandle_T CardHandle, FlashPoint__AbortCCB(unsigned int CardHandle,
struct BusLogic_CCB *CCB) struct blogic_ccb *CCB)
{ {
FlashPoint_AbortCCB(CardHandle, (struct sccb *)CCB); FlashPoint_AbortCCB(CardHandle, (struct sccb *)CCB);
} }
static inline bool static inline bool
FlashPoint__InterruptPending(FlashPoint_CardHandle_T CardHandle) FlashPoint__InterruptPending(unsigned int CardHandle)
{ {
return FlashPoint_InterruptPending(CardHandle); return FlashPoint_InterruptPending(CardHandle);
} }
static inline int static inline int
FlashPoint__HandleInterrupt(FlashPoint_CardHandle_T CardHandle) FlashPoint__HandleInterrupt(unsigned int CardHandle)
{ {
return FlashPoint_HandleInterrupt(CardHandle); return FlashPoint_HandleInterrupt(CardHandle);
} }
...@@ -7632,13 +7632,12 @@ FlashPoint__HandleInterrupt(FlashPoint_CardHandle_T CardHandle) ...@@ -7632,13 +7632,12 @@ FlashPoint__HandleInterrupt(FlashPoint_CardHandle_T CardHandle)
Define prototypes for the FlashPoint SCCB Manager Functions. Define prototypes for the FlashPoint SCCB Manager Functions.
*/ */
extern unsigned char FlashPoint_ProbeHostAdapter(struct FlashPoint_Info *); extern unsigned char FlashPoint_ProbeHostAdapter(struct fpoint_info *);
extern FlashPoint_CardHandle_T extern unsigned int FlashPoint_HardwareResetHostAdapter(struct fpoint_info *);
FlashPoint_HardwareResetHostAdapter(struct FlashPoint_Info *); extern void FlashPoint_StartCCB(unsigned int, struct blogic_ccb *);
extern void FlashPoint_StartCCB(FlashPoint_CardHandle_T, struct BusLogic_CCB *); extern int FlashPoint_AbortCCB(unsigned int, struct blogic_ccb *);
extern int FlashPoint_AbortCCB(FlashPoint_CardHandle_T, struct BusLogic_CCB *); extern bool FlashPoint_InterruptPending(unsigned int);
extern bool FlashPoint_InterruptPending(FlashPoint_CardHandle_T); extern int FlashPoint_HandleInterrupt(unsigned int);
extern int FlashPoint_HandleInterrupt(FlashPoint_CardHandle_T); extern void FlashPoint_ReleaseHostAdapter(unsigned int);
extern void FlashPoint_ReleaseHostAdapter(FlashPoint_CardHandle_T);
#endif /* CONFIG_SCSI_FLASHPOINT */ #endif /* CONFIG_SCSI_FLASHPOINT */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment