Warning, cross-references for /kernel/include/drivers/usb/ftdi.h need to be fixed.
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #ifndef _FTDI_H_
0019 #define _FTDI_H_
0020
0021 #include <types.h>
0022
0023
0024 #define USB_FTDI_RESET 0x00
0025 #define USB_FTDI_MODEM_CTRL 0x01
0026 #define USB_FTDI_SET_FLOW_CTRL 0x02
0027 #define USB_FTDI_SET_BAUD_RATE 0x03
0028 #define USB_FTDI_SET_DATA 0x04
0029 #define USB_FTDI_GET_MODEM_STATUS 0x05
0030 #define USB_FTDI_SET_EVENT_CHAR 0x06
0031 #define USB_FTDI_SET_ERROR_CHAR 0x07
0032 #define USB_FTDI_SET_LATENCY_TIMER 0x09
0033 #define USB_FTDI_GET_LATENCY_TIMER 0x0A
0034
0035 #define USB_FTDI_NO_FLOW_CTRL 0x00
0036 #define USB_FTDI_RTS_CTS (0x01 << 8)
0037 #define USB_FTDI_DTR_DSR (0x02 << 8)
0038
0039 #define USB_FTDI_DTR_HIGH (1 | (0x01 << 8))
0040 #define USB_FTDI_DTR_LOW (0 | (0x01 << 8))
0041 #define USB_FTDI_RTS_HIGH (2 | (0x02 << 8))
0042 #define USB_FTDI_RTS_LOW (0 | (0x02 << 8))
0043
0044 extern bool usb_ftdi_driver_init (void);
0045 extern void usb_ftdi_putc (char);
0046 extern char usb_ftdi_getc (void);
0047
0048 #endif
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059