21 #ifndef __LIBCHIP_SERIAL_h 22 #define __LIBCHIP_SERIAL_h 42 typedef uint8_t (*getRegister_f)(uintptr_t port, uint8_t reg);
51 typedef void (*setRegister_f)(uintptr_t port, uint8_t reg, uint8_t value);
67 typedef void (*
setData_f)(uintptr_t port, uint8_t value);
77 bool (*deviceProbe)(
int minor);
78 int (*deviceFirstOpen)(
int major,
int minor,
void *arg);
79 int (*deviceLastClose)(
int major,
int minor,
void *arg);
80 int (*deviceRead)(
int minor);
81 ssize_t (*deviceWrite)(
int minor,
const char *buf,
size_t len);
82 void (*deviceInitialize)(
int minor);
83 void (*deviceWritePolled)(
int minor,
char cChar);
84 int (*deviceSetAttributes)(
int minor,
const struct termios *t);
85 bool deviceOutputUsesInterrupts;
95 int (*deviceStopRemoteTx)(
int minor);
96 int (*deviceStartRemoteTx)(
int minor);
107 SERIAL_NS16550_WITH_FDR,
192 volatile bool bActive;
222 extern rtems_device_minor_number Console_Port_Minor;
setRegister_f setRegister
Definition: serial.h:176
const console_flow * pDeviceFlow
Definition: serial.h:138
void * pDeviceContext
Definition: serial.h:194
uint32_t ulCtrlPort2
Definition: serial.h:170
void bsp_console_select(void)
Selects the minor number of the console device.
Definition: console_select.c:218
uint8_t(* getData_f)(uintptr_t port)
Definition: serial.h:59
console_devs
Definition: serial.h:104
struct _console_data console_data
void * pDeviceParams
Definition: serial.h:162
console_tbl Console_Configuration_Ports[]
Definition: console-config.c:68
console_data * Console_Port_Data
Definition: legacy-console.c:33
getRegister_f getRegister
Definition: serial.h:174
unsigned int ulIntVector
Definition: serial.h:184
uint32_t ulCtrlPort1
Definition: serial.h:166
struct _console_tbl console_tbl
uint32_t ulHysteresis
Definition: serial.h:157
console_devs deviceType
Definition: serial.h:124
getData_f getData
Definition: serial.h:178
void(* setData_f)(uintptr_t port, uint8_t value)
Definition: serial.h:67
unsigned long Console_Port_Count
Definition: legacy-console.c:31
uint32_t ulMargin
Definition: serial.h:149
unsigned long Console_Configuration_Count
Definition: console-config.c:89
const char * sDeviceName
Definition: serial.h:119
uint32_t ulClock
Definition: serial.h:182
const console_fns * pDeviceFns
Definition: serial.h:126
bool(* deviceProbe)(int minor)
Definition: serial.h:130
console_tbl ** Console_Port_Tbl
Definition: legacy-console.c:32
uint32_t ulDataPort
Definition: serial.h:172