summaryrefslogtreecommitdiffstats
path: root/sys/isa
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2004-12-07 05:30:02 +0000
committerimp <imp@FreeBSD.org>2004-12-07 05:30:02 +0000
commitefea860c4db3921a3439bc51884aee1bba29f1b5 (patch)
treec925ccf77e1760b7d1e29afe3346453816eadf52 /sys/isa
parent1d9d717d90bc5f2ce231923df922057f25ce332f (diff)
downloadFreeBSD-src-efea860c4db3921a3439bc51884aee1bba29f1b5.zip
FreeBSD-src-efea860c4db3921a3439bc51884aee1bba29f1b5.tar.gz
PNP BIOS devices are fundamentally different than ISA PNP devices.
These devices should be probed first because they are at fixed locations and cannot be turned off. ISA PNP devices, on the other hand, can be turned off and often can be flexible in the resources they use. Probe them last, as always.
Diffstat (limited to 'sys/isa')
-rw-r--r--sys/isa/isavar.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/sys/isa/isavar.h b/sys/isa/isavar.h
index 811a721..57fad23 100644
--- a/sys/isa/isavar.h
+++ b/sys/isa/isavar.h
@@ -39,15 +39,16 @@ typedef void isa_config_cb(void *arg, struct isa_config *config, int enable);
#ifdef _KERNEL
/*
- * ISA devices are partially ordered to ensure that devices which are
- * sensitive to other driver probe routines are probed first. Plug and
- * Play devices are added after devices with speculative probes so that
- * the legacy hardware can claim resources allowing the Plug and Play
- * hardware to choose different resources.
+ * ISA devices are partially ordered. This is to ensure that hardwired
+ * devices the BIOS tells us are there appear first, then speculative
+ * devices that are sensitive to the probe order, then devices that
+ * are hinted to be there, then the most flexible devices which support
+ * the ISA bus PNP standard.
*/
-#define ISA_ORDER_SENSITIVE 0 /* legacy sensitive hardware */
-#define ISA_ORDER_SPECULATIVE 1 /* legacy non-sensitive hardware */
-#define ISA_ORDER_PNP 2 /* plug-and-play hardware */
+#define ISA_ORDER_PNPBIOS 10 /* plug-and-play BIOS inflexible hardware */
+#define ISA_ORDER_SENSITIVE 20 /* legacy sensitive hardware */
+#define ISA_ORDER_SPECULATIVE 30 /* legacy non-sensitive hardware */
+#define ISA_ORDER_PNP 40 /* plug-and-play hardware */
/*
* Limits on resources that we can manage
OpenPOWER on IntegriCloud