2 * Copyright (c) 2012 GCT Semiconductor, Inc. All rights reserved.
4 * This software is licensed under the terms of the GNU General Public
5 * License version 2, as published by the Free Software Foundation, and
6 * may be copied, distributed, and modified under those terms.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
17 #include <linux/types.h>
18 #include <linux/tty.h>
20 #define TTY_MAX_COUNT 2
22 #define MAX_ISSUE_NUM 3
25 TO_HOST_BUFFER_REQUEST_FAIL = 1,
26 TO_HOST_PORT_CLOSE = 2,
27 TO_HOST_INVALID_PACKET = 3,
30 enum RECV_PACKET_PROCESS {
31 RECV_PACKET_PROCESS_COMPLETE = 0,
32 RECV_PACKET_PROCESS_CONTINUE = 1,
36 struct tty_dev *tty_dev;
44 int (*send_func)(void *priv_dev,
48 void (*cb)(void *cb_data),
50 int (*recv_func)(void *priv_dev,
54 struct tty_dev *tty_dev,
56 int (*send_control)(void *priv_dev,
64 int register_lte_tty_driver(void);
65 void unregister_lte_tty_driver(void);
66 int register_lte_tty_device(struct tty_dev *tty_dev, struct device *dev);
67 void unregister_lte_tty_device(struct tty_dev *tty_dev);
69 #endif /* _GDM_USB_H_ */