summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-04-08 07:56:42 +0000
committerphk <phk@FreeBSD.org>1996-04-08 07:56:42 +0000
commit241c31412fae49e5ef43aa1bd0c628ae44986df1 (patch)
tree6eaa0e8dd1bc24e472b2fdcd64ce4b35cee2bf73 /sys
parenteacbf55fca6f712112fcc4492001415055fd7bd2 (diff)
downloadFreeBSD-src-241c31412fae49e5ef43aa1bd0c628ae44986df1.zip
FreeBSD-src-241c31412fae49e5ef43aa1bd0c628ae44986df1.tar.gz
Replace usage of buf->b_actf with queue.3 and buf->b_act.
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/isa/wcd.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/i386/isa/wcd.c b/sys/i386/isa/wcd.c
index b2b7b62..76e04c5 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));
OpenPOWER on IntegriCloud