mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 02:21:16 +00:00
ec2d3c40a0
Add new Serial Multiplexer (SMUX) driver. This driver multiplexes multiple logical channels over a single physical HSUART channel using the TTY Line Discipline framework. This driver will be used in Fusion 4 for control plane, data plane and DIAG traffic between Application processor and QSC modem. Change-Id: Ibecf6cea872f5baf11fb93ded6124243a37a2085 Signed-off-by: Eric Holmberg <eholmber@codeaurora.org> Signed-off-by: Angshuman Sarkar <angshuman@codeaurora.org> Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org> Signed-off-by: David Brown <davidb@codeaurora.org>
39 lines
970 B
C
39 lines
970 B
C
/* drivers/tty/smux_loopback.h
|
|
*
|
|
* Copyright (c) 2012, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This software is licensed under the terms of the GNU General Public
|
|
* License version 2, as published by the Free Software Foundation, and
|
|
* may be copied, distributed, and modified under those terms.
|
|
*
|
|
* 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.
|
|
*
|
|
*/
|
|
#ifndef SMUX_LOOPBACK_H
|
|
#define SMUX_LOOPBACK_H
|
|
|
|
#include "smux_private.h"
|
|
|
|
#ifdef CONFIG_N_SMUX_LOOPBACK
|
|
|
|
int smux_loopback_init(void);
|
|
int smux_tx_loopback(struct smux_pkt_t *pkt_ptr);
|
|
|
|
#else
|
|
static inline int smux_loopback_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int smux_tx_loopback(struct smux_pkt_t *pkt_ptr)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
|
|
|
|
#endif /* CONFIG_N_SMUX_LOOPBACK */
|
|
#endif /* SMUX_LOOPBACK_H */
|
|
|