diff options
author | Stefan Reinauer <stepan@openbios.org> | 2004-05-28 15:07:03 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2004-05-28 15:07:03 +0000 |
commit | 34e3a146a95bd917b99e2185a17690f467dab8fb (patch) | |
tree | 21ed857af2539ffae0a8285cc70f3cfe05ba939f /src/console/uart8250_console.c | |
parent | 319d6730e9db850609f75be2b4fdef2a622e04ef (diff) | |
download | coreboot-34e3a146a95bd917b99e2185a17690f467dab8fb.tar.xz |
console code cleanup.
- drop srm console code (not supported anyways)
- make internal uart8250 console functions static
- split vsprintf.c into vsprintf.c and vtxprintf.c
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1585 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/console/uart8250_console.c')
-rw-r--r-- | src/console/uart8250_console.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/console/uart8250_console.c b/src/console/uart8250_console.c index c5d32cf579..e6642350d7 100644 --- a/src/console/uart8250_console.c +++ b/src/console/uart8250_console.c @@ -26,9 +26,9 @@ #define UART_LCS TTYS0_LCS -void ttyS0_init(void) +static void ttyS0_init(void) { - static unsigned char div[8]={1,2,3,6,12,24,48,96}; + static const unsigned char div[8]={1,2,3,6,12,24,48,96}; int b_index=0; unsigned int divisor=TTYS0_DIV; @@ -38,17 +38,17 @@ void ttyS0_init(void) uart8250_init(TTYS0_BASE, divisor, TTYS0_LCS); } -void ttyS0_tx_byte(unsigned char data) +static void ttyS0_tx_byte(unsigned char data) { uart8250_tx_byte(TTYS0_BASE, data); } -unsigned char ttyS0_rx_byte(void) +static unsigned char ttyS0_rx_byte(void) { return uart8250_rx_byte(TTYS0_BASE); } -int ttyS0_tst_byte(void) +static int ttyS0_tst_byte(void) { return uart8250_can_rx_byte(TTYS0_BASE); } |