From 5d9f4871f607780822cfe94063cf3fc76daaed6e Mon Sep 17 00:00:00 2001 From: grehan Date: Sat, 18 Jan 2003 11:46:50 +0000 Subject: [PATCH] Removed unnecessary includes and brought up to date with ata common code by adding lock functions. --- sys/powerpc/psim/ata_iobus.c | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/sys/powerpc/psim/ata_iobus.c b/sys/powerpc/psim/ata_iobus.c index 692f6186fa0b..737aae859e15 100644 --- a/sys/powerpc/psim/ata_iobus.c +++ b/sys/powerpc/psim/ata_iobus.c @@ -34,13 +34,9 @@ #include #include #include -#include #include #include -#include #include -#include -#include #include #include #include @@ -232,6 +228,18 @@ static driver_t ata_iobus_sub_driver = { DRIVER_MODULE(ata, ataiobus, ata_iobus_sub_driver, ata_devclass, 0, 0); +static int +ata_iobus_intrnoop(struct ata_channel *ch) +{ + + return (1); +} + +static void +ata_iobus_locknoop(struct ata_channel *ch, int type) +{ +} + static int ata_iobus_sub_probe(device_t dev) { @@ -239,6 +247,9 @@ ata_iobus_sub_probe(device_t dev) /* Only a single unit per controller thus far */ ch->unit = 0; + ch->flags = (ATA_USE_16BIT|ATA_NO_SLAVE); + ch->intr_func = ata_iobus_intrnoop; + ch->lock_func = ata_iobus_locknoop; return ata_probe(dev); }