108 extern int dbgio_handler_cnt;
160 #define DBGIO_MODE_POLLED 0
165 #define DBGIO_MODE_IRQ 1
int(* read)()
Read one character from the console.
Definition: dbgio.h:70
int dbgio_write_buffer_xlat(const uint8 *data, int len)
Write an entire buffer of data to the console (potentially with newline transformations).
const char * dbgio_dev_get()
Fetch the name of the currently selected dbgio interface.
int dbgio_read_buffer(uint8 *data, int len)
Read an entire buffer of data from the console.
int(* write_buffer)(const uint8 *data, int len, int xlat)
Write an entire buffer of data to the console.
Definition: dbgio.h:94
Debug I/O Interface.
Definition: dbgio.h:37
int(* write)(int c)
Write one character to the console.
Definition: dbgio.h:79
int dbgio_write_buffer(const uint8 *data, int len)
Write an entire buffer of data to the console.
#define __printflike(fmtarg, firstvararg)
Identify a function as accepting formatting like printf().
Definition: cdefs.h:61
void dbgio_enable()
Enable debug I/O globally.
int(* detected)()
Detect this debug interface.
Definition: dbgio.h:45
int dbgio_write_str(const char *str)
Write a NUL-terminated string to the console.
int(* flush)()
Flush any queued output.
Definition: dbgio.h:85
int dbgio_dev_select(const char *name)
Select a new dbgio interface by name.
int dbgio_read()
Read one character from the console.
int dbgio_write(int c)
Write one character to the console.
int dbgio_printf(const char *fmt,...) __printflike(1
Built-in debug I/O printf function.
void dbgio_disable()
Disable debug I/O globally.
int dbgio_init()
Initialize the dbgio console.
int(* read_buffer)(uint8 *data, int len)
Read an entire buffer of data from the console.
Definition: dbgio.h:102
int(* init)()
Initialize this debug interface with default parameters.
Definition: dbgio.h:51
const char * name
Name of the dbgio handler.
Definition: dbgio.h:39
unsigned char uint8
8-bit unsigned integer
Definition: types.h:30
Potentially useful definitions for C Programs.
int dbgio_flush()
Flush any queued output.
int(* shutdown)()
Shutdown this debug interface.
Definition: dbgio.h:57
int dbgio_set_irq_usage(int mode)
Set IRQ usage.
int(* set_irq_usage)(int mode)
Set either polled or IRQ usage for this interface.
Definition: dbgio.h:64
struct dbgio_handler dbgio_handler_t
Debug I/O Interface.