iPXE
|
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <ipxe/uart.h>
#include <ipxe/gdbstub.h>
#include <ipxe/gdbserial.h>
#include <config/serial.h>
Go to the source code of this file.
Macros | |
#define | GDBSERIAL_PORT COMCONSOLE |
#define | GDBSERIAL_BAUD COMSPEED |
#define | GDBSERIAL_LCR UART_LCR_WPS ( COMDATA, COMPARITY, COMSTOP ) |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static size_t | gdbserial_recv (char *buf, size_t len) |
static void | gdbserial_send (const char *buf, size_t len) |
static int | gdbserial_init (int argc, char **argv) |
struct gdb_transport * | gdbserial_configure (unsigned int port, unsigned int baud, uint8_t lcr) |
Variables | |
static struct uart | gdbserial_uart |
GDB serial UART. More... | |
struct gdb_transport serial_gdb_transport | __gdb_transport |
#define GDBSERIAL_PORT COMCONSOLE |
Definition at line 37 of file gdbserial.c.
#define GDBSERIAL_BAUD COMSPEED |
Definition at line 46 of file gdbserial.c.
#define GDBSERIAL_LCR UART_LCR_WPS ( COMDATA, COMPARITY, COMSTOP ) |
Definition at line 53 of file gdbserial.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
Definition at line 61 of file gdbserial.c.
References assert(), gdbserial_uart, len, uart_data_ready(), and uart_receive().
|
static |
|
static |
Definition at line 76 of file gdbserial.c.
References GDBSERIAL_BAUD, gdbserial_configure(), GDBSERIAL_LCR, GDBSERIAL_PORT, port, printf(), and strtoul().
struct gdb_transport* gdbserial_configure | ( | unsigned int | port, |
unsigned int | baud, | ||
uint8_t | lcr | ||
) |
Definition at line 108 of file gdbserial.c.
References gdbserial_uart, NULL, port, rc, uart_init(), and uart_select().
Referenced by gdbserial_init().
|
static |
GDB serial UART.
Definition at line 57 of file gdbserial.c.
Referenced by gdbserial_configure(), gdbserial_recv(), and gdbserial_send().
struct gdb_transport serial_gdb_transport __gdb_transport |
Definition at line 59 of file gdbserial.c.