diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-05-07 07:03:47 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-05-07 07:03:47 +0000 |
| commit | c48d17750f93a0c73afe5ac7d5ec2ce0093a4407 (patch) | |
| tree | 65710ea07c28c20ceb403a0816d633a6e691c978 /sys/dev/ata/atapi-fd.c | |
| parent | e244fe31d6789109d257d572331deeb0b6125118 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ata/atapi-fd.c')
| -rw-r--r-- | sys/dev/ata/atapi-fd.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/sys/dev/ata/atapi-fd.c b/sys/dev/ata/atapi-fd.c index 8d5469b866ed..41f92cf68eb5 100644 --- a/sys/dev/ata/atapi-fd.c +++ b/sys/dev/ata/atapi-fd.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: atapi-fd.c,v 1.4 1999/03/28 18:57:19 sos Exp $ + * $Id: atapi-fd.c,v 1.5 1999/04/10 18:53:35 sos Exp $ */ #include "ata.h" @@ -58,8 +58,6 @@ static d_open_t afdopen; static d_close_t afdclose; -static d_read_t afdread; -static d_write_t afdwrite; static d_ioctl_t afdioctl; static d_strategy_t afdstrategy; @@ -67,7 +65,7 @@ static d_strategy_t afdstrategy; #define CDEV_MAJOR 118 static struct cdevsw afd_cdevsw = { - afdopen, afdclose, afdread, afdwrite, + afdopen, afdclose, physread, physwrite, afdioctl, nostop, nullreset, nodevtotty, seltrue, nommap, afdstrategy, "afd", NULL, -1, nodump, nopsize, @@ -238,18 +236,6 @@ afdclose(dev_t dev, int32_t flags, int32_t fmt, struct proc *p) return 0; } -static int -afdread(dev_t dev, struct uio *uio, int32_t ioflag) -{ - return physio(afdstrategy, NULL, dev, 1, minphys, uio); -} - -static int -afdwrite(dev_t dev, struct uio *uio, int32_t ioflag) -{ - return physio(afdstrategy, NULL, dev, 0, minphys, uio); -} - static int afdioctl(dev_t dev, u_long cmd, caddr_t addr, int32_t flag, struct proc *p) { |
