RTEMS 5.2
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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
31extern "C" {
32#endif /* __cplusplus */
33
44typedef struct {
46 const char *device_path;
47 intercom_type type;
48 rtems_id transmit_task;
49 rtems_chain_control transmit_fifo;
51
52typedef struct {
54 struct rtems_termios_tty *tty;
55 intercom_type type;
56 rtems_id transmit_task;
57 rtems_chain_control transmit_fifo;
59
60bool qoriq_uart_bridge_master_probe(rtems_termios_device_context *base);
61
62extern const rtems_termios_device_handler qoriq_uart_bridge_master;
63
64extern 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 */
Objects_Id rtems_id
Used to manage and manipulate RTEMS object identifiers.
Definition: types.h:83
Inter-Processor Communication API.
Termios device context.
Definition: termiostypes.h:75
Termios device handler.
Definition: termiostypes.h:141
Definition: termiostypes.h:283
Definition: uart-bridge.h:44
Definition: uart-bridge.h:52
Definition: chain.h:86