34#ifndef LIBBSP_SHARED_CONSOLE_GENERIC_H
35#define LIBBSP_SHARED_CONSOLE_GENERIC_H
46 int (*poll_read)(
int minor);
47 void (*poll_write)(
int minor,
char c);
53 const char *device_path;
58extern const size_t console_generic_info_count;
62#define CONSOLE_GENERIC_INFO_TABLE \
63 const console_generic_info console_generic_info_table []
65#define CONSOLE_GENERIC_INFO(context, callbacks, device_path) \
66 { context, callbacks, device_path }
68#define CONSOLE_GENERIC_INFO_COUNT \
69 const size_t console_generic_info_count = \
70 sizeof(console_generic_info_table) / sizeof(console_generic_info_table [0])
72#define CONSOLE_GENERIC_MINOR(minor) \
73 const rtems_device_minor_number console_generic_minor = (minor)
75static inline void *console_generic_get_context(
int minor)
77 return console_generic_info_table [minor].context;
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition: io.h:115
rtems_termios_device_context * context
Definition: console-config.c:62
Definition: console-generic.h:44
Definition: console-generic.h:50
Parameter block for open/close.
Definition: libio.h:1363
Definition: termiostypes.h:94