RTEMS  5.1
uart-bridge.h
Go to the documentation of this file.
1 
9 /*
10  * Copyright (c) 2011-2015 embedded brains GmbH. All rights reserved.
11  *
12  * embedded brains GmbH
13  * Dornierstr. 4
14  * 82178 Puchheim
15  * Germany
16  * <rtems@embedded-brains.de>
17  *
18  * The license and distribution terms for this file may be
19  * found in the file LICENSE in this distribution or at
20  * http://www.rtems.org/license/LICENSE.
21  */
22 
23 #ifndef LIBBSP_POWERPC_QORIQ_UART_BRIDGE_H
24 #define LIBBSP_POWERPC_QORIQ_UART_BRIDGE_H
25 
26 #include <rtems/termiostypes.h>
27 
28 #include <bsp/intercom.h>
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif /* __cplusplus */
33 
44 typedef struct {
46  const char *device_path;
47  intercom_type type;
48  rtems_id transmit_task;
49  rtems_chain_control transmit_fifo;
51 
52 typedef struct {
54  struct rtems_termios_tty *tty;
55  intercom_type type;
56  rtems_id transmit_task;
57  rtems_chain_control transmit_fifo;
59 
60 bool qoriq_uart_bridge_master_probe(rtems_termios_device_context *base);
61 
62 extern const rtems_termios_device_handler qoriq_uart_bridge_master;
63 
64 extern const rtems_termios_device_handler qoriq_uart_bridge_slave;
65 
68 #ifdef __cplusplus
69 }
70 #endif /* __cplusplus */
71 
72 #endif /* LIBBSP_POWERPC_QORIQ_UART_BRIDGE_H */
Inter-Processor Communication API.
Definition: uart-bridge.h:44
Termios device context.
Definition: termiostypes.h:75
Definition: chain.h:86
Definition: termiostypes.h:283
Objects_Id rtems_id
Used to manage and manipulate RTEMS object identifiers.
Definition: types.h:83
Definition: uart-bridge.h:52
Termios device handler.
Definition: termiostypes.h:141