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;
45 extern const size_t console_generic_info_count;
47 extern 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) 62 static inline void *console_generic_get_context(
int minor)
64 return console_generic_info_table [minor].context;
Parameter block for open/close.
Definition: libio.h:1346
Definition: termiostypes.h:283
Definition: console-generic.h:37
unsigned context
Definition: tlb.h:108
Definition: console-generic.h:31