aboutsummaryrefslogtreecommitdiff
path: root/drivers/usbtty.h
blob: 79c2fe57d7adf4e22a1230bd4218c04623b363e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
 * (C) Copyright 2003
 * Gerry Hamel, geh@ti.com, Texas Instruments
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307	 USA
 *
 */

#ifndef __USB_TTY_H__
#define __USB_TTY_H__


#include "usbdcore.h"
#include "usbdcore_omap1510.h"


#define NUM_CONFIGS    1
#define NUM_INTERFACES 1
#define NUM_ENDPOINTS  3

#define EP0_MAX_PACKET_SIZE 64

#define CONFIG_USBD_CONFIGURATION_STR "TTY via USB"
#define CONFIG_USBD_INTERFACE_STR     "Simple Serial Data Interface - Bulk Mode"


#define CONFIG_USBD_SERIAL_OUT_ENDPOINT 2
#define CONFIG_USBD_SERIAL_OUT_PKTSIZE	64
#define CONFIG_USBD_SERIAL_IN_ENDPOINT	1
#define CONFIG_USBD_SERIAL_IN_PKTSIZE	64
#define CONFIG_USBD_SERIAL_INT_ENDPOINT 5
#define CONFIG_USBD_SERIAL_INT_PKTSIZE	16


#define USBTTY_DEVICE_CLASS	COMMUNICATIONS_DEVICE_CLASS
#define USBTTY_DEVICE_SUBCLASS	COMMUNICATIONS_NO_SUBCLASS
#define USBTTY_DEVICE_PROTOCOL	COMMUNICATIONS_NO_PROTOCOL

#define USBTTY_INTERFACE_CLASS	   0xFF /* Vendor Specific */
#define USBTTY_INTERFACE_SUBCLASS  0x02
#define USBTTY_INTERFACE_PROTOCOL  0x01

#define USBTTY_BCD_DEVICE 0x0
#define USBTTY_MAXPOWER	  0x0

#define STR_MANUFACTURER 1
#define STR_PRODUCT	 2
#define STR_SERIAL	 3
#define STR_CONFIG	 4
#define STR_INTERFACE	 5

#endif