summaryrefslogtreecommitdiffstats
path: root/sys/dev/pccard
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-09-25 01:39:04 +0000
committerimp <imp@FreeBSD.org>2005-09-25 01:39:04 +0000
commit20b5ed686057365a67abd0c9ed104f39e30f9865 (patch)
treec065d3f2696e99b48731d84c57a0815899c20af7 /sys/dev/pccard
parentd3a04605bc6607308db59e0eb14469d4cef8636d (diff)
downloadFreeBSD-src-20b5ed686057365a67abd0c9ed104f39e30f9865.zip
FreeBSD-src-20b5ed686057365a67abd0c9ed104f39e30f9865.tar.gz
Remove OLDCARD vestiges from here
Diffstat (limited to 'sys/dev/pccard')
-rw-r--r--sys/dev/pccard/card_if.m60
1 files changed, 0 insertions, 60 deletions
diff --git a/sys/dev/pccard/card_if.m b/sys/dev/pccard/card_if.m
index 434389e..3cf814c 100644
--- a/sys/dev/pccard/card_if.m
+++ b/sys/dev/pccard/card_if.m
@@ -32,9 +32,6 @@
INTERFACE card;
-# WARNING: THIS FILE IS USED BY BOTH OLDCARD AND NEWCARD. MAKE SURE
-# YOU TEST BOTH KERNELS IF CHANGING THIS FILE.
-
#
# Companion interface for pccard. We need to set attributes for memory
# and i/o port mappings (as well as other types of attributes) that have
@@ -94,63 +91,6 @@ METHOD int detach_card {
}
#
-# Compatibility methods for OLDCARD drivers. We use these routines to make
-# it possible to call the OLDCARD driver's probe routine in the context that
-# it expects. For OLDCARD these are implemented as pass throughs to the
-# device_{probe,attach} routines. For NEWCARD they are implemented such
-# such that probe becomes strictly a matching routine and attach does both
-# the old probe and old attach.
-#
-# compat devices should use the following:
-#
-# /* Device interface */
-# DEVMETHOD(device_probe), pccard_compat_probe),
-# DEVMETHOD(device_attach), pccard_compat_attach),
-# /* Card interface */
-# DEVMETHOD(card_compat_match, foo_match), /* newly written */
-# DEVMETHOD(card_compat_probe, foo_probe), /* old probe */
-# DEVMETHOD(card_compat_attach, foo_attach), /* old attach */
-#
-# This will allow a single driver binary image to be used for both
-# OLDCARD and NEWCARD.
-#
-# Drivers wishing to not retain OLDCARD compatibility needn't do this.
-#
-# The compat_do_* versions are so that we can make the pccard_compat_probe
-# and _attach static lines and have the bus system pick the right version
-# to use so we don't enshrine pccard_* symbols in the driver's module.
-#
-METHOD int compat_probe {
- device_t dev;
-}
-
-METHOD int compat_attach {
- device_t dev;
-}
-
-CODE {
- static int null_do_probe(device_t bus, device_t dev)
- {
- return (CARD_COMPAT_DO_PROBE(device_get_parent(bus), dev));
- }
-
- static int null_do_attach(device_t bus, device_t dev)
- {
- return (CARD_COMPAT_DO_ATTACH(device_get_parent(bus), dev));
- }
-}
-
-METHOD int compat_do_probe {
- device_t bus;
- device_t dev;
-} DEFAULT null_do_probe;
-
-METHOD int compat_do_attach {
- device_t bus;
- device_t dev;
-} DEFAULT null_do_attach;
-
-#
# Find "dev" in the passed table of devices. Return it or NULL.
#
METHOD struct pccard_product * do_product_lookup {
OpenPOWER on IntegriCloud