From 055b2f7fc838130f27e3537a46aec897d7fc2249 Mon Sep 17 00:00:00 2001 From: David Collins Date: Sat, 8 Sep 2007 02:53:09 +0000 Subject: Add nvram external hw config defines. ok marco@ --- sys/dev/pci/qlireg.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys/dev/pci') 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 * Copyright (c) 2007 David Collins @@ -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) -- cgit v1.2.3