diff options
author | marius <marius@FreeBSD.org> | 2006-06-12 21:07:13 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2006-06-12 21:07:13 +0000 |
commit | 9e60ac43b5ce3518ef71ac90c67969eec3282762 (patch) | |
tree | da4439ea5709e5618e109faeee8993d3a0aa0ad5 /sys/isa | |
parent | ec7a44920791ea14b9eb51468503285eaf116c8a (diff) | |
download | FreeBSD-src-9e60ac43b5ce3518ef71ac90c67969eec3282762.zip FreeBSD-src-9e60ac43b5ce3518ef71ac90c67969eec3282762.tar.gz |
Make the ISAPNP code optional and only enable it on i386 and pc98 (used
for CBUS-PNP cards there) by default, as there are no amd64 and sparc64
machines with ISA slots and which therefore could make use of this code
known to exist. For sparc64 this additionally allows to get rid of the
compat shims for in{b,w,l}()/out{b,w,l}() etc and the associated hacks.
OK'ed by: imp, peter
Diffstat (limited to 'sys/isa')
-rw-r--r-- | sys/isa/isa_common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/isa/isa_common.c b/sys/isa/isa_common.c index f824c4d..72de76c 100644 --- a/sys/isa/isa_common.c +++ b/sys/isa/isa_common.c @@ -60,6 +60,8 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include "opt_isa.h" + #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> @@ -652,8 +654,10 @@ isa_print_all_resources(device_t dev) retval += resource_list_print_type(rl, "drq", SYS_RES_DRQ, "%ld"); if (device_get_flags(dev)) retval += printf(" flags %#x", device_get_flags(dev)); +#ifdef ISAPNP if (idev->id_vendorid) retval += printf(" pnpid %s", pnp_eisaformat(idev->id_vendorid)); +#endif return (retval); } @@ -1062,11 +1066,13 @@ static int isa_child_pnpinfo_str(device_t bus, device_t child, char *buf, size_t buflen) { +#ifdef ISAPNP struct isa_device *idev = DEVTOISA(child); if (idev->id_vendorid) snprintf(buf, buflen, "pnpid=%s", pnp_eisaformat(idev->id_vendorid)); +#endif return (0); } |