summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppbus/ppi.c
diff options
context:
space:
mode:
authornsouch <nsouch@FreeBSD.org>2000-01-14 08:03:15 +0000
committernsouch <nsouch@FreeBSD.org>2000-01-14 08:03:15 +0000
commitcafa4ad045e9a9718cecb3e3fbcf9f9ede6a9128 (patch)
treec0c15f42b8495355bc2acd4b0b135f869d227dc3 /sys/dev/ppbus/ppi.c
parente64b0936669b3bf0aec407f8786d3bd095f941ff (diff)
downloadFreeBSD-src-cafa4ad045e9a9718cecb3e3fbcf9f9ede6a9128.zip
FreeBSD-src-cafa4ad045e9a9718cecb3e3fbcf9f9ede6a9128.tar.gz
ppi needs to use a bus method to get this rather than peering inside the
1284 stuff. Submitted by: Peter Wemm <peter@netplex.com.au>
Diffstat (limited to 'sys/dev/ppbus/ppi.c')
-rw-r--r--sys/dev/ppbus/ppi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ppbus/ppi.c b/sys/dev/ppbus/ppi.c
index bd0a638..0143654 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");
OpenPOWER on IntegriCloud