summaryrefslogtreecommitdiffstats
path: root/sys/pccard/pcic.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-07-27 16:07:02 +0000
committerimp <imp@FreeBSD.org>2001-07-27 16:07:02 +0000
commit0774b50fdd3657530f23ba08438e7072c25f0f85 (patch)
tree44939be1e53ff7bff551cf88e3e5f0348a5cf7f8 /sys/pccard/pcic.c
parent3251a5505e0084ffee944472fe2a47fddf16cb08 (diff)
downloadFreeBSD-src-0774b50fdd3657530f23ba08438e7072c25f0f85.zip
FreeBSD-src-0774b50fdd3657530f23ba08438e7072c25f0f85.tar.gz
Introduce two new tunables from the boot loader.
hw.pcic.irq Globally set the IRQ for all pcic devices' management interrupt (aka card status change or CSC interrupt) This is what used to be known as machdep.pccard.pcic_irq (which has been retained for now for compatibility). hw.pcic.ignore_fuction_1 Ignores function 1 for all PCIC bridges by not attaching to them. Lucent released a huge batch of cards that were imporperly manufactuered (lacking the 0 ohm resister to disable slot 1). This is a big hammer to keep those cards from causing problems (I've had 4 people contact me saying my patches worked great once they added a kludge to always ignore function 1, or until they soldered these resistors in place!). No clue where to document these. They act as both boot loader environment variables, as well as read-only sysctls after boot. At the same time, sort sys/systm.h in its proper order after sys/sysctl.h.
Diffstat (limited to 'sys/pccard/pcic.c')
-rw-r--r--sys/pccard/pcic.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c
index 397ab63..05da095 100644
--- a/sys/pccard/pcic.c
+++ b/sys/pccard/pcic.c
@@ -32,9 +32,10 @@
#include <sys/param.h>
#include <sys/bus.h>
-#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/module.h>
+#include <sys/sysctl.h>
+#include <sys/systm.h>
#include <pccard/i82365.h>
#include <pccard/pcic_pci.h>
@@ -76,6 +77,9 @@ static struct slot_ctrl pcic_cinfo = {
PCIC_IO_WIN
};
+/* sysctl vars */
+SYSCTL_NODE(_hw, OID_AUTO, pcic, CTLFLAG_RD, 0, "PCIC parameters");
+
/*
* Read a register from the PCIC.
*/
OpenPOWER on IntegriCloud