summaryrefslogtreecommitdiff
path: root/sys/dev/ic/i82596reg.h
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-01-12 22:56:04 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-01-12 22:56:04 +0000
commit4b0a161ecc4d696a3d7fa13619f7f00ffaf6689b (patch)
tree1b2ad49551b35f4d7352248450270fea5b5e5f88 /sys/dev/ic/i82596reg.h
parentdbabc3fdbb986896588a3dc63cb226d128cbf15b (diff)
this is an ugly quick hack, but it works; theo helped (;
Diffstat (limited to 'sys/dev/ic/i82596reg.h')
-rw-r--r--sys/dev/ic/i82596reg.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/ic/i82596reg.h b/sys/dev/ic/i82596reg.h
index 72039f1156e..ef025ba8a77 100644
--- a/sys/dev/ic/i82596reg.h
+++ b/sys/dev/ic/i82596reg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: i82596reg.h,v 1.1 1999/08/15 23:49:30 mickey Exp $ */
+/* $OpenBSD: i82596reg.h,v 1.2 2001/01/12 22:56:03 mickey Exp $ */
/* $NetBSD: i82586reg.h,v 1.7 1998/02/28 01:07:45 pk Exp $ */
/*-
@@ -84,6 +84,7 @@
* We use integer offsets exclusively to access the i82586/596 data structures.
*/
+#pragma pack(1)
/*
* This is the master configuration block.
@@ -96,7 +97,7 @@ struct __ie_sys_conf_ptr {
u_int32_t ie_iscp_ptr; // 24-bit physaddr of ISCP
};
*/
-#define IE_SCP_SZ 12
+#define IE_SCP_SZ 12 /* keep paragraph alignment */
#define IE_SCP_BUS_USE(base) ((base) + 2)
#define IE_SCP_TEST(base) ((base) + 4)
#define IE_SCP_ISCP(base) ((base) + 8)
@@ -119,7 +120,7 @@ struct __ie_int_sys_conf_ptr {
caddr_t ie_base; // 24-bit physaddr for all 16-bit vars
};
*/
-#define IE_ISCP_SZ 8
+#define IE_ISCP_SZ 16
#define IE_ISCP_BUSY(base) ((base) + 0)
#define IE_ISCP_SCB(base) ((base) + 2)
#define IE_ISCP_BASE(base) ((base) + 4)
@@ -457,3 +458,5 @@ struct __ie_config_cmd {
#define IE_CMD_CFG_CRSCDT(base) ((base) + IE_CMD_COMMON_SZ + 9)
#define IE_CMD_CFG_MINLEN(base) ((base) + IE_CMD_COMMON_SZ + 10)
#define IE_CMD_CFG_JUNK(base) ((base) + IE_CMD_COMMON_SZ + 11)
+
+#pragma pack()