diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-08-24 18:53:37 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-08-24 18:53:37 +0000 |
commit | 5c30426fdd12585a4a8f121761c5560851faee78 (patch) | |
tree | 4425a9e37097e4a9df685579012aac7b228324ce /sys/arch/hppa/dev | |
parent | 8ac0fa55a6d3d02f052572fc12f54a560046a3ab (diff) |
Correct eisa i/o ports layout structure, this has probably been broken
when switching from gcc 2.95, if not forever.
Diffstat (limited to 'sys/arch/hppa/dev')
-rw-r--r-- | sys/arch/hppa/dev/mongoosereg.h | 38 |
1 files changed, 14 insertions, 24 deletions
diff --git a/sys/arch/hppa/dev/mongoosereg.h b/sys/arch/hppa/dev/mongoosereg.h index dc3a02a3732..5d6a3a6ce77 100644 --- a/sys/arch/hppa/dev/mongoosereg.h +++ b/sys/arch/hppa/dev/mongoosereg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mongoosereg.h,v 1.1 2004/10/29 20:23:37 miod Exp $ */ +/* $OpenBSD: mongoosereg.h,v 1.2 2008/08/24 18:53:36 miod Exp $ */ /* * Copyright (c) 1998-2003 Michael Shalayeff @@ -42,8 +42,8 @@ struct mongoose_regs { struct mongoose_ctrl { struct dma0 { struct { - u_int32_t addr : 8; - u_int32_t count: 8; + u_int16_t addr : 8; + u_int16_t count: 8; } ch[4]; u_int8_t command; u_int8_t request; @@ -53,7 +53,7 @@ struct mongoose_ctrl { u_int8_t master_clear; u_int8_t mask_clear; u_int8_t master_write; - u_int8_t pad[8]; + u_int8_t pad[15]; } dma0; u_int8_t irr0; /* 0x20 */ @@ -95,27 +95,17 @@ struct mongoose_ctrl { struct dma1 { struct { - u_int32_t addr : 8; - u_int32_t pad0 : 8; - u_int32_t count: 8; - u_int32_t pad1 : 8; + u_int32_t addr : 16; + u_int32_t count: 16; } ch[4]; - u_int8_t command; - u_int8_t pad0; - u_int8_t request; - u_int8_t pad1; - u_int8_t mask_channel; - u_int8_t pad2; - u_int8_t mode; - u_int8_t pad3; - u_int8_t clr_byte_ptr; - u_int8_t pad4; - u_int8_t master_clear; - u_int8_t pad5; - u_int8_t mask_clear; - u_int8_t pad6; - u_int8_t master_write; - u_int8_t pad7; + u_int16_t command; + u_int16_t request; + u_int16_t mask_channel; + u_int16_t mode; + u_int16_t clr_byte_ptr; + u_int16_t master_clear; + u_int16_t mask_clear; + u_int16_t master_write; } dma1; /* 0xc0 */ u_int8_t master_req; /* 0xe0 master request register */ |