Various coding style fixes (trivial).

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@165 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Uwe Hermann 2007-03-01 14:25:53 +00:00
parent 287a5423a7
commit f45f4fe63b
8 changed files with 17 additions and 25 deletions

View file

@ -22,7 +22,6 @@
#ifndef X86_MACROS_H #ifndef X86_MACROS_H
#define X86_MACROS_H 1 #define X86_MACROS_H 1
#define port80_post(value) \ #define port80_post(value) \
movb $value, %al; \ movb $value, %al; \
outb %al, $0x80 outb %al, $0x80

View file

@ -1,7 +1,6 @@
#ifndef CPU_X86_MTRR_H #ifndef CPU_X86_MTRR_H
#define CPU_X86_MTRR_H #define CPU_X86_MTRR_H
/* These are the region types */ /* These are the region types */
#define MTRR_TYPE_UNCACHEABLE 0 #define MTRR_TYPE_UNCACHEABLE 0
#define MTRR_TYPE_WRCOMB 1 #define MTRR_TYPE_WRCOMB 1
@ -31,15 +30,12 @@
#define MTRRfix4K_F0000_MSR 0x26e #define MTRRfix4K_F0000_MSR 0x26e
#define MTRRfix4K_F8000_MSR 0x26f #define MTRRfix4K_F8000_MSR 0x26f
#if !defined(__ROMCC__) && !defined (ASSEMBLY) #if !defined(__ROMCC__) && !defined (ASSEMBLY)
void x86_setup_var_mtrrs(unsigned address_bits); void x86_setup_var_mtrrs(unsigned address_bits);
void x86_setup_mtrrs(unsigned address_bits); void x86_setup_mtrrs(unsigned address_bits);
int x86_mtrr_check(void); int x86_mtrr_check(void);
#endif /* __ROMCC__ */ #endif /* __ROMCC__ */
#endif /* CPU_X86_MTRR_H */ #endif /* CPU_X86_MTRR_H */

View file

@ -61,7 +61,6 @@
#define UART_LCS TTYSx_LCS #define UART_LCS TTYSx_LCS
void uart8250_init(unsigned base_port, unsigned divisor, unsigned lcs); void uart8250_init(unsigned base_port, unsigned divisor, unsigned lcs);
void uart_init(void) void uart_init(void)
@ -80,4 +79,3 @@ void uart_init(void)
#endif #endif
uart8250_init(TTYSx_BASE, ttysx_div, UART_LCS); uart8250_init(TTYSx_BASE, ttysx_div, UART_LCS);
} }

View file

@ -26,4 +26,3 @@ void udelay(int usecs)
for (i = 0; i < usecs; i++) for (i = 0; i < usecs; i++)
outb(i & 0xff, 0x80); outb(i & 0xff, 0x80);
} }

View file

@ -27,7 +27,8 @@
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
int vtxprintf(void (*tx_byte)(unsigned char byte), const char *fmt, va_list args); int vtxprintf(void (*tx_byte) (unsigned char byte), const char *fmt,
va_list args);
/* FIXME this global makes vsprintf non-reentrant */ /* FIXME this global makes vsprintf non-reentrant */

View file

@ -34,5 +34,3 @@ int main(void)
return 0; return 0;
} }

View file

@ -25,7 +25,8 @@
char *mainboard_vendor = "emulation"; char *mainboard_vendor = "emulation";
char *mainboard_part_number = "qemu-x86"; char *mainboard_part_number = "qemu-x86";
static void enable_dev(struct device *dev){ static void enable_dev(struct device *dev)
{
printk(BIOS_INFO, "qemu-x86 enable_dev done\n"); printk(BIOS_INFO, "qemu-x86 enable_dev done\n");
} }

View file

@ -41,7 +41,7 @@ static void i440bxemulation_enable_dev(struct device *dev)
pci_set_method(dev); pci_set_method(dev);
} }
*/ */
printk(BIOS_INFO, "%s: DONE\n", __FUNCTION__); printk(BIOS_INFO, "%s: Done.\n", __FUNCTION__);
} }
struct chip_operations northbridge_intel_i440bxemulation_ops = { struct chip_operations northbridge_intel_i440bxemulation_ops = {