1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 3 * (C) Copyright 2003 4 * Gerry Hamel, geh@ti.com, Texas Instruments 5 * 6 * (C) Copyright 2006 7 * Bryan O'Donoghue, bodonoghue@codehermit.ie, CodeHermit 8 */ 9 10 #ifndef __USB_TTY_H__ 11 #define __USB_TTY_H__ 12 13 #include <usbdevice.h> 14 #if defined(CONFIG_PPC) 15 #include <usb/mpc8xx_udc.h> 16 #elif defined(CONFIG_CI_UDC) 17 #include <usb/ci_udc.h> 18 #endif 19 20 #include <usb/udc.h> 21 #include <version.h> 22 23 #ifndef CFG_USBD_CONFIGURATION_STR 24 #define CFG_USBD_CONFIGURATION_STR "TTY via USB" 25 #endif 26 27 #define CFG_USBD_SERIAL_OUT_ENDPOINT UDC_OUT_ENDPOINT 28 #define CFG_USBD_SERIAL_OUT_PKTSIZE UDC_OUT_PACKET_SIZE 29 #define CFG_USBD_SERIAL_IN_ENDPOINT UDC_IN_ENDPOINT 30 #define CFG_USBD_SERIAL_IN_PKTSIZE UDC_IN_PACKET_SIZE 31 #define CFG_USBD_SERIAL_INT_ENDPOINT UDC_INT_ENDPOINT 32 #define CFG_USBD_SERIAL_INT_PKTSIZE UDC_INT_PACKET_SIZE 33 #define CFG_USBD_SERIAL_BULK_PKTSIZE UDC_BULK_PACKET_SIZE 34 35 #define USBTTY_DEVICE_CLASS COMMUNICATIONS_DEVICE_CLASS 36 37 #define USBTTY_BCD_DEVICE 0x00 38 #define USBTTY_MAXPOWER 0x00 39 40 #define STR_LANG 0x00 41 #define STR_MANUFACTURER 0x01 42 #define STR_PRODUCT 0x02 43 #define STR_SERIAL 0x03 44 #define STR_CONFIG 0x04 45 #define STR_DATA_INTERFACE 0x05 46 #define STR_CTRL_INTERFACE 0x06 47 #define STR_COUNT 0x07 48 49 #endif 50