aboutsummaryrefslogtreecommitdiff
path: root/drivers/tty/smux_loopback.h
blob: 02bff80261bac0ea5b69ace31db015c6038f412a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* 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 */