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>
21 #define TTY_MAX_COUNT 2
23 #define MAX_ISSUE_NUM 3
26 TO_HOST_BUFFER_REQUEST_FAIL
= 1,
27 TO_HOST_PORT_CLOSE
= 2,
28 TO_HOST_INVALID_PACKET
= 3,
31 enum RECV_PACKET_PROCESS
{
32 RECV_PACKET_PROCESS_COMPLETE
= 0,
33 RECV_PACKET_PROCESS_CONTINUE
= 1,
37 struct tty_dev
*tty_dev
;
45 int (*send_func
)(void *priv_dev
,
49 void (*cb
)(void *cb_data
),
51 int (*recv_func
)(void *priv_dev
,
55 struct tty_dev
*tty_dev
,
57 int (*send_control
)(void *priv_dev
,
65 int register_lte_tty_driver(void);
66 void unregister_lte_tty_driver(void);
67 int register_lte_tty_device(struct tty_dev
*tty_dev
, struct device
*dev
);
68 void unregister_lte_tty_device(struct tty_dev
*tty_dev
);
70 #endif /* _GDM_USB_H_ */