summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-06-26 18:12:21 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-06-26 18:12:21 +0000
commit989450b1bff0f90ab71e253c215cdc79a7f895df (patch)
tree210017a6abd26d41bb97819ec4f064f2294aacca /sys
parenta1172c97c51945bd4aa450c57dc5dd440538c98b (diff)
Hey, what did ya expect... more reg defs?
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/lofnreg.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/pci/lofnreg.h b/sys/dev/pci/lofnreg.h
index 055fb3caf25..975a83e04e1 100644
--- a/sys/dev/pci/lofnreg.h
+++ b/sys/dev/pci/lofnreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: lofnreg.h,v 1.7 2001/06/26 16:34:48 jason Exp $ */
+/* $OpenBSD: lofnreg.h,v 1.8 2001/06/26 18:12:20 jason Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -92,3 +92,11 @@
#define LOFN_CFG2_PRCENA 0x00000002 /* Processor enable */
#define LOFN_CHIPID_MASK 0x0000ffff /* Chip ID */
+
+#define LOFN_REGADDR(win,r,idx) \
+ ((win) | \
+ (((r) << LOFN_REG_SHIFT) & LOFN_REG_MASK) | \
+ (((idx) << LOFN_WORD_SHIFT) & LOFN_WORD_MASK))
+
+#define LOFN_LENADDR(win,r) \
+ ((win) | (((r) << 2) + LOFN_REL_LEN))