From bbc7db47c64cec240079db9bb373438bd94d3fed Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Fri, 7 Apr 2006 16:10:15 +0000 Subject: Add register offsets. Borrowed from FreeBSD. --- sys/dev/ic/mfireg.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'sys/dev') 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 * @@ -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 -- cgit v1.2.3