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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user