diff options
author | phk <phk@FreeBSD.org> | 2006-05-26 11:54:32 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2006-05-26 11:54:32 +0000 |
commit | 7879ac129f63a7b5e09a9ba170e72922d4a1a91c (patch) | |
tree | e55708a0564b13c180f6e25a2ed24724571a805c /sys/dev/uart/uart_dbg.c | |
parent | 0b37dc8074117c2bca3e406c6da6a4a76c72e087 (diff) | |
download | FreeBSD-src-7879ac129f63a7b5e09a9ba170e72922d4a1a91c.zip FreeBSD-src-7879ac129f63a7b5e09a9ba170e72922d4a1a91c.tar.gz |
Eliminate gdb_checkc member from GDB_DBGPORT(), it is never used.
Use polling behaviour for gdb_getc() where convenient, this edges us
closer to the console code.
Diffstat (limited to 'sys/dev/uart/uart_dbg.c')
-rw-r--r-- | sys/dev/uart/uart_dbg.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/dev/uart/uart_dbg.c b/sys/dev/uart/uart_dbg.c index 51d9ec5..e2c7831 100644 --- a/sys/dev/uart/uart_dbg.c +++ b/sys/dev/uart/uart_dbg.c @@ -42,11 +42,10 @@ static gdb_probe_f uart_dbg_probe; static gdb_init_f uart_dbg_init; static gdb_term_f uart_dbg_term; static gdb_getc_f uart_dbg_getc; -static gdb_checkc_f uart_dbg_checkc; static gdb_putc_f uart_dbg_putc; GDB_DBGPORT(uart, uart_dbg_probe, uart_dbg_init, uart_dbg_term, - uart_dbg_checkc, uart_dbg_getc, uart_dbg_putc); + uart_dbg_getc, uart_dbg_putc); static struct uart_devinfo uart_dbgport; @@ -87,15 +86,8 @@ uart_dbg_putc(int c) } static int -uart_dbg_checkc(void) -{ - - return (uart_poll(&uart_dbgport)); -} - -static int uart_dbg_getc(void) { - return (uart_getc(&uart_dbgport)); + return (uart_poll(&uart_dbgport)); } |