21#ifndef LIBBSP_SHARED_CONSOLE_GENERIC_H
22#define LIBBSP_SHARED_CONSOLE_GENERIC_H
33 int (*poll_read)(
int minor);
34 void (*poll_write)(
int minor,
char c);
40 const char *device_path;
45extern const size_t console_generic_info_count;
47extern const rtems_device_minor_number console_generic_minor;
49#define CONSOLE_GENERIC_INFO_TABLE \
50 const console_generic_info console_generic_info_table []
52#define CONSOLE_GENERIC_INFO(context, callbacks, device_path) \
53 { context, callbacks, device_path }
55#define CONSOLE_GENERIC_INFO_COUNT \
56 const size_t console_generic_info_count = \
57 sizeof(console_generic_info_table) / sizeof(console_generic_info_table [0])
59#define CONSOLE_GENERIC_MINOR(minor) \
60 const rtems_device_minor_number console_generic_minor = (minor)
62static inline void *console_generic_get_context(
int minor)
64 return console_generic_info_table [minor].context;
Definition: console-generic.h:31
Definition: console-generic.h:37
Parameter block for open/close.
Definition: libio.h:1346
Definition: termiostypes.h:283
unsigned context
Definition: tlb.h:1