diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-17 02:20:36 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-17 02:20:36 +0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/usb/serial/kobil_sct.h | |
download | linux-1da177e4c3f41524e886b7f1b8a0c1fc7321cac2.tar.xz |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'drivers/usb/serial/kobil_sct.h')
-rw-r--r-- | drivers/usb/serial/kobil_sct.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/drivers/usb/serial/kobil_sct.h b/drivers/usb/serial/kobil_sct.h new file mode 100644 index 000000000000..a51fbb5ae45c --- /dev/null +++ b/drivers/usb/serial/kobil_sct.h @@ -0,0 +1,60 @@ +#define SUSBCRequest_SetBaudRateParityAndStopBits 1 +#define SUSBCR_SBR_MASK 0xFF00 +#define SUSBCR_SBR_1200 0x0100 +#define SUSBCR_SBR_9600 0x0200 +#define SUSBCR_SBR_19200 0x0400 +#define SUSBCR_SBR_28800 0x0800 +#define SUSBCR_SBR_38400 0x1000 +#define SUSBCR_SBR_57600 0x2000 +#define SUSBCR_SBR_115200 0x4000 + +#define SUSBCR_SPASB_MASK 0x0070 +#define SUSBCR_SPASB_NoParity 0x0010 +#define SUSBCR_SPASB_OddParity 0x0020 +#define SUSBCR_SPASB_EvenParity 0x0040 + +#define SUSBCR_SPASB_STPMASK 0x0003 +#define SUSBCR_SPASB_1StopBit 0x0001 +#define SUSBCR_SPASB_2StopBits 0x0002 + +#define SUSBCRequest_SetStatusLinesOrQueues 2 +#define SUSBCR_SSL_SETRTS 0x0001 +#define SUSBCR_SSL_CLRRTS 0x0002 +#define SUSBCR_SSL_SETDTR 0x0004 +#define SUSBCR_SSL_CLRDTR 0x0010 + +#define SUSBCR_SSL_PURGE_TXABORT 0x0100 // Kill the pending/current writes to the comm port. +#define SUSBCR_SSL_PURGE_RXABORT 0x0200 // Kill the pending/current reads to the comm port. +#define SUSBCR_SSL_PURGE_TXCLEAR 0x0400 // Kill the transmit queue if there. +#define SUSBCR_SSL_PURGE_RXCLEAR 0x0800 // Kill the typeahead buffer if there. + +#define SUSBCRequest_GetStatusLineState 4 +#define SUSBCR_GSL_RXCHAR 0x0001 // Any Character received +#define SUSBCR_GSL_TXEMPTY 0x0004 // Transmitt Queue Empty +#define SUSBCR_GSL_CTS 0x0008 // CTS changed state +#define SUSBCR_GSL_DSR 0x0010 // DSR changed state +#define SUSBCR_GSL_RLSD 0x0020 // RLSD changed state +#define SUSBCR_GSL_BREAK 0x0040 // BREAK received +#define SUSBCR_GSL_ERR 0x0080 // Line status error occurred +#define SUSBCR_GSL_RING 0x0100 // Ring signal detected + +#define SUSBCRequest_Misc 8 +#define SUSBCR_MSC_ResetReader 0x0001 // use a predefined reset sequence +#define SUSBCR_MSC_ResetAllQueues 0x0002 // use a predefined sequence to reset the internal queues + +#define SUSBCRequest_GetMisc 0x10 +#define SUSBCR_MSC_GetFWVersion 0x0001 /* get the firmware version from device, + coded like this 0xHHLLBBPP + with HH = Firmware Version High Byte + LL = Firmware Version Low Byte + BB = Build Number + PP = Further Attributes + */ + +#define SUSBCR_MSC_GetHWVersion 0x0002 /* get the hardware version from device + coded like this 0xHHLLPPRR + with HH = Software Version High Byte + LL = Software Version Low Byte + PP = Further Attributes + RR = Reserved for the hardware ID + */ |