summaryrefslogtreecommitdiffstats
path: root/sys/boot/common
diff options
context:
space:
mode:
authordcs <dcs@FreeBSD.org>2000-09-08 16:51:29 +0000
committerdcs <dcs@FreeBSD.org>2000-09-08 16:51:29 +0000
commit2f010215ab9018b7878196362777a391a6320e68 (patch)
tree6bd647b153104af27e0bd2cbc1570a299a9f231d /sys/boot/common
parent475f83c70ca2a39eacdb9dfe774681a8e8c2f305 (diff)
downloadFreeBSD-src-2f010215ab9018b7878196362777a391a6320e68.zip
FreeBSD-src-2f010215ab9018b7878196362777a391a6320e68.tar.gz
Make the pnp structure a global variable, so it can be used elsewhere.
Diffstat (limited to 'sys/boot/common')
-rw-r--r--sys/boot/common/bootstrap.h4
-rw-r--r--sys/boot/common/pnp.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sys/boot/common/bootstrap.h b/sys/boot/common/bootstrap.h
index 31ac87a..81f65c8 100644
--- a/sys/boot/common/bootstrap.h
+++ b/sys/boot/common/bootstrap.h
@@ -138,6 +138,10 @@ struct pnpinfo
STAILQ_ENTRY(pnpinfo) pi_link;
};
+STAILQ_HEAD(pnpinfo_stql, pnpinfo);
+
+extern struct pnpinfo_stql pnp_devices;
+
extern struct pnphandler *pnphandlers[]; /* provided by MD code */
void pnp_addident(struct pnpinfo *pi, char *ident);
diff --git a/sys/boot/common/pnp.c b/sys/boot/common/pnp.c
index b859529..7b6e7ad 100644
--- a/sys/boot/common/pnp.c
+++ b/sys/boot/common/pnp.c
@@ -15,7 +15,7 @@
#include <string.h>
#include <bootstrap.h>
-STAILQ_HEAD(,pnpinfo) pnp_devices;
+struct pnpinfo_stql pnp_devices;
static int pnp_devices_initted = 0;
static void pnp_discard(void);
OpenPOWER on IntegriCloud