iPXE
Functions
gdbserial.h File Reference

GDB remote debugging over serial. More...

#include <stdint.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
struct gdb_transportgdbserial_configure (unsigned int port, unsigned int baud, uint8_t lcr)
 

Detailed Description

GDB remote debugging over serial.

Definition in file gdbserial.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ gdbserial_configure()

struct gdb_transport* gdbserial_configure ( unsigned int  port,
unsigned int  baud,
uint8_t  lcr 
)

Definition at line 108 of file gdbserial.c.

109  {
110  int rc;
111 
112  if ( ( rc = uart_select ( &gdbserial_uart, port ) ) != 0 )
113  return NULL;
114 
115  if ( ( rc = uart_init ( &gdbserial_uart, baud, lcr ) ) != 0 )
116  return NULL;
117 
118  return &serial_gdb_transport;
119 }
struct arbelprm_rc_send_wqe rc
Definition: arbel.h:14
static struct uart gdbserial_uart
GDB serial UART.
Definition: gdbserial.c:57
int uart_init(struct uart *uart, unsigned int baud, uint8_t lcr)
Initialise UART.
Definition: uart.c:113
u8 port
Port number.
Definition: CIB_PRM.h:31
#define NULL
NULL pointer (VOID *)
Definition: Base.h:362
int uart_select(struct uart *uart, unsigned int port)
Select UART port.
Definition: x86_uart.c:50

References gdbserial_uart, NULL, port, rc, uart_init(), and uart_select().

Referenced by gdbserial_init().