aboutsummaryrefslogtreecommitdiff
path: root/sys/isa
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-12-23 06:49:27 +0000
committerWarner Losh <imp@FreeBSD.org>2017-12-23 06:49:27 +0000
commit5fe4723c701cae7118f3293d9d1f173dcbb062a2 (patch)
tree9eeff1b9bafbcfc16e23bfd7dee10d6701f3c9c2 /sys/isa
parent75d037476586d8d42eeea701166b20d847c48455 (diff)
Create a new ISA_PNP_INFO macro. Use this macro every where we have
ISA PNP card support (replace by hand version in if_ed). Move module declarations to the end of some files. Fix PCCARD_PNP_INFO to use nitems(). Remove some stale comments about pc98, turns out the comment was simply wrong.
Notes
svn path=/head/; revision=327102
Diffstat (limited to 'sys/isa')
-rw-r--r--sys/isa/isavar.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/isa/isavar.h b/sys/isa/isavar.h
index cc3ce95b41d1..329db19879a2 100644
--- a/sys/isa/isavar.h
+++ b/sys/isa/isavar.h
@@ -140,6 +140,10 @@ enum isa_device_ivars {
#define ISACFGATTR_DYNAMIC (1 << 1) /* dynamic configuration */
#define ISACFGATTR_HINTS (1 << 3) /* source of config is hints */
+#define ISA_PNP_DESCR "E:pnpid;D:#"
+#define ISA_PNP_INFO(t) \
+ MODULE_PNP_INFO(ISA_PNP_DESCR, pccard, t, t, sizeof(t[0]), nitems(t) - 1); \
+
/*
* Simplified accessors for isa devices
*/