summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/psim
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2003-01-18 11:46:50 +0000
committergrehan <grehan@FreeBSD.org>2003-01-18 11:46:50 +0000
commit0d5519ef7a7bf5895fc59234b68fed9eabefbab4 (patch)
tree3709fbf2a70ff822c719516ed0282c8442a31f00 /sys/powerpc/psim
parent5bbadf161c28417b58e262f19981cdeb9d3caf4a (diff)
downloadFreeBSD-src-0d5519ef7a7bf5895fc59234b68fed9eabefbab4.zip
FreeBSD-src-0d5519ef7a7bf5895fc59234b68fed9eabefbab4.tar.gz
Removed unnecessary includes and brought up to date with ata
common code by adding lock functions.
Diffstat (limited to 'sys/powerpc/psim')
-rw-r--r--sys/powerpc/psim/ata_iobus.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/sys/powerpc/psim/ata_iobus.c b/sys/powerpc/psim/ata_iobus.c
index 692f618..737aae8 100644
--- a/sys/powerpc/psim/ata_iobus.c
+++ b/sys/powerpc/psim/ata_iobus.c
@@ -34,13 +34,9 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
-#include <sys/disk.h>
#include <sys/module.h>
#include <sys/bus.h>
-#include <sys/bio.h>
#include <sys/malloc.h>
-#include <sys/devicestat.h>
-#include <sys/sysctl.h>
#include <machine/stdarg.h>
#include <machine/resource.h>
#include <machine/bus.h>
@@ -233,12 +229,27 @@ 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)
{
struct ata_channel *ch = device_get_softc(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);
}
OpenPOWER on IntegriCloud