mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
ad9bd58c2a
Now that the SPDX tag is in all gdm724x files, that identifies the license in a specific and legally-defined manner. So the extra GPL text wording can be removed as it is no longer needed at all. This is done on a quest to remove the 700+ different ways that files in the kernel describe the GPL license text. And there's unneeded stuff like the address (sometimes incorrect) for the FSF which is never needed. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
60 lines
1.2 KiB
C
60 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (c) 2012 GCT Semiconductor, Inc. All rights reserved. */
|
|
|
|
#ifndef _GDM_TTY_H_
|
|
#define _GDM_TTY_H_
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/tty.h>
|
|
|
|
#define TTY_MAX_COUNT 2
|
|
|
|
#define MAX_ISSUE_NUM 3
|
|
|
|
enum TO_HOST_RESULT {
|
|
TO_HOST_BUFFER_REQUEST_FAIL = 1,
|
|
TO_HOST_PORT_CLOSE = 2,
|
|
TO_HOST_INVALID_PACKET = 3,
|
|
};
|
|
|
|
enum RECV_PACKET_PROCESS {
|
|
RECV_PACKET_PROCESS_COMPLETE = 0,
|
|
RECV_PACKET_PROCESS_CONTINUE = 1,
|
|
};
|
|
|
|
struct gdm {
|
|
struct tty_dev *tty_dev;
|
|
struct tty_port port;
|
|
unsigned int index;
|
|
unsigned int minor;
|
|
};
|
|
|
|
struct tty_dev {
|
|
void *priv_dev;
|
|
int (*send_func)(void *priv_dev,
|
|
void *data,
|
|
int len,
|
|
int tty_index,
|
|
void (*cb)(void *cb_data),
|
|
void *cb_data);
|
|
int (*recv_func)(void *priv_dev,
|
|
int (*cb)(void *data,
|
|
int len,
|
|
int tty_index,
|
|
struct tty_dev *tty_dev,
|
|
int complete));
|
|
int (*send_control)(void *priv_dev,
|
|
int request,
|
|
int value,
|
|
void *data,
|
|
int len);
|
|
struct gdm *gdm[2];
|
|
};
|
|
|
|
int register_lte_tty_driver(void);
|
|
void unregister_lte_tty_driver(void);
|
|
int register_lte_tty_device(struct tty_dev *tty_dev, struct device *dev);
|
|
void unregister_lte_tty_device(struct tty_dev *tty_dev);
|
|
|
|
#endif /* _GDM_USB_H_ */
|
|
|