Fixed all the BusLogic structs, they should compile now.

This commit is contained in:
OBattler
2016-12-30 23:43:05 +01:00
parent 6165c13466
commit cf6f8ae155

View File

@@ -91,7 +91,7 @@ typedef struct __attribute__((packed))
* in host adapter RAM and contains several * in host adapter RAM and contains several
* configuration parameters. * configuration parameters.
*/ */
typedef struct AutoSCSIRam __attribute__((packed)) typedef struct __attribute__((packed)) AutoSCSIRam
{ {
uint8_t aInternalSignature[2]; uint8_t aInternalSignature[2];
uint8_t cbInformation; uint8_t cbInformation;
@@ -182,14 +182,14 @@ typedef union HostAdapterLocalRam
} HostAdapterLocalRam; } HostAdapterLocalRam;
/** Structure for the INQUIRE_SETUP_INFORMATION reply. */ /** Structure for the INQUIRE_SETUP_INFORMATION reply. */
typedef struct ReplyInquireSetupInformationSynchronousValue __attribute__((packed)) typedef struct __attribute__((packed)) ReplyInquireSetupInformationSynchronousValue
{ {
uint8_t uOffset : 4; uint8_t uOffset : 4;
uint8_t uTransferPeriod : 3; uint8_t uTransferPeriod : 3;
uint8_t fSynchronous : 1; uint8_t fSynchronous : 1;
}ReplyInquireSetupInformationSynchronousValue; }ReplyInquireSetupInformationSynchronousValue;
typedef struct ReplyInquireSetupInformation __attribute__((packed)) typedef struct __attribute__((packed)) ReplyInquireSetupInformation
{ {
uint8_t fSynchronousInitiationEnabled : 1; uint8_t fSynchronousInitiationEnabled : 1;
uint8_t fParityCheckingEnabled : 1; uint8_t fParityCheckingEnabled : 1;
@@ -215,7 +215,7 @@ typedef struct ReplyInquireSetupInformation __attribute__((packed))
/** Structure for the INQUIRE_EXTENDED_SETUP_INFORMATION. */ /** Structure for the INQUIRE_EXTENDED_SETUP_INFORMATION. */
#pragma pack(1) #pragma pack(1)
typedef struct ReplyInquireExtendedSetupInformation __attribute__((packed)) typedef struct __attribute__((packed)) ReplyInquireExtendedSetupInformation
{ {
uint8_t uBusType; uint8_t uBusType;
uint8_t uBiosAddress; uint8_t uBiosAddress;
@@ -237,14 +237,14 @@ typedef struct ReplyInquireExtendedSetupInformation __attribute__((packed))
} ReplyInquireExtendedSetupInformation; } ReplyInquireExtendedSetupInformation;
#pragma pack() #pragma pack()
typedef struct MailboxInit_t __attribute__((packed)) typedef struct __attribute__((packed)) MailboxInit_t
{ {
uint8_t Count; uint8_t Count;
addr24 Address; addr24 Address;
} MailboxInit_t; } MailboxInit_t;
#pragma pack(1) #pragma pack(1)
typedef struct MailboxInitExtended_t __attribute__((packed)) typedef struct __attribute__((packed)) MailboxInitExtended_t
{ {
uint8_t Count; uint8_t Count;
uint32_t Address; uint32_t Address;
@@ -282,13 +282,13 @@ typedef struct MailboxInitExtended_t __attribute__((packed))
#define MBI_NOT_FOUND 0x03 #define MBI_NOT_FOUND 0x03
#define MBI_ERROR 0x04 #define MBI_ERROR 0x04
typedef struct Mailbox_t __attribute__((packed)) typedef struct __attribute__((packed)) Mailbox_t
{ {
uint8_t CmdStatus; uint8_t CmdStatus;
addr24 CCBPointer; addr24 CCBPointer;
} Mailbox_t; } Mailbox_t;
typedef struct Mailbox32_t __attribute__((packed)) typedef struct __attribute__((packed)) Mailbox32_t
{ {
uint32_t CCBPointer; uint32_t CCBPointer;
union union
@@ -388,7 +388,7 @@ typedef struct Mailbox32_t __attribute__((packed))
// Bytes 18 through 18+n-1, where n=size of CDB Command Descriptor Block // Bytes 18 through 18+n-1, where n=size of CDB Command Descriptor Block
// //
typedef struct CCB32 __attribute__((packed)) typedef struct __attribute__((packed)) CCB32
{ {
uint8_t Opcode; uint8_t Opcode;
uint8_t Reserved1:3; uint8_t Reserved1:3;
@@ -411,7 +411,7 @@ typedef struct CCB32 __attribute__((packed))
uint32_t SensePointer; uint32_t SensePointer;
} CCB32; } CCB32;
typedef struct CCB __attribute__((packed)) typedef struct __attribute__((packed)) CCB
{ {
uint8_t Opcode; uint8_t Opcode;
uint8_t Lun:3; uint8_t Lun:3;
@@ -429,7 +429,7 @@ typedef struct CCB __attribute__((packed))
uint8_t Cdb[12]; uint8_t Cdb[12];
} CCB; } CCB;
typedef struct CCBC __attribute__((packed)) typedef struct __attribute__((packed)) CCBC
{ {
uint8_t Opcode; uint8_t Opcode;
uint8_t Pad1:3; uint8_t Pad1:3;
@@ -444,7 +444,7 @@ typedef struct CCBC __attribute__((packed))
uint8_t Cdb[12]; uint8_t Cdb[12];
} CCBC; } CCBC;
typedef union CCBU __attribute__((packed)) typedef union __attribute__((packed)) CCBU
{ {
CCB32 new; CCB32 new;
CCB old; CCB old;
@@ -463,19 +463,19 @@ typedef union CCBU __attribute__((packed))
#define MAX_SG_DESCRIPTORS 32 #define MAX_SG_DESCRIPTORS 32
typedef struct SGE32 __attribute__((packed)) typedef struct __attribute__((packed)) SGE32
{ {
uint32_t Segment; uint32_t Segment;
uint32_t SegmentPointer; uint32_t SegmentPointer;
} SGE32; } SGE32;
typedef struct SGE __attribute__((packed)) typedef struct __attribute__((packed)) SGE
{ {
addr24 Segment; addr24 Segment;
addr24 SegmentPointer; addr24 SegmentPointer;
} SGE; } SGE;
typedef struct BuslogicRequests_t __attribute__((packed)) typedef struct __attribute__((packed)) BuslogicRequests_t
{ {
CCBU CmdBlock; CCBU CmdBlock;
uint8_t *RequestSenseBuffer; uint8_t *RequestSenseBuffer;
@@ -485,7 +485,7 @@ typedef struct BuslogicRequests_t __attribute__((packed))
uint8_t LUN; uint8_t LUN;
} BuslogicRequests_t; } BuslogicRequests_t;
typedef struct Buslogic_t __attribute__((packed)) typedef struct __attribute__((packed)) Buslogic_t
{ {
rom_t bios; rom_t bios;
int UseLocalRam; int UseLocalRam;