aboutsummaryrefslogtreecommitdiff
path: root/sys/pccard
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2001-08-25 22:45:45 +0000
committerWarner Losh <imp@FreeBSD.org>2001-08-25 22:45:45 +0000
commit1fa93154aac3dfa7e5f3172aaa85c3f87789ccd9 (patch)
treef3342a23f88c6eb7248b4f9cc6d6ca8cce1a40ec /sys/pccard
parentc98c9548b1643ec6da55a41a7f29abcfbda0c1ba (diff)
downloadsrc-1fa93154aac3dfa7e5f3172aaa85c3f87789ccd9.tar.gz
src-1fa93154aac3dfa7e5f3172aaa85c3f87789ccd9.zip
Back out the isa/pci string reporting. It may cause panics.
Notes
Notes: svn path=/head/; revision=82331
Diffstat (limited to 'sys/pccard')
-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 e60895cad36c..0e8d5920bc47 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);