summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/pnp.h
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>1997-09-19 15:20:25 +0000
committerjmg <jmg@FreeBSD.org>1997-09-19 15:20:25 +0000
commit6d02356368490b36d701bc5fb7890e9067455af6 (patch)
treec77448d1e5d64b378a6a357ea83bd3d091c10da2 /sys/i386/isa/pnp.h
parentd3d13402b907e7b1ab063873cf2b80a7fcdb71ba (diff)
downloadFreeBSD-src-6d02356368490b36d701bc5fb7890e9067455af6.zip
FreeBSD-src-6d02356368490b36d701bc5fb7890e9067455af6.tar.gz
teach pnp to keep isa_device structs around, and teach isa.c how to scan
these structs for conflics... it still exist that two PnP cards can colide, but this is up to the user to make sure it doesn't happen... other modifications to pnp.c to format output properly, and hide more output behind bootverbose flag... fix some bugons in pnp.h that would of made it difficult for inclusion in external programs (for import of pnpinfo)
Diffstat (limited to 'sys/i386/isa/pnp.h')
-rw-r--r--sys/i386/isa/pnp.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/sys/i386/isa/pnp.h b/sys/i386/isa/pnp.h
index 5cea0c2..29acd02 100644
--- a/sys/i386/isa/pnp.h
+++ b/sys/i386/isa/pnp.h
@@ -29,11 +29,9 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: pnp.h,v 1.1 1997/09/09 12:31:58 jmg Exp $
+ * $Id: pnp.h,v 1.2 1997/09/18 08:04:13 jmg Exp $
*/
-#include <i386/isa/isa_device.h>
-
#ifndef _I386_ISA_PNP_H_
#define _I386_ISA_PNP_H_
@@ -230,6 +228,10 @@
#define _32BIT_FIXED_LOC_DESC 0x6
#define LG_RES_RESERVED 0x7-0x7f
+#ifdef KERNEL
+
+#include <i386/isa/isa_device.h>
+
/*
* pnp_cinfo contains Configuration Information. They are used
* to communicate to the device driver the actual configuration
@@ -263,7 +265,6 @@ struct pnp_device {
struct isa_device *dev);
u_long *pd_count;
u_int *imask ;
- struct isa_device dev ;
};
struct _pnp_id {
@@ -272,9 +273,14 @@ struct _pnp_id {
u_char checksum;
} ;
-#ifdef KERNEL
+struct pnp_dlist_node {
+ struct pnp_device *pnp;
+ struct isa_device dev;
+ struct pnp_dlist_node *next;
+};
typedef struct _pnp_id pnp_id;
+extern struct pnp_dlist_node *pnp_device_list;
extern pnp_id pnp_devices[MAX_PNP_CARDS];
extern struct pnp_cinfo pnp_ldn_overrides[MAX_PNP_LDN];
extern int pnp_overrides_valid;
OpenPOWER on IntegriCloud