diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2006-04-07 16:10:15 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2006-04-07 16:10:15 +0000 |
commit | bbc7db47c64cec240079db9bb373438bd94d3fed (patch) | |
tree | e31218d7cba19f4d2ba8d47e1a1bbbcbd5ee4d82 /sys | |
parent | 377dfcb8f58ea4cd2032705f117460da7e17ea82 (diff) |
Add register offsets. Borrowed from FreeBSD.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/mfireg.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/dev/ic/mfireg.h b/sys/dev/ic/mfireg.h index d85c9240e04..13a8e42bbae 100644 --- a/sys/dev/ic/mfireg.h +++ b/sys/dev/ic/mfireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mfireg.h,v 1.2 2006/04/06 22:43:57 marco Exp $ */ +/* $OpenBSD: mfireg.h,v 1.3 2006/04/07 16:10:14 marco Exp $ */ /* * Copyright (c) 2006 Marco Peereboom <marco@peereboom.us> * @@ -18,6 +18,20 @@ #define MFI_FRAME_SIZE 64 +/* register offsets */ +#define MFI_IMSG0 0x10 /* inbound msg 0 */ +#define MFI_IMSG1 0x14 /* inbound msg 1 */ +#define MFI_OMSG0 0x18 /* outbound msg 0 */ +#define MFI_OMSG1 0x1c /* outbound msg 1 */ +#define MFI_IDB 0x20 /* inbound doorbell */ +#define MFI_ISTS 0x24 /* inbound intr stat */ +#define MFI_IMSK 0x28 /* inbound intr mask */ +#define MFI_ODB 0x2c /* outbound doorbell */ +#define MFI_OSTS 0x30 /* outbound intr stat */ +#define MFI_OMSK 0x34 /* outbound inter mask */ +#define MFI_IQP 0x40 /* inbound queue port */ +#define MFI_OQP 0x44 /* outbound queue port */ + /* * firmware states */ #define MFI_STATE_MASK 0xf0000000 #define MFI_STATE_UNDEFINED 0x00000000 |