Author: joerg
Date: Fri Dec 10 22:20:11 2010
New Revision: 216364
URL: http://svn.freebsd.org/changeset/base/216364

Log:
  Implement more of __ibsta: END and SRQI status bits (taken out of the
  uPD7210 IRQ status).
  
  MFC after:    1 week

Modified:
  head/sys/dev/ieee488/ibfoo.c

Modified: head/sys/dev/ieee488/ibfoo.c
==============================================================================
--- head/sys/dev/ieee488/ibfoo.c        Fri Dec 10 21:45:10 2010        
(r216363)
+++ head/sys/dev/ieee488/ibfoo.c        Fri Dec 10 22:20:11 2010        
(r216364)
@@ -333,6 +333,14 @@ gpib_ib_wait_xfer(struct upd7210 *u, str
                        break;
                }
        }
+       if ((u->rreg[ISR1] & IXR1_ENDRX) != 0) {
+               ib->ap->__retval |= END;
+               ib->ap->__ibsta |= END;
+       }
+       if ((u->rreg[ISR2] & IXR2_SRQI) != 0) {
+               ib->ap->__retval |= SRQI;
+               ib->ap->__ibsta |= SRQI;
+       }
        ib->mode = BUSY;
        ib->buf = NULL;
        upd7210_wr(u, IMR1, 0);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to