summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/powermac/ata_macio.c
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2005-03-31 01:57:51 +0000
committergrehan <grehan@FreeBSD.org>2005-03-31 01:57:51 +0000
commitc68e3ffea65a5f0f259d8c7600671518cf66ad61 (patch)
tree9a3b681907ad25659724e450e2cb61077e11bac9 /sys/powerpc/powermac/ata_macio.c
parent1de10da09d0a6219c108d74a10aa9cf1ef6a7eeb (diff)
downloadFreeBSD-src-c68e3ffea65a5f0f259d8c7600671518cf66ad61.zip
FreeBSD-src-c68e3ffea65a5f0f259d8c7600671518cf66ad61.tar.gz
Catch up with ATA-mkIII
Diffstat (limited to 'sys/powerpc/powermac/ata_macio.c')
-rw-r--r--sys/powerpc/powermac/ata_macio.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/sys/powerpc/powermac/ata_macio.c b/sys/powerpc/powermac/ata_macio.c
index dde93a0..9be8399 100644
--- a/sys/powerpc/powermac/ata_macio.c
+++ b/sys/powerpc/powermac/ata_macio.c
@@ -79,22 +79,7 @@ static driver_t ata_macio_driver = {
};
DRIVER_MODULE(ata, macio, ata_macio_driver, ata_devclass, 0, 0);
-
-static int
-ata_macio_locknoop(struct ata_channel *ch, int type)
-{
-
- return (ch->unit);
-}
-
-static void
-ata_macio_setmode(struct ata_device *atadev, int mode)
-{
-#if 0
- atadev->mode = ata_limit_mode(atadev, mode, ATA_PIO_MAX);
-#endif
- atadev->mode = ATA_PIO;
-}
+MODULE_DEPEND(ata, ata, 1, 1, 1);
static int
ata_macio_probe(device_t dev)
@@ -130,9 +115,6 @@ ata_macio_probe(device_t dev)
ch->unit = 0;
ch->flags |= ATA_USE_16BIT;
- ch->locking = ata_macio_locknoop;
- ch->device[MASTER].setmode = ata_macio_setmode;
- ch->device[SLAVE].setmode = ata_macio_setmode;
ata_generic_hw(ch);
return (ata_probe(dev));
OpenPOWER on IntegriCloud