diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1996-04-08 07:56:42 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1996-04-08 07:56:42 +0000 |
commit | a925b654ee9da829bb4e7f999014a02ceb89ad20 (patch) | |
tree | 6eaa0e8dd1bc24e472b2fdcd64ce4b35cee2bf73 /sys/i386/isa/wcd.c | |
parent | b96b6bb1e6a2fe5beba1a66cb3d3b0b2ecd0c00f (diff) |
Replace usage of buf->b_actf with queue.3 and buf->b_act.
Notes
Notes:
svn path=/head/; revision=15141
Diffstat (limited to 'sys/i386/isa/wcd.c')
-rw-r--r-- | sys/i386/isa/wcd.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/i386/isa/wcd.c b/sys/i386/isa/wcd.c index b2b7b6242968..76e04c52f96a 100644 --- a/sys/i386/isa/wcd.c +++ b/sys/i386/isa/wcd.c @@ -215,7 +215,7 @@ struct wcd { int lun; /* Logical device unit */ int flags; /* Device state flags */ int refcnt; /* The number of raw opens */ - struct buf queue; /* Queue of i/o requests */ + struct buf_queue_head buf_queue; /* Queue of i/o requests */ struct atapi_params *param; /* Drive parameters table */ struct toc toc; /* Table of disc contents */ struct volinfo info; /* Volume size info */ @@ -437,7 +437,6 @@ wcd_open (dev_t dev, int rawflag) { int lun = UNIT(dev); struct wcd *t; - struct atapires result; /* Check that the device number is legal * and the ATAPI driver is loaded. */ @@ -534,7 +533,7 @@ void wcdstrategy (struct buf *bp) x = splbio(); /* Place it in the queue of disk activities for this disk. */ - disksort (&t->queue, bp); + tqdisksort (&t->buf_queue, bp); /* Tell the device to get going on the transfer if it's * not doing anything, otherwise just wait for completion. */ @@ -552,7 +551,7 @@ void wcdstrategy (struct buf *bp) */ static void wcd_start (struct wcd *t) { - struct buf *bp = t->queue.b_actf; + struct buf *bp = TAILQ_FIRST(&t->buf_queue); u_long blkno, nblk; /* See if there is a buf to do and we are not already doing one. */ @@ -560,7 +559,7 @@ static void wcd_start (struct wcd *t) return; /* Unqueue the request. */ - t->queue.b_actf = bp->b_actf; + TAILQ_REMOVE(&t->buf_queue, bp, b_act); /* Should reject all queued entries if media have changed. */ if (t->flags & F_MEDIA_CHANGED) { @@ -668,7 +667,6 @@ int wcdioctl (dev_t dev, int cmd, caddr_t addr, int flag, struct proc *p) { int lun = UNIT(dev); struct wcd *t = wcdtab[lun]; - struct atapires result; int error = 0; if (t->flags & F_MEDIA_CHANGED) @@ -963,7 +961,7 @@ int wcdioctl (dev_t dev, int cmd, caddr_t addr, int flag, struct proc *p) */ static int wcd_read_toc (struct wcd *t) { - int ntracks, len, i; + int ntracks, len; struct atapires result; bzero (&t->toc, sizeof (t->toc)); |