summaryrefslogtreecommitdiffstats
path: root/sys/isa/isa_common.h
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1999-09-01 20:53:43 +0000
committerdfr <dfr@FreeBSD.org>1999-09-01 20:53:43 +0000
commitf351c4f3dc1d761f44335d85fee57eb133919756 (patch)
treef5d858916a67aca8a86dac46559341c270c6d087 /sys/isa/isa_common.h
parentc93ae1166c126cfb59736d68f475ad5948708da7 (diff)
downloadFreeBSD-src-f351c4f3dc1d761f44335d85fee57eb133919756.zip
FreeBSD-src-f351c4f3dc1d761f44335d85fee57eb133919756.tar.gz
This represents essentially a complete rewrite of the ISA PnP code. The
new system is integrated with the ISA bus code more cleanly and allows the future addition of more enumerators such as PnPBIOS and ACPI. This commit also enables the new pcm driver since it is somewhat tied to the new PnP code.
Diffstat (limited to 'sys/isa/isa_common.h')
-rw-r--r--sys/isa/isa_common.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/isa/isa_common.h b/sys/isa/isa_common.h
index c63f1ef..4a104fe 100644
--- a/sys/isa/isa_common.h
+++ b/sys/isa/isa_common.h
@@ -36,6 +36,16 @@
MALLOC_DECLARE(M_ISADEV);
/*
+ * PNP configurations are kept in a tailq.
+ */
+TAILQ_HEAD(isa_config_list, isa_config_entry);
+struct isa_config_entry {
+ TAILQ_ENTRY(isa_config_entry) ice_link;
+ int ice_priority;
+ struct isa_config ice_config;
+};
+
+/*
* The structure used to attach devices to the isa bus.
*/
struct isa_device {
@@ -45,6 +55,9 @@ struct isa_device {
u_int32_t id_serial; /* pnp serial */
u_int32_t id_logicalid; /* pnp logical device id */
u_int32_t id_compatid; /* pnp compat device id */
+ struct isa_config_list id_configs; /* pnp config alternatives */
+ isa_config_cb *id_config_cb; /* callback function */
+ void *id_config_arg; /* callback argument */
};
#define DEVTOISA(dev) ((struct isa_device *) device_get_ivars(dev))
OpenPOWER on IntegriCloud