diff options
Diffstat (limited to 'sys/dev/ic/vgareg.h')
-rw-r--r-- | sys/dev/ic/vgareg.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sys/dev/ic/vgareg.h b/sys/dev/ic/vgareg.h index b151b63eaa5..bcaee1c3059 100644 --- a/sys/dev/ic/vgareg.h +++ b/sys/dev/ic/vgareg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vgareg.h,v 1.3 2004/04/02 04:39:50 deraadt Exp $ */ +/* $OpenBSD: vgareg.h,v 1.4 2008/09/01 17:30:56 deraadt Exp $ */ /* $NetBSD: vgareg.h,v 1.2 1998/05/28 16:48:41 drochner Exp $ */ /* @@ -27,20 +27,18 @@ * */ -#pragma pack(1) - struct reg_vgaattr { /* indexed via port 0x3c0 */ u_int8_t palette[16]; u_int8_t mode, overscan, colplen, horpixpan; u_int8_t colreset, misc; -}; +} __packed; #define VGA_ATC_INDEX 0 #define VGA_ATC_DATAW 0 #define VGA_ATC_DATAR 1 struct reg_vgats { /* indexed via port 0x3c4 */ u_int8_t syncreset, mode, wrplmask, fontsel, memmode; -}; +} __packed; #define VGA_TS_INDEX 4 #define VGA_TS_DATA 5 @@ -48,8 +46,6 @@ struct reg_vgagdc { /* indexed via port 0x3ce */ u_int8_t setres, ensetres, colorcomp, rotfunc; u_int8_t rdplanesel, mode, misc, colorcare; u_int8_t bitmask; -}; +} __packed; #define VGA_GDC_INDEX 0xe #define VGA_GDC_DATA 0xf - -#pragma pack() |