diff options
author | sos <sos@FreeBSD.org> | 2005-03-31 15:05:40 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2005-03-31 15:05:40 +0000 |
commit | 372caa3813e5713c7917cd6f90078a45d2da71dd (patch) | |
tree | 0748406e400c9f20fecff6bc5b58c77e39c8beee /sys/dev/ata/ata_if.m | |
parent | 2510e6c031d747c3122063fca085c26d4a13c2cd (diff) | |
download | FreeBSD-src-372caa3813e5713c7917cd6f90078a45d2da71dd.zip FreeBSD-src-372caa3813e5713c7917cd6f90078a45d2da71dd.tar.gz |
Change the ata_* methods to use a channel device instead of a
controller device. This helps when there is no controller parent
to a channel (PPC port).
Diffstat (limited to 'sys/dev/ata/ata_if.m')
-rw-r--r-- | sys/dev/ata/ata_if.m | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/sys/dev/ata/ata_if.m b/sys/dev/ata/ata_if.m index b11734c..0f84447 100644 --- a/sys/dev/ata/ata_if.m +++ b/sys/dev/ata/ata_if.m @@ -41,24 +41,17 @@ INTERFACE ata; CODE { - static int ata_null_locking(device_t parent, device_t dev, int mode) + static int ata_null_locking(device_t dev, int mode) { struct ata_channel *ch = device_get_softc(dev); return ch->unit; } }; -METHOD void setmode { - device_t parent; - device_t dev; -}; - METHOD int locking { - device_t parent; - device_t dev; + device_t channel; int mode; } DEFAULT ata_null_locking; - HEADER { #define ATA_LF_LOCK 0x0001 #define ATA_LF_UNLOCK 0x0002 @@ -66,10 +59,16 @@ HEADER { }; METHOD void reset { - device_t parent; + device_t channel; +}; + +METHOD void setmode { + device_t channel; device_t dev; }; METHOD int reinit { device_t dev; }; + + |