diff options
author | alfred <alfred@FreeBSD.org> | 2002-09-23 18:54:32 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-09-23 18:54:32 +0000 |
commit | ac315391ceb9f2631fcaa72a6ab3da6255a6598d (patch) | |
tree | 8158103cc2a98a399f6b85e558005d61c5a4bb29 /sys/dev/twe | |
parent | 5dc0248605e168960cde445de06c93cf34d5030b (diff) | |
download | FreeBSD-src-ac315391ceb9f2631fcaa72a6ab3da6255a6598d.zip FreeBSD-src-ac315391ceb9f2631fcaa72a6ab3da6255a6598d.tar.gz |
use __packed.
Diffstat (limited to 'sys/dev/twe')
-rw-r--r-- | sys/dev/twe/twereg.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/sys/dev/twe/twereg.h b/sys/dev/twe/twereg.h index 12ce0d6..f139021 100644 --- a/sys/dev/twe/twereg.h +++ b/sys/dev/twe/twereg.h @@ -160,7 +160,7 @@ typedef struct { u_int32_t address; u_int32_t length; -} TWE_SG_Entry __attribute__ ((packed)); +} TWE_SG_Entry __packed; typedef struct { u_int8_t opcode:5; /* TWE_OP_INITCONNECTION */ @@ -173,7 +173,7 @@ typedef struct { u_int8_t flags; u_int16_t message_credits; u_int32_t response_queue_pointer; -} TWE_Command_INITCONNECTION __attribute__ ((packed)); +} TWE_Command_INITCONNECTION __packed; typedef struct { @@ -188,7 +188,7 @@ typedef struct u_int16_t block_count; u_int32_t lba; TWE_SG_Entry sgl[TWE_MAX_SGL_LENGTH]; -} TWE_Command_IO __attribute__ ((packed)); +} TWE_Command_IO __packed; typedef struct { @@ -205,7 +205,7 @@ typedef struct #define TWE_OP_HOTSWAP_ADD_CBOD 0x01 /* add CBOD to empty port */ #define TWE_OP_HOTSWAP_ADD_SPARE 0x02 /* add spare to empty port */ u_int8_t aport; -} TWE_Command_HOTSWAP __attribute__ ((packed)); +} TWE_Command_HOTSWAP __packed; typedef struct { @@ -223,7 +223,7 @@ typedef struct u_int8_t feature_mode; u_int16_t all_units; u_int16_t persistence; -} TWE_Command_SETATAFEATURE __attribute__ ((packed)); +} TWE_Command_SETATAFEATURE __packed; typedef struct { @@ -236,7 +236,7 @@ typedef struct u_int8_t status; u_int8_t flags; u_int16_t target_status; /* set low byte to target request's ID */ -} TWE_Command_CHECKSTATUS __attribute__ ((packed)); +} TWE_Command_CHECKSTATUS __packed; typedef struct { @@ -250,7 +250,7 @@ typedef struct u_int8_t flags; u_int16_t param_count; TWE_SG_Entry sgl[TWE_MAX_SGL_LENGTH]; -} TWE_Command_PARAM __attribute__ ((packed)); +} TWE_Command_PARAM __packed; typedef struct { @@ -269,7 +269,7 @@ typedef struct #define TWE_OP_REBUILDUNIT_STARTUNIT 5 /* rebuild src_unit (not supported) */ u_int8_t cs:1; /* request state change on src_unit */ u_int8_t logical_subunit; /* for RAID10 rebuild of logical subunit */ -} TWE_Command_REBUILDUNIT __attribute__ ((packed)); +} TWE_Command_REBUILDUNIT __packed; typedef struct { @@ -289,7 +289,7 @@ typedef struct u_int8_t drive_head; u_int8_t command; TWE_SG_Entry sgl[TWE_MAX_ATA_SGL_LENGTH]; -} TWE_Command_ATA __attribute__ ((packed)); +} TWE_Command_ATA __packed; typedef struct { @@ -307,7 +307,7 @@ typedef struct #define TWE_FLAGS_FATAL 0x03 #define TWE_FLAGS_PERCENTAGE (1<<8) /* bits 0-6 indicate completion percentage */ u_int16_t count; /* block count, parameter count, message credits */ -} TWE_Command_Generic __attribute__ ((packed)); +} TWE_Command_Generic __packed; /* command packet - must be TWE_ALIGNMENT aligned */ typedef union @@ -451,7 +451,7 @@ typedef struct u_int8_t log_drv_num; /* must be zero for configuration == 0x0f */ u_int32_t start_lba; u_int32_t block_count; /* actual drive size if configuration == 0x0f, otherwise less DCB size */ -} TWE_Unit_Descriptor __attribute__ ((packed)); +} TWE_Unit_Descriptor __packed; typedef struct { @@ -459,7 +459,7 @@ typedef struct u_int8_t res1; u_int8_t mirunit_status[4]; /* bitmap of functional subunits in each mirror */ u_int8_t res2[6]; -} TWE_Mirror_Descriptor __attribute__ ((packed)); +} TWE_Mirror_Descriptor __packed; typedef struct { @@ -480,7 +480,7 @@ typedef struct u_int32_t start_lba; u_int32_t block_count; /* actual drive size if configuration == 0x0f, otherwise less DCB size */ TWE_Unit_Descriptor subunit[0]; /* subunit descriptors, in RAID10 mode is [mirunit][subunit] */ -} TWE_Array_Descriptor __attribute__ ((packed)); +} TWE_Array_Descriptor __packed; typedef struct { @@ -488,5 +488,5 @@ typedef struct u_int8_t parameter_id; u_int8_t parameter_size_bytes; u_int8_t data[0]; -} TWE_Param __attribute__ ((packed)); +} TWE_Param __packed; |