summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-02-15 02:54:53 +0000
committerimp <imp@FreeBSD.org>2005-02-15 02:54:53 +0000
commitda48b1e0976e2f54b58eb7b5fa92bbc0f580e442 (patch)
treedb960ccdea2a2d3392c91da28ea7feda6ee0a51a /sys
parent30c3436e4adc33b59e2896a6584d549dd90dc1aa (diff)
downloadFreeBSD-src-da48b1e0976e2f54b58eb7b5fa92bbc0f580e442.zip
FreeBSD-src-da48b1e0976e2f54b58eb7b5fa92bbc0f580e442.tar.gz
Remove more deadwood that never got implemented in NEWCARD, since NEWCARD
went a different direction than was anticipated when these compatibility shims were added.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pccard/card_if.m15
-rw-r--r--sys/pccard/pccard_nbk.c16
2 files changed, 0 insertions, 31 deletions
diff --git a/sys/dev/pccard/card_if.m b/sys/dev/pccard/card_if.m
index 71c07d9..bd003e4 100644
--- a/sys/dev/pccard/card_if.m
+++ b/sys/dev/pccard/card_if.m
@@ -94,21 +94,6 @@ METHOD int detach_card {
}
#
-# Activates (and powers up if necessary) the card's nth function
-# since each function gets its own device, there is no need to
-# to specify a function number
-#
-METHOD int activate_function {
- device_t dev;
- device_t child;
-}
-
-METHOD int deactivate_function {
- device_t dev;
- device_t child;
-}
-
-#
# 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
diff --git a/sys/pccard/pccard_nbk.c b/sys/pccard/pccard_nbk.c
index 99b2122..3772ba8 100644
--- a/sys/pccard/pccard_nbk.c
+++ b/sys/pccard/pccard_nbk.c
@@ -381,20 +381,6 @@ pccard_get_memory_offset(device_t bus, device_t child, int rid,
}
#if __FreeBSD_version >= 500000
-static int
-pccard_activate_function(device_t bus, device_t child)
-{
- /* pccardd has alrady activated the function */
- return (0);
-}
-
-static int
-pccard_deactivate_function(device_t bus, device_t child)
-{
- /* pccardd will deactivate the function */
- return (0);
-}
-
static const struct pccard_product *
pccard_do_product_lookup(device_t bus, device_t dev,
const struct pccard_product *tab,
@@ -432,8 +418,6 @@ static device_method_t pccard_methods[] = {
DEVMETHOD(card_set_memory_offset, pccard_set_memory_offset),
DEVMETHOD(card_get_memory_offset, pccard_get_memory_offset),
#if __FreeBSD_version >= 500000
- DEVMETHOD(card_activate_function, pccard_activate_function),
- DEVMETHOD(card_deactivate_function, pccard_deactivate_function),
DEVMETHOD(card_compat_do_probe, pccard_compat_do_probe),
DEVMETHOD(card_compat_do_attach, pccard_compat_do_attach),
DEVMETHOD(card_do_product_lookup, pccard_do_product_lookup),
OpenPOWER on IntegriCloud