Commit 87d156bf authored by Richard Knutsson's avatar Richard Knutsson Committed by Linus Torvalds
Browse files

[PATCH] drivers/block/DAC960: convert 'boolean' to 'bool'



Converts 'boolean' to 'bool' and removes the 'boolean' typedef.
Signed-off-by: default avatarRichard Knutsson <ricknu-0@student.ltu.se>
Cc: Jens Axboe <axboe@suse.de>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2b1cd4c4
......@@ -177,7 +177,7 @@ static void DAC960_AnnounceDriver(DAC960_Controller_T *Controller)
DAC960_Failure prints a standardized error message, and then returns false.
*/
static boolean DAC960_Failure(DAC960_Controller_T *Controller,
static bool DAC960_Failure(DAC960_Controller_T *Controller,
unsigned char *ErrorMessage)
{
DAC960_Error("While configuring DAC960 PCI RAID Controller at\n",
......@@ -206,7 +206,7 @@ static boolean DAC960_Failure(DAC960_Controller_T *Controller,
that are passed in.
*/
static boolean init_dma_loaf(struct pci_dev *dev, struct dma_loaf *loaf,
static bool init_dma_loaf(struct pci_dev *dev, struct dma_loaf *loaf,
size_t len)
{
void *cpu_addr;
......@@ -250,7 +250,7 @@ static void free_dma_loaf(struct pci_dev *dev, struct dma_loaf *loaf_handle)
failure.
*/
static boolean DAC960_CreateAuxiliaryStructures(DAC960_Controller_T *Controller)
static bool DAC960_CreateAuxiliaryStructures(DAC960_Controller_T *Controller)
{
int CommandAllocationLength, CommandAllocationGroupSize;
int CommandsRemaining = 0, CommandIdentifier, CommandGroupByteCount;
......@@ -790,7 +790,7 @@ static void DAC960_ExecuteCommand(DAC960_Command_T *Command)
on failure.
*/
static boolean DAC960_V1_ExecuteType3(DAC960_Controller_T *Controller,
static bool DAC960_V1_ExecuteType3(DAC960_Controller_T *Controller,
DAC960_V1_CommandOpcode_T CommandOpcode,
dma_addr_t DataDMA)
{
......@@ -814,7 +814,7 @@ static boolean DAC960_V1_ExecuteType3(DAC960_Controller_T *Controller,
on failure.
*/
static boolean DAC960_V1_ExecuteType3B(DAC960_Controller_T *Controller,
static bool DAC960_V1_ExecuteType3B(DAC960_Controller_T *Controller,
DAC960_V1_CommandOpcode_T CommandOpcode,
unsigned char CommandOpcode2,
dma_addr_t DataDMA)
......@@ -840,7 +840,7 @@ static boolean DAC960_V1_ExecuteType3B(DAC960_Controller_T *Controller,
on failure.
*/
static boolean DAC960_V1_ExecuteType3D(DAC960_Controller_T *Controller,
static bool DAC960_V1_ExecuteType3D(DAC960_Controller_T *Controller,
DAC960_V1_CommandOpcode_T CommandOpcode,
unsigned char Channel,
unsigned char TargetID,
......@@ -870,7 +870,7 @@ static boolean DAC960_V1_ExecuteType3D(DAC960_Controller_T *Controller,
Return data in The controller's HealthStatusBuffer, which is dma-able memory
*/
static boolean DAC960_V2_GeneralInfo(DAC960_Controller_T *Controller)
static bool DAC960_V2_GeneralInfo(DAC960_Controller_T *Controller)
{
DAC960_Command_T *Command = DAC960_AllocateCommand(Controller);
DAC960_V2_CommandMailbox_T *CommandMailbox = &Command->V2.CommandMailbox;
......@@ -908,7 +908,7 @@ static boolean DAC960_V2_GeneralInfo(DAC960_Controller_T *Controller)
memory buffer.
*/
static boolean DAC960_V2_NewControllerInfo(DAC960_Controller_T *Controller)
static bool DAC960_V2_NewControllerInfo(DAC960_Controller_T *Controller)
{
DAC960_Command_T *Command = DAC960_AllocateCommand(Controller);
DAC960_V2_CommandMailbox_T *CommandMailbox = &Command->V2.CommandMailbox;
......@@ -946,7 +946,7 @@ static boolean DAC960_V2_NewControllerInfo(DAC960_Controller_T *Controller)
Data is returned in the controller's V2.NewLogicalDeviceInformation
*/
static boolean DAC960_V2_NewLogicalDeviceInfo(DAC960_Controller_T *Controller,
static bool DAC960_V2_NewLogicalDeviceInfo(DAC960_Controller_T *Controller,
unsigned short LogicalDeviceNumber)
{
DAC960_Command_T *Command = DAC960_AllocateCommand(Controller);
......@@ -997,7 +997,7 @@ static boolean DAC960_V2_NewLogicalDeviceInfo(DAC960_Controller_T *Controller,
*/
static boolean DAC960_V2_NewPhysicalDeviceInfo(DAC960_Controller_T *Controller,
static bool DAC960_V2_NewPhysicalDeviceInfo(DAC960_Controller_T *Controller,
unsigned char Channel,
unsigned char TargetID,
unsigned char LogicalUnit)
......@@ -1082,7 +1082,7 @@ static void DAC960_V2_ConstructNewUnitSerialNumber(
memory buffer.
*/
static boolean DAC960_V2_NewInquiryUnitSerialNumber(DAC960_Controller_T *Controller,
static bool DAC960_V2_NewInquiryUnitSerialNumber(DAC960_Controller_T *Controller,
int Channel, int TargetID, int LogicalUnit)
{
DAC960_Command_T *Command;
......@@ -1110,7 +1110,7 @@ static boolean DAC960_V2_NewInquiryUnitSerialNumber(DAC960_Controller_T *Control
success and false on failure.
*/
static boolean DAC960_V2_DeviceOperation(DAC960_Controller_T *Controller,
static bool DAC960_V2_DeviceOperation(DAC960_Controller_T *Controller,
DAC960_V2_IOCTL_Opcode_T IOCTL_Opcode,
DAC960_V2_OperationDevice_T
OperationDevice)
......@@ -1142,7 +1142,7 @@ static boolean DAC960_V2_DeviceOperation(DAC960_Controller_T *Controller,
other dma mapped memory.
*/
static boolean DAC960_V1_EnableMemoryMailboxInterface(DAC960_Controller_T
static bool DAC960_V1_EnableMemoryMailboxInterface(DAC960_Controller_T
*Controller)
{
void __iomem *ControllerBaseAddress = Controller->BaseAddress;
......@@ -1348,7 +1348,7 @@ skip_mailboxes:
the structures that are contained in that region.
*/
static boolean DAC960_V2_EnableMemoryMailboxInterface(DAC960_Controller_T
static bool DAC960_V2_EnableMemoryMailboxInterface(DAC960_Controller_T
*Controller)
{
void __iomem *ControllerBaseAddress = Controller->BaseAddress;
......@@ -1526,7 +1526,7 @@ static boolean DAC960_V2_EnableMemoryMailboxInterface(DAC960_Controller_T
from DAC960 V1 Firmware Controllers and initializes the Controller structure.
*/
static boolean DAC960_V1_ReadControllerConfiguration(DAC960_Controller_T
static bool DAC960_V1_ReadControllerConfiguration(DAC960_Controller_T
*Controller)
{
DAC960_V1_Enquiry2_T *Enquiry2;
......@@ -1767,7 +1767,7 @@ static boolean DAC960_V1_ReadControllerConfiguration(DAC960_Controller_T
from DAC960 V2 Firmware Controllers and initializes the Controller structure.
*/
static boolean DAC960_V2_ReadControllerConfiguration(DAC960_Controller_T
static bool DAC960_V2_ReadControllerConfiguration(DAC960_Controller_T
*Controller)
{
DAC960_V2_ControllerInfo_T *ControllerInfo =
......@@ -1898,7 +1898,7 @@ static boolean DAC960_V2_ReadControllerConfiguration(DAC960_Controller_T
for Controller.
*/
static boolean DAC960_ReportControllerConfiguration(DAC960_Controller_T
static bool DAC960_ReportControllerConfiguration(DAC960_Controller_T
*Controller)
{
DAC960_Info("Configuring Mylex %s PCI RAID Controller\n",
......@@ -1947,7 +1947,7 @@ static boolean DAC960_ReportControllerConfiguration(DAC960_Controller_T
Controller.
*/
static boolean DAC960_V1_ReadDeviceConfiguration(DAC960_Controller_T
static bool DAC960_V1_ReadDeviceConfiguration(DAC960_Controller_T
*Controller)
{
struct dma_loaf local_dma;
......@@ -2095,7 +2095,7 @@ static boolean DAC960_V1_ReadDeviceConfiguration(DAC960_Controller_T
device connected to Controller.
*/
static boolean DAC960_V2_ReadDeviceConfiguration(DAC960_Controller_T
static bool DAC960_V2_ReadDeviceConfiguration(DAC960_Controller_T
*Controller)
{
unsigned char Channel = 0, TargetID = 0, LogicalUnit = 0;
......@@ -2219,7 +2219,7 @@ static void DAC960_SanitizeInquiryData(DAC960_SCSI_Inquiry_T
Information for DAC960 V1 Firmware Controllers.
*/
static boolean DAC960_V1_ReportDeviceConfiguration(DAC960_Controller_T
static bool DAC960_V1_ReportDeviceConfiguration(DAC960_Controller_T
*Controller)
{
int LogicalDriveNumber, Channel, TargetID;
......@@ -2316,7 +2316,7 @@ static boolean DAC960_V1_ReportDeviceConfiguration(DAC960_Controller_T
Information for DAC960 V2 Firmware Controllers.
*/
static boolean DAC960_V2_ReportDeviceConfiguration(DAC960_Controller_T
static bool DAC960_V2_ReportDeviceConfiguration(DAC960_Controller_T
*Controller)
{
int PhysicalDeviceIndex, LogicalDriveNumber;
......@@ -2501,7 +2501,7 @@ static boolean DAC960_V2_ReportDeviceConfiguration(DAC960_Controller_T
associated with Controller.
*/
static boolean DAC960_RegisterBlockDevice(DAC960_Controller_T *Controller)
static bool DAC960_RegisterBlockDevice(DAC960_Controller_T *Controller)
{
int MajorNumber = DAC960_MAJOR + Controller->ControllerNumber;
int n;
......@@ -2582,7 +2582,7 @@ static void DAC960_ComputeGenericDiskInfo(DAC960_Controller_T *Controller)
It returns true for fatal errors and false otherwise.
*/
static boolean DAC960_ReportErrorStatus(DAC960_Controller_T *Controller,
static bool DAC960_ReportErrorStatus(DAC960_Controller_T *Controller,
unsigned char ErrorStatus,
unsigned char Parameter0,
unsigned char Parameter1)
......@@ -3048,7 +3048,7 @@ Failure:
DAC960_InitializeController initializes Controller.
*/
static boolean
static bool
DAC960_InitializeController(DAC960_Controller_T *Controller)
{
if (DAC960_ReadControllerConfiguration(Controller) &&
......@@ -3445,8 +3445,8 @@ static void DAC960_RequestFunction(struct request_queue *RequestQueue)
individual Buffer.
*/
static inline boolean DAC960_ProcessCompletedRequest(DAC960_Command_T *Command,
boolean SuccessfulIO)
static inline bool DAC960_ProcessCompletedRequest(DAC960_Command_T *Command,
bool SuccessfulIO)
{
struct request *Request = Command->Request;
int UpToDate;
......@@ -3572,7 +3572,7 @@ static void DAC960_V1_ProcessCompletedCommand(DAC960_Command_T *Command)
else if (CommandType == DAC960_ReadRetryCommand ||
CommandType == DAC960_WriteRetryCommand)
{
boolean normal_completion;
bool normal_completion;
#ifdef FORCE_RETRY_FAILURE_DEBUG
static int retry_count = 1;
#endif
......@@ -4659,7 +4659,7 @@ static void DAC960_V2_ProcessCompletedCommand(DAC960_Command_T *Command)
else if (CommandType == DAC960_ReadRetryCommand ||
CommandType == DAC960_WriteRetryCommand)
{
boolean normal_completion;
bool normal_completion;
#ifdef FORCE_RETRY_FAILURE_DEBUG
static int retry_count = 1;
......@@ -5632,7 +5632,7 @@ static void DAC960_MonitoringTimerFunction(unsigned long TimerData)
&Controller->V2.ControllerInformation;
unsigned int StatusChangeCounter =
Controller->V2.HealthStatusBuffer->StatusChangeCounter;
boolean ForceMonitoringCommand = false;
bool ForceMonitoringCommand = false;
if (time_after(jiffies, Controller->SecondaryMonitoringTime
+ DAC960_SecondaryMonitoringInterval))
{
......@@ -5696,7 +5696,7 @@ static void DAC960_MonitoringTimerFunction(unsigned long TimerData)
necessary. It returns true if there is enough room and false otherwise.
*/
static boolean DAC960_CheckStatusBuffer(DAC960_Controller_T *Controller,
static bool DAC960_CheckStatusBuffer(DAC960_Controller_T *Controller,
unsigned int ByteCount)
{
unsigned char *NewStatusBuffer;
......@@ -5744,7 +5744,7 @@ static void DAC960_Message(DAC960_MessageLevel_T MessageLevel,
...)
{
static unsigned char Buffer[DAC960_LineBufferSize];
static boolean BeginningOfLine = true;
static bool BeginningOfLine = true;
va_list Arguments;
int Length = 0;
va_start(Arguments, Controller);
......@@ -5837,7 +5837,7 @@ static void DAC960_Message(DAC960_MessageLevel_T MessageLevel,
Channel and TargetID and returns true on success and false on failure.
*/
static boolean DAC960_ParsePhysicalDevice(DAC960_Controller_T *Controller,
static bool DAC960_ParsePhysicalDevice(DAC960_Controller_T *Controller,
char *UserCommandString,
unsigned char *Channel,
unsigned char *TargetID)
......@@ -5870,7 +5870,7 @@ static boolean DAC960_ParsePhysicalDevice(DAC960_Controller_T *Controller,
returns true on success and false on failure.
*/
static boolean DAC960_ParseLogicalDrive(DAC960_Controller_T *Controller,
static bool DAC960_ParseLogicalDrive(DAC960_Controller_T *Controller,
char *UserCommandString,
unsigned char *LogicalDriveNumber)
{
......@@ -5951,7 +5951,7 @@ static void DAC960_V1_SetDeviceState(DAC960_Controller_T *Controller,
Controllers.
*/
static boolean DAC960_V1_ExecuteUserCommand(DAC960_Controller_T *Controller,
static bool DAC960_V1_ExecuteUserCommand(DAC960_Controller_T *Controller,
unsigned char *UserCommand)
{
DAC960_Command_T *Command;
......@@ -6166,7 +6166,7 @@ failure:
on failure.
*/
static boolean DAC960_V2_TranslatePhysicalDevice(DAC960_Command_T *Command,
static bool DAC960_V2_TranslatePhysicalDevice(DAC960_Command_T *Command,
unsigned char Channel,
unsigned char TargetID,
unsigned short
......@@ -6213,7 +6213,7 @@ static boolean DAC960_V2_TranslatePhysicalDevice(DAC960_Command_T *Command,
Controllers.
*/
static boolean DAC960_V2_ExecuteUserCommand(DAC960_Controller_T *Controller,
static bool DAC960_V2_ExecuteUserCommand(DAC960_Controller_T *Controller,
unsigned char *UserCommand)
{
DAC960_Command_T *Command;
......
......@@ -67,13 +67,6 @@
#define DAC690_V1_PciDmaMask 0xffffffff
#define DAC690_V2_PciDmaMask 0xffffffffffffffffULL
/*
Define a Boolean data type.
*/
typedef bool boolean;
/*
Define a 32/64 bit I/O Address data type.
*/
......@@ -139,25 +132,25 @@ typedef struct DAC960_SCSI_Inquiry
unsigned char PeripheralDeviceType:5; /* Byte 0 Bits 0-4 */
unsigned char PeripheralQualifier:3; /* Byte 0 Bits 5-7 */
unsigned char DeviceTypeModifier:7; /* Byte 1 Bits 0-6 */
boolean 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 ECMA_Version:3; /* Byte 2 Bits 3-5 */
unsigned char ISO_Version:2; /* Byte 2 Bits 6-7 */
unsigned char ResponseDataFormat:4; /* Byte 3 Bits 0-3 */
unsigned char :2; /* Byte 3 Bits 4-5 */
boolean TrmIOP:1; /* Byte 3 Bit 6 */
boolean AENC:1; /* Byte 3 Bit 7 */
bool TrmIOP:1; /* Byte 3 Bit 6 */
bool AENC:1; /* Byte 3 Bit 7 */
unsigned char AdditionalLength; /* Byte 4 */
unsigned char :8; /* Byte 5 */
unsigned char :8; /* Byte 6 */
boolean SftRe:1; /* Byte 7 Bit 0 */
boolean CmdQue:1; /* Byte 7 Bit 1 */
boolean :1; /* Byte 7 Bit 2 */
boolean Linked:1; /* Byte 7 Bit 3 */
boolean Sync:1; /* Byte 7 Bit 4 */
boolean WBus16:1; /* Byte 7 Bit 5 */
boolean WBus32:1; /* Byte 7 Bit 6 */
boolean RelAdr:1; /* Byte 7 Bit 7 */
bool SftRe:1; /* Byte 7 Bit 0 */
bool CmdQue:1; /* Byte 7 Bit 1 */
bool :1; /* Byte 7 Bit 2 */
bool Linked:1; /* Byte 7 Bit 3 */
bool Sync:1; /* Byte 7 Bit 4 */
bool WBus16:1; /* Byte 7 Bit 5 */
bool WBus32:1; /* Byte 7 Bit 6 */
bool RelAdr:1; /* Byte 7 Bit 7 */
unsigned char VendorIdentification[8]; /* Bytes 8-15 */
unsigned char ProductIdentification[16]; /* Bytes 16-31 */
unsigned char ProductRevisionLevel[4]; /* Bytes 32-35 */
......@@ -215,13 +208,13 @@ DAC960_SCSI_RequestSenseKey_T;
typedef struct DAC960_SCSI_RequestSense
{
unsigned char ErrorCode:7; /* Byte 0 Bits 0-6 */
boolean Valid:1; /* Byte 0 Bit 7 */
bool Valid:1; /* Byte 0 Bit 7 */
unsigned char SegmentNumber; /* Byte 1 */
DAC960_SCSI_RequestSenseKey_T SenseKey:4; /* Byte 2 Bits 0-3 */
unsigned char :1; /* Byte 2 Bit 4 */
boolean ILI:1; /* Byte 2 Bit 5 */
boolean EOM:1; /* Byte 2 Bit 6 */
boolean Filemark:1; /* Byte 2 Bit 7 */
bool ILI:1; /* Byte 2 Bit 5 */
bool EOM:1; /* Byte 2 Bit 6 */
bool Filemark:1; /* Byte 2 Bit 7 */
unsigned char Information[4]; /* Bytes 3-6 */
unsigned char AdditionalSenseLength; /* Byte 7 */
unsigned char CommandSpecificInformation[4]; /* Bytes 8-11 */
......@@ -381,8 +374,8 @@ typedef struct DAC960_V1_Enquiry
unsigned int LogicalDriveSizes[32]; /* Bytes 4-131 */
unsigned short FlashAge; /* Bytes 132-133 */
struct {
boolean DeferredWriteError:1; /* Byte 134 Bit 0 */
boolean BatteryLow:1; /* Byte 134 Bit 1 */
bool DeferredWriteError:1; /* Byte 134 Bit 0 */
bool BatteryLow:1; /* Byte 134 Bit 1 */
unsigned char :6; /* Byte 134 Bits 2-7 */
} StatusFlags;
unsigned char :8; /* Byte 135 */
......@@ -410,7 +403,7 @@ typedef struct DAC960_V1_Enquiry
unsigned char RebuildCount; /* Byte 150 */
struct {
unsigned char :3; /* Byte 151 Bits 0-2 */
boolean BatteryBackupUnitPresent:1; /* Byte 151 Bit 3 */
bool BatteryBackupUnitPresent:1; /* Byte 151 Bit 3 */
unsigned char :3; /* Byte 151 Bits 4-6 */
unsigned char :1; /* Byte 151 Bit 7 */
} MiscFlags;
......@@ -492,8 +485,8 @@ typedef struct DAC960_V1_Enquiry2
DAC960_V1_ErrorCorrection_ECC = 0x2,
DAC960_V1_ErrorCorrection_Last = 0x7
} __attribute__ ((packed)) ErrorCorrection:3; /* Byte 40 Bits 3-5 */
boolean FastPageMode:1; /* Byte 40 Bit 6 */
boolean LowPowerMemory:1; /* Byte 40 Bit 7 */
bool FastPageMode:1; /* Byte 40 Bit 6 */
bool LowPowerMemory:1; /* Byte 40 Bit 7 */
unsigned char :8; /* Bytes 41 */
} MemoryType;
unsigned short ClockSpeed; /* Bytes 42-43 */
......@@ -538,7 +531,7 @@ typedef struct DAC960_V1_Enquiry2
DAC960_V1_Ultra = 0x1,
DAC960_V1_Ultra2 = 0x2
} __attribute__ ((packed)) BusSpeed:2; /* Byte 106 Bits 2-3 */
boolean Differential:1; /* Byte 106 Bit 4 */
bool Differential:1; /* Byte 106 Bit 4 */
unsigned char :3; /* Byte 106 Bits 5-7 */
} SCSICapability;
unsigned char :8; /* Byte 107 */
......@@ -554,10 +547,10 @@ typedef struct DAC960_V1_Enquiry2
} __attribute__ ((packed)) FaultManagementType; /* Byte 114 */
unsigned char :8; /* Byte 115 */
struct {
boolean Clustering:1; /* Byte 116 Bit 0 */
boolean MylexOnlineRAIDExpansion:1; /* Byte 116 Bit 1 */
boolean ReadAhead:1; /* Byte 116 Bit 2 */
boolean BackgroundInitialization:1; /* Byte 116 Bit 3 */
bool Clustering:1; /* Byte 116 Bit 0 */
bool MylexOnlineRAIDExpansion:1; /* Byte 116 Bit 1 */
bool ReadAhead:1; /* Byte 116 Bit 2 */
bool BackgroundInitialization:1; /* Byte 116 Bit 3 */
unsigned int :28; /* Bytes 116-119 */
} FirmwareFeatures;
unsigned int :32; /* Bytes 120-123 */
......@@ -589,7 +582,7 @@ typedef struct DAC960_V1_LogicalDriveInformation
unsigned int LogicalDriveSize; /* Bytes 0-3 */
DAC960_V1_LogicalDriveState_T LogicalDriveState; /* Byte 4 */
unsigned char RAIDLevel:7; /* Byte 5 Bits 0-6 */
boolean WriteBack:1; /* Byte 5 Bit 7 */
bool WriteBack:1; /* Byte 5 Bit 7 */
unsigned short :16; /* Bytes 6-7 */
}
DAC960_V1_LogicalDriveInformation_T;
......@@ -630,13 +623,13 @@ typedef struct DAC960_V1_EventLogEntry
unsigned char :2; /* Byte 3 Bits 6-7 */
unsigned short SequenceNumber; /* Bytes 4-5 */
unsigned char ErrorCode:7; /* Byte 6 Bits 0-6 */
boolean Valid:1; /* Byte 6 Bit 7 */
bool Valid:1; /* Byte 6 Bit 7 */
unsigned char SegmentNumber; /* Byte 7 */
DAC960_SCSI_RequestSenseKey_T SenseKey:4; /* Byte 8 Bits 0-3 */
unsigned char :1; /* Byte 8 Bit 4 */
boolean ILI:1; /* Byte 8 Bit 5 */
boolean EOM:1; /* Byte 8 Bit 6 */
boolean Filemark:1; /* Byte 8 Bit 7 */
bool ILI:1; /* Byte 8 Bit 5 */
bool EOM:1; /* Byte 8 Bit 6 */
bool Filemark:1; /* Byte 8 Bit 7 */
unsigned char Information[4]; /* Bytes 9-12 */
unsigned char AdditionalSenseLength; /* Byte 13 */
unsigned char CommandSpecificInformation[4]; /* Bytes 14-17 */
......@@ -670,7 +663,7 @@ DAC960_V1_PhysicalDeviceState_T;
typedef struct DAC960_V1_DeviceState
{
boolean Present:1; /* Byte 0 Bit 0 */
bool Present:1; /* Byte 0 Bit 0 */
unsigned char :7; /* Byte 0 Bits 1-7 */
enum {
DAC960_V1_OtherType = 0x0,
......@@ -678,12 +671,12 @@ typedef struct DAC960_V1_DeviceState
DAC960_V1_SequentialType = 0x2,
DAC960_V1_CDROM_or_WORM_Type = 0x3
} __attribute__ ((packed)) DeviceType:2; /* Byte 1 Bits 0-1 */
boolean :1; /* Byte 1 Bit 2 */
boolean Fast20:1; /* Byte 1 Bit 3 */
boolean Sync:1; /* Byte 1 Bit 4 */
boolean Fast:1; /* Byte 1 Bit 5 */
boolean Wide:1; /* Byte 1 Bit 6 */
boolean TaggedQueuingSupported:1; /* Byte 1 Bit 7 */
bool :1; /* Byte 1 Bit 2 */
bool Fast20:1; /* Byte 1 Bit 3 */
bool Sync:1; /* Byte 1 Bit 4 */
bool Fast:1; /* Byte 1 Bit 5 */
bool Wide:1; /* Byte 1 Bit 6 */
bool TaggedQueuingSupported:1; /* Byte 1 Bit 7 */
DAC960_V1_PhysicalDeviceState_T DeviceState; /* Byte 2 */
unsigned char :8; /* Byte 3 */
unsigned char SynchronousMultiplier; /* Byte 4 */
......@@ -765,15 +758,15 @@ DAC960_V1_ErrorTable_T;
typedef struct DAC960_V1_Config2
{
unsigned char :1; /* Byte 0 Bit 0 */
boolean ActiveNegationEnabled:1; /* Byte 0 Bit 1 */
bool ActiveNegationEnabled:1; /* Byte 0 Bit 1 */
unsigned char :5; /* Byte 0 Bits 2-6 */
boolean NoRescanIfResetReceivedDuringScan:1; /* Byte 0 Bit 7 */
boolean StorageWorksSupportEnabled:1; /* Byte 1 Bit 0 */
boolean HewlettPackardSupportEnabled:1; /* Byte 1 Bit 1 */
boolean NoDisconnectOnFirstCommand:1; /* Byte 1 Bit 2 */
bool NoRescanIfResetReceivedDuringScan:1; /* Byte 0 Bit 7 */
bool StorageWorksSupportEnabled:1; /* Byte 1 Bit 0 */
bool HewlettPackardSupportEnabled:1; /* Byte 1 Bit 1 */
bool NoDisconnectOnFirstCommand:1; /* Byte 1 Bit 2 */
unsigned char :2; /* Byte 1 Bits 3-4 */
boolean AEMI_ARM:1; /* Byte 1 Bit 5 */
boolean AEMI_OFM:1; /* Byte 1 Bit 6 */
bool AEMI_ARM:1; /* Byte 1 Bit 5 */
bool AEMI_OFM:1; /* Byte 1 Bit 6 */
unsigned char :1; /* Byte 1 Bit 7 */
enum {
DAC960_V1_OEMID_Mylex = 0x00,
......@@ -787,13 +780,13 @@ typedef struct DAC960_V1_Config2
unsigned char PhysicalSector; /* Byte 4 */
unsigned char LogicalSector; /* Byte 5 */
unsigned char BlockFactor; /* Byte 6 */
boolean ReadAheadEnabled:1; /* Byte 7 Bit 0 */
boolean LowBIOSDelay:1; /* Byte 7 Bit 1 */
bool ReadAheadEnabled:1; /* Byte 7 Bit 0 */
bool LowBIOSDelay:1; /* Byte 7 Bit 1 */
unsigned char :2; /* Byte 7 Bits 2-3 */
boolean ReassignRestrictedToOneSector:1; /* Byte 7 Bit 4 */
bool ReassignRestrictedToOneSector:1; /* Byte 7 Bit 4 */
unsigned char :1; /* Byte 7 Bit 5 */
boolean ForceUnitAccessDuringWriteRecovery:1; /* Byte 7 Bit 6 */
boolean EnableLeftSymmetricRAID5Algorithm:1; /* Byte 7 Bit 7 */
bool ForceUnitAccessDuringWriteRecovery:1; /* Byte 7 Bit 6 */
bool EnableLeftSymmetricRAID5Algorithm:1; /* Byte 7 Bit 7 */
unsigned char DefaultRebuildRate; /* Byte 8 */
unsigned char :8; /* Byte 9 */
unsigned char BlocksPerCacheLine; /* Byte 10 */
......@@ -805,10 +798,10 @@ typedef struct DAC960_V1_Config2
DAC960_V1_Sync_5MHz = 0x2,
DAC960_V1_Sync_10or20MHz = 0x3 /* Byte 11 Bits 0-1 */
} __attribute__ ((packed)) Speed:2;
boolean Force8Bit:1; /* Byte 11 Bit 2 */
boolean DisableFast20:1; /* Byte 11 Bit 3 */
bool Force8Bit:1; /* Byte 11 Bit 2 */
bool DisableFast20:1; /* Byte 11 Bit 3 */
unsigned char :3; /* Byte 11 Bits 4-6 */
boolean EnableTaggedQueuing:1; /* Byte 11 Bit 7 */
bool EnableTaggedQueuing:1; /* Byte 11 Bit 7 */
} __attribute__ ((packed)) ChannelParameters[6]; /* Bytes 12-17 */
unsigned char SCSIInitiatorID; /* Byte 18 */
unsigned char :8; /* Byte 19 */
......@@ -819,8 +812,8 @@ typedef struct DAC960_V1_Config2
unsigned char SimultaneousDeviceSpinUpCount; /* Byte 21 */
unsigned char SecondsDelayBetweenSpinUps; /* Byte 22 */
unsigned char Reserved1[29]; /* Bytes 23-51 */
boolean BIOSDisabled:1; /* Byte 52 Bit 0 */
boolean CDROMBootEnabled:1; /* Byte 52 Bit 1 */
bool BIOSDisabled:1; /* Byte 52 Bit 0 */
bool CDROMBootEnabled:1; /* Byte 52 Bit 1 */
unsigned char :3; /* Byte 52 Bits 2-4 */
enum {
DAC960_V1_Geometry_128_32 = 0x0,
......@@ -849,7 +842,7 @@ typedef struct DAC960_V1_DCDB
DAC960_V1_DCDB_DataTransferSystemToDevice = 2,
DAC960_V1_DCDB_IllegalDataTransfer = 3
} __attribute__ ((packed)) Direction:2; /* Byte 1 Bits 0-1 */
boolean EarlyStatus:1; /* Byte 1 Bit 2 */
bool EarlyStatus:1; /* Byte 1 Bit 2 */
unsigned char :1; /* Byte 1 Bit 3 */
enum {
DAC960_V1_DCDB_Timeout_24_hours = 0,
......@@ -857,8 +850,8 @@ typedef struct DAC960_V1_DCDB
DAC960_V1_DCDB_Timeout_60_seconds = 2,
DAC960_V1_DCDB_Timeout_10_minutes = 3
} __attribute__ ((packed)) Timeout:2; /* Byte 1 Bits 4-5 */
boolean NoAutomaticRequestSense:1; /* Byte 1 Bit 6 */
boolean DisconnectPermitted:1; /* Byte 1 Bit 7 */
bool NoAutomaticRequestSense:1; /* Byte 1 Bit 6 */
bool DisconnectPermitted:1; /* Byte 1 Bit 7 */
unsigned short TransferLength; /* Bytes 2-3 */
DAC960_BusAddress32_T BusAddress; /* Bytes 4-7 */
unsigned char CDBLength:4; /* Byte 8 Bits 0-3 */
......@@ -920,7 +913,7 @@ typedef union DAC960_V1_CommandMailbox
DAC960_V1_CommandIdentifier_T CommandIdentifier; /* Byte 1 */
unsigned char Dummy1[5]; /* Bytes 2-6 */
unsigned char LogicalDriveNumber:6; /* Byte 7 Bits 0-6 */
boolean AutoRestore:1; /* Byte 7 Bit 7 */
bool AutoRestore:1; /* Byte 7 Bit 7 */
unsigned char Dummy2[8]; /* Bytes 8-15 */
} __attribute__ ((packed)) Type3C;
struct {
......@@ -1070,9 +1063,9 @@ typedef struct DAC960_V2_MemoryType
DAC960_V2_MemoryType_SDRAM = 0x04,
DAC960_V2_MemoryType_Last = 0x1F
} __attribute__ ((packed)) MemoryType:5; /* Byte 0 Bits 0-4 */
boolean :1; /* Byte 0 Bit 5 */
boolean MemoryParity:1; /* Byte 0 Bit 6 */
boolean MemoryECC:1; /* Byte 0 Bit 7 */
bool :1; /* Byte 0 Bit 5 */
bool MemoryParity:1; /* Byte 0 Bit 6 */
bool MemoryECC:1; /* Byte 0 Bit 7 */
}
DAC960_V2_MemoryType_T;
......@@ -1187,13 +1180,13 @@ typedef struct DAC960_V2_ControllerInfo
unsigned char OEM_Code; /* Byte 131 */
unsigned char VendorName[16]; /* Bytes 132-147 */
/* Other Physical/Controller/Operation Information */
boolean BBU_Present:1; /* Byte 148 Bit 0 */
boolean ActiveActiveClusteringMode:1; /* Byte 148 Bit 1 */
bool BBU_Present:1; /* Byte 148 Bit 0 */
bool ActiveActiveClusteringMode:1; /* Byte 148 Bit 1 */
unsigned char :6; /* Byte 148 Bits 2-7 */
unsigned char :8; /* Byte 149 */
unsigned short :16; /* Bytes 150-151 */
/* Physical Device Scan Information */
boolean PhysicalScanActive:1; /* Byte 152 Bit 0 */
bool PhysicalScanActive:1; /* Byte 152 Bit 0 */
unsigned char :7; /* Byte 152 Bits 1-7 */
unsigned char PhysicalDeviceChannelNumber; /* Byte 153 */
unsigned char PhysicalDeviceTargetID; /* Byte 154 */
......@@ -1305,8 +1298,8 @@ typedef struct DAC960_V2_ControllerInfo
unsigned int FreeIOP; /* Bytes 468-471 */
unsigned short MaximumCombLengthInBlocks; /* Bytes 472-473 */
unsigned short NumberOfConfigurationGroups; /* Bytes 474-475 */
boolean InstallationAbortStatus:1; /* Byte 476 Bit 0 */
boolean MaintenanceModeStatus:1; /* Byte 476 Bit 1 */
bool InstallationAbortStatus:1; /* Byte 476 Bit 0 */
bool MaintenanceModeStatus:1; /* Byte 476 Bit 1 */
unsigned int :24; /* Bytes 476-479 */
unsigned char Reserved10[32]; /* Bytes 480-511 */
unsigned char Reserved11[512]; /* Bytes 512-1023 */
......@@ -1357,33 +1350,33 @@ typedef struct DAC960_V2_LogicalDeviceInfo
DAC960_V2_IntelligentWriteCacheEnabled = 0x3,
DAC960_V2_WriteCache_Last = 0x7
} __attribute__ ((packed)) WriteCache:3; /* Byte 8 Bits 3-5 */
boolean :1; /* Byte 8 Bit 6 */
boolean LogicalDeviceInitialized:1; /* Byte 8 Bit 7 */
bool :1; /* Byte 8 Bit 6 */
bool LogicalDeviceInitialized:1; /* Byte 8 Bit 7 */
} LogicalDeviceControl; /* Byte 8 */
/* Logical Device Operations Status */
boolean ConsistencyCheckInProgress:1; /* Byte 9 Bit 0 */
boolean RebuildInProgress:1; /* Byte 9 Bit 1 */
boolean BackgroundInitializationInProgress:1; /* Byte 9 Bit 2 */
boolean ForegroundInitializationInProgress:1; /* Byte 9 Bit 3 */
boolean DataMigrationInProgress:1; /* Byte 9 Bit 4 */
boolean PatrolOperationInProgress:1; /* Byte 9 Bit 5 */
bool ConsistencyCheckInProgress:1; /* Byte 9 Bit 0 */
bool RebuildInProgress:1; /* Byte 9 Bit 1 */
bool BackgroundInitializationInProgress:1; /* Byte 9 Bit 2 */
bool ForegroundInitializationInProgress:1; /* Byte 9 Bit 3 */
bool DataMigrationInProgress:1; /* Byte 9 Bit 4 */
bool PatrolOperationInProgress:1; /* Byte 9 Bit 5 */
unsigned char :2; /* Byte 9 Bits 6-7 */
unsigned char RAID5WriteUpdate; /* Byte 10 */