diff options
author | glebius <glebius@FreeBSD.org> | 2005-09-20 10:25:51 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2005-09-20 10:25:51 +0000 |
commit | 1afa264ae145a35275be9961d356b33e24d38cbc (patch) | |
tree | 5e49a18eec3621134aeba0eaae90e30cc9717e8c /sys/dev | |
parent | 8448d393fa29035f10fb826d685e9b2cc5d6171d (diff) | |
download | FreeBSD-src-1afa264ae145a35275be9961d356b33e24d38cbc.zip FreeBSD-src-1afa264ae145a35275be9961d356b33e24d38cbc.tar.gz |
Fix build.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pccard/pccard_cis_quirks.c | 1 | ||||
-rw-r--r-- | sys/dev/pccard/pccardvar.h | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sys/dev/pccard/pccard_cis_quirks.c b/sys/dev/pccard/pccard_cis_quirks.c index 596bfdb..57e8b4a 100644 --- a/sys/dev/pccard/pccard_cis_quirks.c +++ b/sys/dev/pccard/pccard_cis_quirks.c @@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$"); #include <dev/pccard/pccard_cis.h> #include <dev/pccard/pccardvar.h> +#include <dev/pccard/pccardvarp.h> #include "pccarddevs.h" diff --git a/sys/dev/pccard/pccardvar.h b/sys/dev/pccard/pccardvar.h index bde6b46..bb29734 100644 --- a/sys/dev/pccard/pccardvar.h +++ b/sys/dev/pccard/pccardvar.h @@ -144,6 +144,19 @@ pccard_product_lookup(device_t dev, const struct pccard_product *tab, (STAILQ_FIRST(&(sc)->card.pf_head) && \ STAILQ_NEXT(STAILQ_FIRST(&(sc)->card.pf_head),pf_list)) +/* compat layer */ +static __inline int +pccard_compat_probe(device_t dev) +{ + return (CARD_COMPAT_DO_PROBE(device_get_parent(dev), dev)); +} + +static __inline int +pccard_compat_attach(device_t dev) +{ + return (CARD_COMPAT_DO_ATTACH(device_get_parent(dev), dev)); +} + /* Convenience functions */ static __inline int |