Since some people disapprove of white space cleanups mixed in regular commits
while others dislike them being extra commits, let's clean them up once and for all for the existing code. If it's ugly, let it only be ugly once :-) Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5507 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Stefan Reinauer
parent
0e1e8065e3
commit
14e2277962
@ -98,7 +98,7 @@ config USBDEBUG_DIRECT
|
||||
|
||||
It also requires a USB2 controller which supports the EHCI
|
||||
Debug Port capability. Controllers which are known to work:
|
||||
|
||||
|
||||
* 10b9:5239 ALi Corporation USB 2.0 (USB PCI card)
|
||||
* 8086:24cd Intel ICH4/ICH4-M
|
||||
* 8086:24dd Intel ICH5
|
||||
|
@ -62,8 +62,8 @@ u32 boot_text_mapped;
|
||||
|
||||
boot_infos_t disp_bi;
|
||||
|
||||
#define BTEXT
|
||||
#define BTDATA
|
||||
#define BTEXT
|
||||
#define BTDATA
|
||||
|
||||
|
||||
/* This function will enable the early boot text when doing OF booting. This
|
||||
@ -100,7 +100,7 @@ btext_setup_display(u32 width, u32 height, u32 depth, u32 pitch,
|
||||
* changes.
|
||||
*/
|
||||
|
||||
void
|
||||
void
|
||||
map_boot_text(void)
|
||||
{
|
||||
#if 0
|
||||
@ -111,9 +111,9 @@ map_boot_text(void)
|
||||
return;
|
||||
base = ((unsigned long) bi->dispDeviceBase) & 0xFFFFF000UL;
|
||||
offset = ((unsigned long) bi->dispDeviceBase) - base;
|
||||
size = bi->dispDeviceRowBytes * bi->dispDeviceRect[3] + offset
|
||||
size = bi->dispDeviceRowBytes * bi->dispDeviceRect[3] + offset
|
||||
+ bi->dispDeviceRect[0];
|
||||
bi->logicalDisplayBase = ioremap(base,0x800000 );
|
||||
bi->logicalDisplayBase = ioremap(base,0x800000 );
|
||||
if (bi->logicalDisplayBase == 0)
|
||||
return;
|
||||
// bi->logicalDisplayBase += offset;
|
||||
@ -360,7 +360,7 @@ static u32 expand_bits_8[16] BTDATA = {
|
||||
0x0000ffff,0xff00ffff,0x00ffffff,0xffffffff
|
||||
#else
|
||||
#error FIXME: No endianness??
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
#if 0
|
||||
static const u32 expand_bits_16[4] BTDATA = {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Bootstrap code for the INTEL
|
||||
* Bootstrap code for the INTEL
|
||||
*/
|
||||
|
||||
#include <console/console.h>
|
||||
@ -18,7 +18,7 @@ void console_init(void)
|
||||
struct console_driver *driver;
|
||||
if(get_option(&console_loglevel, "debug_level"))
|
||||
console_loglevel=CONFIG_DEFAULT_CONSOLE_LOGLEVEL;
|
||||
|
||||
|
||||
for(driver = console_drivers; driver < econsole_drivers; driver++) {
|
||||
if (!driver->init)
|
||||
continue;
|
||||
@ -38,7 +38,7 @@ void console_tx_flush(void)
|
||||
{
|
||||
struct console_driver *driver;
|
||||
for(driver = console_drivers; driver < econsole_drivers; driver++) {
|
||||
if (!driver->tx_flush)
|
||||
if (!driver->tx_flush)
|
||||
continue;
|
||||
driver->tx_flush();
|
||||
}
|
||||
@ -99,7 +99,7 @@ void __attribute__((noreturn)) die(const char *msg)
|
||||
|
||||
void console_init(void)
|
||||
{
|
||||
static const char console_test[] =
|
||||
static const char console_test[] =
|
||||
"\n\ncoreboot-"
|
||||
COREBOOT_VERSION
|
||||
COREBOOT_EXTRA_VERSION
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#define LOGBUF_SIZE 1024
|
||||
|
||||
// KEEP THIS GLOBAL.
|
||||
// KEEP THIS GLOBAL.
|
||||
// I need the address so I can watch it with the ARIUM hardware. RGM.
|
||||
char logbuf[LOGBUF_SIZE];
|
||||
int logbuf_offset = 0;
|
||||
|
@ -38,17 +38,17 @@ static void ttyS0_init(void)
|
||||
uart8250_init(CONFIG_TTYS0_BASE, divisor, CONFIG_TTYS0_LCS);
|
||||
}
|
||||
|
||||
static void ttyS0_tx_byte(unsigned char data)
|
||||
static void ttyS0_tx_byte(unsigned char data)
|
||||
{
|
||||
uart8250_tx_byte(CONFIG_TTYS0_BASE, data);
|
||||
}
|
||||
|
||||
static unsigned char ttyS0_rx_byte(void)
|
||||
static unsigned char ttyS0_rx_byte(void)
|
||||
{
|
||||
return uart8250_rx_byte(CONFIG_TTYS0_BASE);
|
||||
}
|
||||
|
||||
static int ttyS0_tst_byte(void)
|
||||
static int ttyS0_tst_byte(void)
|
||||
{
|
||||
return uart8250_can_rx_byte(CONFIG_TTYS0_BASE);
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* This file is part of the coreboot project.
|
||||
*
|
||||
*
|
||||
* Copyright (C) 2009 coresystems GmbH
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
|
@ -30,7 +30,7 @@ static int skip_atoi(const char **s)
|
||||
#define SPECIAL 32 /* 0x */
|
||||
#define LARGE 64 /* use 'ABCDEF' instead of 'abcdef' */
|
||||
|
||||
static int number(void (*tx_byte)(unsigned char byte),
|
||||
static int number(void (*tx_byte)(unsigned char byte),
|
||||
unsigned long long num, int base, int size, int precision, int type)
|
||||
{
|
||||
char c,sign,tmp[66];
|
||||
@ -112,7 +112,7 @@ int vtxprintf(void (*tx_byte)(unsigned char byte), const char *fmt, va_list args
|
||||
int precision; /* min. # of digits for integers; max
|
||||
number of chars for from string */
|
||||
int qualifier; /* 'h', 'l', or 'L' for integer fields */
|
||||
|
||||
|
||||
int count;
|
||||
|
||||
for (count=0; *fmt ; ++fmt) {
|
||||
@ -120,7 +120,7 @@ int vtxprintf(void (*tx_byte)(unsigned char byte), const char *fmt, va_list args
|
||||
tx_byte(*fmt), count++;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
/* process flags */
|
||||
flags = 0;
|
||||
repeat:
|
||||
@ -132,7 +132,7 @@ int vtxprintf(void (*tx_byte)(unsigned char byte), const char *fmt, va_list args
|
||||
case '#': flags |= SPECIAL; goto repeat;
|
||||
case '0': flags |= ZEROPAD; goto repeat;
|
||||
}
|
||||
|
||||
|
||||
/* get field width */
|
||||
field_width = -1;
|
||||
if (is_digit(*fmt))
|
||||
@ -150,7 +150,7 @@ int vtxprintf(void (*tx_byte)(unsigned char byte), const char *fmt, va_list args
|
||||
/* get the precision */
|
||||
precision = -1;
|
||||
if (*fmt == '.') {
|
||||
++fmt;
|
||||
++fmt;
|
||||
if (is_digit(*fmt))
|
||||
precision = skip_atoi(&fmt);
|
||||
else if (*fmt == '*') {
|
||||
|
Reference in New Issue
Block a user