Adds the virtual services serial protocol and tty drivers for virtual serial and console. Change-Id: I2dd86a677406d6b74b0e02e5fda720eaf9edcd62 Signed-off-by: Carl van Schaik <carl@cog.systems> Git-commit: 29f5766e09adb6064b01bf20e76c117bcfa94e41 Git-repo: https://github.com/CogSystems/linux-msm/commits/msm-4.9-hyp Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org> Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
|
|
/*
|
|
* Copyright (c) 2012-2018 General Dynamics
|
|
* Copyright (c) 2014 Open Kernel Labs, Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#if !defined(__VSERVICES_SERIAL_PROTOCOL_H__)
|
|
#define __VSERVICES_SERIAL_PROTOCOL_H__
|
|
|
|
#define VSERVICE_SERIAL_PROTOCOL_NAME "com.ok-labs.serial"
|
|
typedef enum {
|
|
VSERVICE_SERIAL_BASE_REQ_OPEN,
|
|
VSERVICE_SERIAL_BASE_ACK_OPEN,
|
|
VSERVICE_SERIAL_BASE_NACK_OPEN,
|
|
VSERVICE_SERIAL_BASE_REQ_CLOSE,
|
|
VSERVICE_SERIAL_BASE_ACK_CLOSE,
|
|
VSERVICE_SERIAL_BASE_NACK_CLOSE,
|
|
VSERVICE_SERIAL_BASE_REQ_REOPEN,
|
|
VSERVICE_SERIAL_BASE_ACK_REOPEN,
|
|
VSERVICE_SERIAL_BASE_NACK_REOPEN,
|
|
VSERVICE_SERIAL_BASE_MSG_RESET,
|
|
VSERVICE_SERIAL_SERIAL_MSG_MSG,
|
|
} vservice_serial_message_id_t;
|
|
typedef enum {
|
|
VSERVICE_SERIAL_NBIT_IN__COUNT
|
|
} vservice_serial_nbit_in_t;
|
|
|
|
typedef enum {
|
|
VSERVICE_SERIAL_NBIT_OUT__COUNT
|
|
} vservice_serial_nbit_out_t;
|
|
|
|
/* Notification mask macros */
|
|
#endif /* ! __VSERVICES_SERIAL_PROTOCOL_H__ */
|