diff options
| author | Nicolas Souchu <nsouch@FreeBSD.org> | 2000-01-14 08:03:15 +0000 |
|---|---|---|
| committer | Nicolas Souchu <nsouch@FreeBSD.org> | 2000-01-14 08:03:15 +0000 |
| commit | bdcee5cff66ac3ccfbec20fb0e2a9424434ed349 (patch) | |
| tree | 7d3873a16d2c831c2f67261c268df8788573d163 /sys/dev/ppbus/ppi.c | |
| parent | 45b8027e2561cce06fd27a8d9ef1c836685e2bad (diff) | |
Notes
Diffstat (limited to 'sys/dev/ppbus/ppi.c')
| -rw-r--r-- | sys/dev/ppbus/ppi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ppbus/ppi.c b/sys/dev/ppbus/ppi.c index bd0a63833810..01436543b167 100644 --- a/sys/dev/ppbus/ppi.c +++ b/sys/dev/ppbus/ppi.c @@ -464,10 +464,10 @@ ppiwrite(dev_t dev, struct uio *uio, int ioflag) /* we have to be peripheral to be able to send data, so * wait for the appropriate state */ - if (ppb->state < PPB_PERIPHERAL_NEGOCIATION) + if (ppb_1284_get_state(ppbus) < PPB_PERIPHERAL_NEGOCIATION) ppb_1284_terminate(ppbus); - while (ppb->state != PPB_PERIPHERAL_IDLE) { + while (ppb_1284_get_state(ppbus) != PPB_PERIPHERAL_IDLE) { /* XXX should check a variable before sleeping */ #ifdef DEBUG_1284 printf("s"); |
