summaryrefslogtreecommitdiff
path: root/sys/dev/ic/siopvar_common.h
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2001-10-30 00:02:56 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2001-10-30 00:02:56 +0000
commit0bdf01ef3911c2367f75aa1b41acd68cb1ec2f19 (patch)
tree83ee2e6eafe8384d2e261cf385b0b2cb8f74cb1f /sys/dev/ic/siopvar_common.h
parent5f8631a0ce8f89528f5db8b2861bfe2d81e1f775 (diff)
From NetBSD: add __packed__ attribute to hardware structure that
lacked it (scr_table). Also remove scr_table_t typedef and just use 'struct scr_table' to be consistant with all other structures.
Diffstat (limited to 'sys/dev/ic/siopvar_common.h')
-rw-r--r--sys/dev/ic/siopvar_common.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/sys/dev/ic/siopvar_common.h b/sys/dev/ic/siopvar_common.h
index da286cd0926..a3cb9f9d86a 100644
--- a/sys/dev/ic/siopvar_common.h
+++ b/sys/dev/ic/siopvar_common.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: siopvar_common.h,v 1.7 2001/08/26 02:39:05 krw Exp $ */
+/* $OpenBSD: siopvar_common.h,v 1.8 2001/10/30 00:02:55 krw Exp $ */
/* $NetBSD: siopvar_common.h,v 1.10 2001/01/26 21:58:56 bouyer Exp $ */
/*
@@ -38,10 +38,10 @@
#endif
/* tables used by SCRIPT */
-typedef struct scr_table {
+struct scr_table {
u_int32_t count;
u_int32_t addr;
-} scr_table_t ;
+} __attribute__((__packed__));
/* Number of scatter/gather entries */
#define SIOP_NSG (MAXPHYS/NBPG + 1) /* XXX NBPG */
@@ -57,19 +57,19 @@ typedef struct scr_table {
* transfer.
*/
struct siop_xfer_common {
- u_int8_t msg_out[16]; /* 0 */
- u_int8_t msg_in[16]; /* 16 */
- u_int32_t status; /* 32 */
- u_int32_t pad1; /* 36 */
- u_int32_t id; /* 40 */
- u_int32_t pad2; /* 44 */
- scr_table_t t_msgin; /* 48 */
- scr_table_t t_extmsgin; /* 56 */
- scr_table_t t_extmsgdata; /* 64 */
- scr_table_t t_msgout; /* 72 */
- scr_table_t cmd; /* 80 */
- scr_table_t t_status; /* 88 */
- scr_table_t data[SIOP_NSG]; /* 96 */
+ u_int8_t msg_out[16]; /* 0 */
+ u_int8_t msg_in[16]; /* 16 */
+ u_int32_t status; /* 32 */
+ u_int32_t pad1; /* 36 */
+ u_int32_t id; /* 40 */
+ u_int32_t pad2; /* 44 */
+ struct scr_table t_msgin; /* 48 */
+ struct scr_table t_extmsgin; /* 56 */
+ struct scr_table t_extmsgdata; /* 64 */
+ struct scr_table t_msgout; /* 72 */
+ struct scr_table cmd; /* 80 */
+ struct scr_table t_status; /* 88 */
+ struct scr_table data[SIOP_NSG]; /* 96 */
} __attribute__((__packed__));
/* status can hold the SCSI_* status values, and 2 additional values: */