summaryrefslogtreecommitdiffstats
path: root/sys/pccard/pcic_pci.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-08-25 22:45:45 +0000
committerimp <imp@FreeBSD.org>2001-08-25 22:45:45 +0000
commita0e9d4b186cb99ee7c87443bd66a2d431629482f (patch)
treef3342a23f88c6eb7248b4f9cc6d6ca8cce1a40ec /sys/pccard/pcic_pci.c
parentac3158572a9066aa97cfd2aed6fca86a9044582c (diff)
downloadFreeBSD-src-a0e9d4b186cb99ee7c87443bd66a2d431629482f.zip
FreeBSD-src-a0e9d4b186cb99ee7c87443bd66a2d431629482f.tar.gz
Back out the isa/pci string reporting. It may cause panics.
Diffstat (limited to 'sys/pccard/pcic_pci.c')
-rw-r--r--sys/pccard/pcic_pci.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/sys/pccard/pcic_pci.c b/sys/pccard/pcic_pci.c
index e60895c..0e8d592 100644
--- a/sys/pccard/pcic_pci.c
+++ b/sys/pccard/pcic_pci.c
@@ -75,23 +75,8 @@ SYSCTL_INT(_hw_pcic, OID_AUTO, ignore_function_1, CTLFLAG_RD,
*/
static int pcic_intr_path = (int)pcic_iw_pci;
TUNABLE_INT("hw.pcic.intr_path", &pcic_intr_path);
-
-static int
-sysctl_hw_pcic_intr_path(SYSCTL_HANDLER_ARGS)
-{
- char type[4];
- int error;
-
- if (pcic_intr_path == pcic_iw_isa)
- strcpy(type, "isa");
- else
- strcpy(type, "pci");
- error = sysctl_handle_string(oidp, type, sizeof(type), req);
- return (error);
-}
-
-SYSCTL_PROC(_hw_pcic, OID_AUTO, intr_path, CTLTYPE_STRING | CTLFLAG_RD, 0, 0,
- sysctl_hw_pcic_intr_path, "A", "Which path to send the interrupts over.");
+SYSCTL_INT(_hw_pcic, OID_AUTO, intr_path, CTLFLAG_RD, &pcic_intr_path, 0
+ "Which path to send the interrupts over.");
static int pcic_init_routing = 0;
TUNABLE_INT("hw.pcic.init_routing", &pcic_init_routing);
OpenPOWER on IntegriCloud