From d55e26f1b1efe50aa013ad32bdf3e2b58101a64f Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Sun, 25 Apr 2010 13:54:30 +0000 Subject: zero warnings days Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5492 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/northbridge/via/cn400/vga.c | 2 +- src/northbridge/via/cx700/cx700_vga.c | 4 +++- src/northbridge/via/cx700/northbridge.h | 1 + src/northbridge/via/vx800/northbridge.h | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/northbridge/via') diff --git a/src/northbridge/via/cn400/vga.c b/src/northbridge/via/cn400/vga.c index 01227f6f9a..cf9c54be23 100644 --- a/src/northbridge/via/cn400/vga.c +++ b/src/northbridge/via/cn400/vga.c @@ -80,12 +80,12 @@ static int via_cn400_int15_handler(struct eregs *regs) static void vga_init(device_t dev) { u8 reg8; - u32 temp; mainboard_interrupt_handlers(0x15, &via_cn400_int15_handler); #undef OLD_BOCHS_METHOD #ifdef OLD_BOCHS_METHOD + u32 temp; // XXX We might need more bios hooks in the f segment, but // this way of copying the BOCHS BIOS does not work anymore. // As soon as someone verifies that CN400 can init VGA, the diff --git a/src/northbridge/via/cx700/cx700_vga.c b/src/northbridge/via/cx700/cx700_vga.c index 88fac179f2..f2d5450354 100644 --- a/src/northbridge/via/cx700/cx700_vga.c +++ b/src/northbridge/via/cx700/cx700_vga.c @@ -81,7 +81,8 @@ static int via_cx700_int15_handler(struct eregs *regs) return res; } -void write_protect_vgabios(void) +#ifdef UNUSED_CODE +static void write_protect_vgabios(void) { device_t dev; @@ -95,6 +96,7 @@ void write_protect_vgabios(void) if (dev) pci_write_config8(dev, 0x61, 0xff); } +#endif static void vga_init(device_t dev) { diff --git a/src/northbridge/via/cx700/northbridge.h b/src/northbridge/via/cx700/northbridge.h index 1048a96643..193ba1fa48 100644 --- a/src/northbridge/via/cx700/northbridge.h +++ b/src/northbridge/via/cx700/northbridge.h @@ -21,5 +21,6 @@ #define NORTHBRIDGE_VIA_CX700_H extern unsigned int cx700_scan_root_bus(device_t root, unsigned int max); +extern void (*vga_enable_console)(void) __attribute__((regparm(0))); #endif /* NORTHBRIDGE_VIA_CX700_H */ diff --git a/src/northbridge/via/vx800/northbridge.h b/src/northbridge/via/vx800/northbridge.h index bcbeffb284..ed6bd13e2c 100644 --- a/src/northbridge/via/vx800/northbridge.h +++ b/src/northbridge/via/vx800/northbridge.h @@ -21,5 +21,6 @@ #define NORTHBRIDGE_VIA_VX800_H extern unsigned int vx800_scan_root_bus(device_t root, unsigned int max); +extern void (*vga_enable_console)(void) __attribute__((regparm(0))); #endif /* NORTHBRIDGE_VIA_VX800_H */ -- cgit v1.2.3