summaryrefslogtreecommitdiffstats
path: root/sys/pccard
diff options
context:
space:
mode:
authorsilby <silby@FreeBSD.org>2003-10-21 18:28:36 +0000
committersilby <silby@FreeBSD.org>2003-10-21 18:28:36 +0000
commitf0e686a675daa6e2c0de834b5fd380d875dd680b (patch)
treed7f74385af1b21c4660c768322a0bb7af0ce2ecc /sys/pccard
parent62679efced213b5b06e18e51dfd87813b839f95a (diff)
downloadFreeBSD-src-f0e686a675daa6e2c0de834b5fd380d875dd680b.zip
FreeBSD-src-f0e686a675daa6e2c0de834b5fd380d875dd680b.tar.gz
Change all SYSCTLS which are readonly and have a related TUNABLE
from CTLFLAG_RD to CTLFLAG_RDTUN so that sysctl(8) can provide more useful error messages.
Diffstat (limited to 'sys/pccard')
-rw-r--r--sys/pccard/pcic.c6
-rw-r--r--sys/pccard/pcic_pci.c12
2 files changed, 9 insertions, 9 deletions
diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c
index 3290abe..8e6677c 100644
--- a/sys/pccard/pcic.c
+++ b/sys/pccard/pcic.c
@@ -86,13 +86,13 @@ SYSCTL_NODE(_hw, OID_AUTO, pcic, CTLFLAG_RD, 0, "PCIC parameters");
int pcic_override_irq = 0;
TUNABLE_INT("machdep.pccard.pcic_irq", &pcic_override_irq);
TUNABLE_INT("hw.pcic.irq", &pcic_override_irq);
-SYSCTL_INT(_hw_pcic, OID_AUTO, irq, CTLFLAG_RD,
+SYSCTL_INT(_hw_pcic, OID_AUTO, irq, CTLFLAG_RDTUN,
&pcic_override_irq, 0,
"Override the IRQ configured by the config system for all pcic devices");
int pcic_boot_deactivated = 0;
TUNABLE_INT("hw.pcic.boot_deactivated", &pcic_boot_deactivated);
-SYSCTL_INT(_hw_pcic, OID_AUTO, boot_deactivated, CTLFLAG_RD,
+SYSCTL_INT(_hw_pcic, OID_AUTO, boot_deactivated, CTLFLAG_RDTUN,
&pcic_boot_deactivated, 0,
"Override the automatic powering up of pccards at boot. This works\n\
around what turns out to be an old bug in the code that has since been\n\
@@ -107,7 +107,7 @@ FreeBSD 4.8.");
*/
int pcic_pd6722_vsense = 1;
TUNABLE_INT("hw.pcic.pd6722_vsense", &pcic_pd6722_vsense);
-SYSCTL_INT(_hw_pcic, OID_AUTO, pd6722_vsense, CTLFLAG_RD,
+SYSCTL_INT(_hw_pcic, OID_AUTO, pd6722_vsense, CTLFLAG_RDTUN,
&pcic_pd6722_vsense, 1,
"Select CL-PD6722's VSENSE method. VSENSE is used to determine the\n\
volatage of inserted cards. The CL-PD6722 has two methods to determine the\n\
diff --git a/sys/pccard/pcic_pci.c b/sys/pccard/pcic_pci.c
index b2182e1..c145f92 100644
--- a/sys/pccard/pcic_pci.c
+++ b/sys/pccard/pcic_pci.c
@@ -65,7 +65,7 @@ SYSCTL_DECL(_hw_pcic);
static int pcic_ignore_function_1 = 0;
TUNABLE_INT("hw.pcic.ignore_function_1", &pcic_ignore_function_1);
-SYSCTL_INT(_hw_pcic, OID_AUTO, ignore_function_1, CTLFLAG_RD,
+SYSCTL_INT(_hw_pcic, OID_AUTO, ignore_function_1, CTLFLAG_RDTUN,
&pcic_ignore_function_1, 0,
"When set, driver ignores pci function 1 of the bridge. This option\n\
is obsolete and will be deleted before FreeBSD 4.8.");
@@ -78,7 +78,7 @@ is obsolete and will be deleted before FreeBSD 4.8.");
*/
static int pcic_intr_path = (int)pcic_iw_pci;
TUNABLE_INT("hw.pcic.intr_path", &pcic_intr_path);
-SYSCTL_INT(_hw_pcic, OID_AUTO, intr_path, CTLFLAG_RD, &pcic_intr_path, 0,
+SYSCTL_INT(_hw_pcic, OID_AUTO, intr_path, CTLFLAG_RDTUN, &pcic_intr_path, 0,
"Which path to send the interrupts over. Normally interrupts for\n\
cardbus bridges are routed over the PCI bus (2). However, some laptops\n\
will hang when using PCI interrupts due to bugs in this code. Those\n\
@@ -86,7 +86,7 @@ bugs can be worked around by forcings ISA interrupts (1).");
static int pcic_init_routing = 0;
TUNABLE_INT("hw.pcic.init_routing", &pcic_init_routing);
-SYSCTL_INT(_hw_pcic, OID_AUTO, init_routing, CTLFLAG_RD,
+SYSCTL_INT(_hw_pcic, OID_AUTO, init_routing, CTLFLAG_RDTUN,
&pcic_init_routing, 0,
"Force the interrupt routing to be initialized on those bridges where\n\
doing so will cause probelms. This is very rare and generally is not\n\
@@ -97,7 +97,7 @@ and will be deleted before FreeBSD 4.8.");
static int pcic_ignore_pci = 0;
TUNABLE_INT("hw.pcic.ignore_pci", &pcic_ignore_pci);
-SYSCTL_INT(_hw_pcic, OID_AUTO, ignore_pci, CTLFLAG_RD,
+SYSCTL_INT(_hw_pcic, OID_AUTO, ignore_pci, CTLFLAG_RDTUN,
&pcic_ignore_pci, 0,
"When set, driver ignores pci cardbus bridges it would otherwise claim.\n\
Generally speaking, this option is not needed for anything other than as an\n\
@@ -105,7 +105,7 @@ aid in debugging.");
static int pcic_pd6729_intr_path = (int)pcic_iw_isa;
TUNABLE_INT("hw.pcic.pd6729_intr_path", &pcic_pd6729_intr_path);
-SYSCTL_INT(_hw_pcic, OID_AUTO, pd6729_intr_path, CTLFLAG_RD,
+SYSCTL_INT(_hw_pcic, OID_AUTO, pd6729_intr_path, CTLFLAG_RDTUN,
&pcic_pd6729_intr_path, 0,
"Determine the interrupt path or method for Cirrus Logic PD6729 and\n\
similar I/O space based pcmcia bridge. Chips on a PCI expansion card need\n\
@@ -115,7 +115,7 @@ that it can default to ISA when intr_path defaults to PCI.");
static int pcic_ti12xx_enable_pci_clock = 0;
TUNABLE_INT("hw.pcic.ti12xx_enable_pci_clock", &pcic_ti12xx_enable_pci_clock);
-SYSCTL_INT(_hw_pcic, OID_AUTO, ti12xx_enable_pci_clock, CTLFLAG_RD,
+SYSCTL_INT(_hw_pcic, OID_AUTO, ti12xx_enable_pci_clock, CTLFLAG_RDTUN,
&pcic_ti12xx_enable_pci_clock, 0,
"Some TI-12xx parts need to have the PCI clock enabled. These designs do\n\
not provide a clock themselves. Most of the reference boards have the\n\
OpenPOWER on IntegriCloud