summaryrefslogtreecommitdiffstats
path: root/sys/dev/aic
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-09-20 19:45:08 +0000
committerimp <imp@FreeBSD.org>2005-09-20 19:45:08 +0000
commit2b6cd2aa2caca5768eddb6ef156529db487519d4 (patch)
treeff57332cb6b58fc55e6bff300ecc1807f7cdcafa /sys/dev/aic
parent6f32a83956eb45545beaad3af83779ad714d5c8e (diff)
downloadFreeBSD-src-2b6cd2aa2caca5768eddb6ef156529db487519d4.zip
FreeBSD-src-2b6cd2aa2caca5768eddb6ef156529db487519d4.tar.gz
Eliminate support for oldcard by removing the compat shims.
Diffstat (limited to 'sys/dev/aic')
-rw-r--r--sys/dev/aic/aic_pccard.c31
1 files changed, 5 insertions, 26 deletions
diff --git a/sys/dev/aic/aic_pccard.c b/sys/dev/aic/aic_pccard.c
index 37e19a5..2ef0294 100644
--- a/sys/dev/aic/aic_pccard.c
+++ b/sys/dev/aic/aic_pccard.c
@@ -51,7 +51,6 @@ struct aic_pccard_softc {
static int aic_pccard_alloc_resources(device_t);
static void aic_pccard_release_resources(device_t);
-static int aic_pccard_match(device_t);
static int aic_pccard_probe(device_t);
static int aic_pccard_attach(device_t);
@@ -106,7 +105,7 @@ aic_pccard_release_resources(device_t dev)
}
static int
-aic_pccard_match(device_t dev)
+aic_pccard_probe(device_t dev)
{
const struct pccard_product *pp;
@@ -120,10 +119,11 @@ aic_pccard_match(device_t dev)
}
static int
-aic_pccard_probe(device_t dev)
+aic_pccard_attach(device_t dev)
{
struct aic_pccard_softc *sc = device_get_softc(dev);
struct aic_softc *aic = &sc->sc_aic;
+ int error;
if (aic_pccard_alloc_resources(dev))
return (ENXIO);
@@ -131,24 +131,8 @@ aic_pccard_probe(device_t dev)
aic_pccard_release_resources(dev);
return (ENXIO);
}
- aic_pccard_release_resources(dev);
device_set_desc(dev, "Adaptec 6260/6360 SCSI controller");
- return (0);
-}
-
-static int
-aic_pccard_attach(device_t dev)
-{
- struct aic_pccard_softc *sc = device_get_softc(dev);
- struct aic_softc *aic = &sc->sc_aic;
- int error;
-
- error = aic_pccard_alloc_resources(dev);
- if (error) {
- device_printf(dev, "resource allocation failed\n");
- return (error);
- }
error = aic_attach(aic);
if (error) {
@@ -191,15 +175,10 @@ aic_pccard_detach(device_t dev)
static device_method_t aic_pccard_methods[] = {
/* Device interface */
- DEVMETHOD(device_probe, pccard_compat_probe),
- DEVMETHOD(device_attach, pccard_compat_attach),
+ DEVMETHOD(device_probe, aic_pccard_probe),
+ DEVMETHOD(device_attach, aic_pccard_attach),
DEVMETHOD(device_detach, aic_pccard_detach),
- /* Card interface */
- DEVMETHOD(card_compat_match, aic_pccard_match),
- DEVMETHOD(card_compat_probe, aic_pccard_probe),
- DEVMETHOD(card_compat_attach, aic_pccard_attach),
-
{ 0, 0 }
};
OpenPOWER on IntegriCloud