40#ifndef __LIBCHIP_SERIAL_h
41#define __LIBCHIP_SERIAL_h
61typedef uint8_t (*getRegister_f)(uintptr_t port, uint8_t reg);
70typedef void (*setRegister_f)(uintptr_t port, uint8_t reg, uint8_t value);
86typedef void (*
setData_f)(uintptr_t port, uint8_t value);
96 bool (*deviceProbe)(
int minor);
97 int (*deviceFirstOpen)(
int major,
int minor,
void *arg);
98 int (*deviceLastClose)(
int major,
int minor,
void *arg);
99 int (*deviceRead)(
int minor);
100 ssize_t (*deviceWrite)(
int minor,
const char *buf,
size_t len);
101 void (*deviceInitialize)(
int minor);
102 void (*deviceWritePolled)(
int minor,
char cChar);
103 int (*deviceSetAttributes)(
int minor,
const struct termios *t);
104 bool deviceOutputUsesInterrupts;
114 int (*deviceStopRemoteTx)(
int minor);
115 int (*deviceStartRemoteTx)(
int minor);
126 SERIAL_NS16550_WITH_FDR,
211 volatile bool bActive;
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition: io.h:115
This header file defines the RTEMS Classic API.
console_devs
Definition: serial.h:123
unsigned long Console_Port_Count
Definition: legacy-console.c:50
struct _console_data console_data
console_tbl ** Console_Port_Tbl
Definition: legacy-console.c:51
unsigned long Console_Configuration_Count
Definition: console-config.c:89
console_data * Console_Port_Data
Definition: legacy-console.c:52
struct _console_tbl console_tbl
uint8_t(* getData_f)(uintptr_t port)
Definition: serial.h:78
console_tbl Console_Configuration_Ports[]
Definition: console-config.c:68
void bsp_console_select(void)
Selects the minor number of the console device.
Definition: console_select.c:237
void(* setData_f)(uintptr_t port, uint8_t value)
Definition: serial.h:86
void * pDeviceContext
Definition: serial.h:213
uint32_t ulClock
Definition: serial.h:201
setRegister_f setRegister
Definition: serial.h:195
void * pDeviceParams
Definition: serial.h:181
uint32_t ulCtrlPort1
Definition: serial.h:185
uint32_t ulDataPort
Definition: serial.h:191
const console_flow * pDeviceFlow
Definition: serial.h:157
unsigned int ulIntVector
Definition: serial.h:203
uint32_t ulMargin
Definition: serial.h:168
uint32_t ulCtrlPort2
Definition: serial.h:189
bool(* deviceProbe)(int minor)
Definition: serial.h:149
getData_f getData
Definition: serial.h:197
uint32_t ulHysteresis
Definition: serial.h:176
getRegister_f getRegister
Definition: serial.h:193
console_devs deviceType
Definition: serial.h:143
const console_fns * pDeviceFns
Definition: serial.h:145
const char * sDeviceName
Definition: serial.h:138