summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorDavid Collins <davec@cvs.openbsd.org>2007-09-08 02:53:09 +0000
committerDavid Collins <davec@cvs.openbsd.org>2007-09-08 02:53:09 +0000
commit055b2f7fc838130f27e3537a46aec897d7fc2249 (patch)
tree84fc88278db9df3e0946e16103792070bc0b6f7e /sys/dev/pci
parentbb39015d0a8d5724dce9cfa838e853ee8ab06475 (diff)
Add nvram external hw config defines. ok marco@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/qlireg.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/pci/qlireg.h b/sys/dev/pci/qlireg.h
index 15f42a51f91..777d2df4348 100644
--- a/sys/dev/pci/qlireg.h
+++ b/sys/dev/pci/qlireg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: qlireg.h,v 1.5 2007/09/06 03:55:19 davec Exp $ */
+/* $OpenBSD: qlireg.h,v 1.6 2007/09/08 02:53:08 davec Exp $ */
/*
* Copyright (c) 2007 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2007 David Collins <dave@davec.name>
@@ -444,3 +444,9 @@ struct qli_reg {
QLI_NVRAM_NUM_ADDR_BITS_4022)
#define QLI_NVRAM_NUM_DATA_BITS (0x10)
+
+#define QLI_NVRAM_EXT_HW_CFG_4010 (0xc)
+#define QLI_NVRAM_EXT_HW_CFG_4022 (0x14)
+#define QLI_NVRAM_EXT_HW_CFG(s) (s->sc_ql4010 ? \
+ QLI_NVRAM_EXT_HW_CFG_4010 : \
+ QLI_NVRAM_EXT_HW_CFG_4022)