39typedef struct dbgio_handler {
47 int (*detected)(void);
66 int (*set_irq_usage)(
int mode);
96 int (*write_buffer)(
const uint8 *data,
int len,
int xlat);
104 int (*read_buffer)(
uint8 *data,
int len);
110extern int dbgio_handler_cnt;
173#define DBGIO_MODE_POLLED 0
180#define DBGIO_MODE_IRQ 1
Definitions for builtin attributes and compiler directives.
int dbgio_set_irq_usage(int mode)
Set IRQ usage.
int dbgio_init(void)
Initialize the dbgio console.
int dbgio_write_buffer(const uint8 *data, int len)
Write an entire buffer of data to the console.
int dbgio_write_buffer_xlat(const uint8 *data, int len)
Write an entire buffer of data to the console (potentially with newline transformations).
int dbgio_printf(const char *fmt,...) __printflike(1
Built-in debug I/O printf function.
void dbgio_enable(void)
Enable debug I/O globally.
const char * dbgio_dev_get(void)
Fetch the name of the currently selected dbgio interface.
void dbgio_disable(void)
Disable debug I/O globally.
int dbgio_read(void)
Read one character from the console.
int dbgio_write_str(const char *str)
Write a NUL-terminated string to the console.
int dbgio_read_buffer(uint8 *data, int len)
Read an entire buffer of data from the console.
int dbgio_dev_select(const char *name)
Select a new dbgio interface by name.
int dbgio_flush(void)
Flush any queued output.
int dbgio_write(int c)
Write one character to the console.
int shutdown(int socket, int how)
Shutdown socket send and receive operations.
#define __printflike(fmtarg, firstvararg)
Identify a function as accepting formatting like printf().
Definition cdefs.h:132
unsigned char uint8
8-bit unsigned integer
Definition types.h:35
Debug I/O Interface.
Definition dbgio.h:39
const char * name
Name of the dbgio handler.
Definition dbgio.h:41