diff options
author | Marc Balmer <mbalmer@cvs.openbsd.org> | 2008-07-05 14:41:29 +0000 |
---|---|---|
committer | Marc Balmer <mbalmer@cvs.openbsd.org> | 2008-07-05 14:41:29 +0000 |
commit | 770455b7c55c272a513fd3a2f17b560528e19365 (patch) | |
tree | 356ccbc3f1c70177790d5d2e47fc3ef5614a9cc5 /sys/dev/usb/uftdireg.h | |
parent | e6409c1a812d935c88546497454f59c9226d0d53 (diff) |
Fix a comment: Code defines FTDI_SIO_GET_STATUS, use that in
comments, not FTDI_SIO_GET_MODEM_STATUS which is not defined anywhere.
Also note that on newer devices like the FT232R the request is two
bytes, not one.
Diffstat (limited to 'sys/dev/usb/uftdireg.h')
-rw-r--r-- | sys/dev/usb/uftdireg.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/uftdireg.h b/sys/dev/usb/uftdireg.h index f0ccf100438..95d3a7e3505 100644 --- a/sys/dev/usb/uftdireg.h +++ b/sys/dev/usb/uftdireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uftdireg.h,v 1.11 2006/06/16 06:28:25 deraadt Exp $ */ +/* $OpenBSD: uftdireg.h,v 1.12 2008/07/05 14:41:28 mbalmer Exp $ */ /* $NetBSD: uftdireg.h,v 1.6 2002/07/11 21:14:28 augustss Exp $ */ /* @@ -251,10 +251,10 @@ enum { /* * BmRequestType: 1100 0000b - * bRequest: FTDI_SIO_GET_MODEM_STATUS + * bRequest: FTDI_SIO_GET_STATUS * wValue: zero * wIndex: Port - * wLength: 1 + * wLength: 1 (2 for newer devices like the FT232R) * Data: Status * * One byte of data is returned @@ -272,7 +272,7 @@ enum { * 0 = inactive * 1 = active * - * FTDI_SIO_GET_MODEM_STATUS + * FTDI_SIO_GET_STATUS * Retrieve the current value of the modem status register. */ #define FTDI_SIO_CTS_MASK 0x10 |