From 80d9804ff776c677932937ac3faf494acf378b45 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Fri, 30 Apr 2010 20:44:30 +0000 Subject: fix superio warnings. interesting side node: most superio .h files have no guards. Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5520 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/superio/nsc/pc87417/pc87417.h | 6 ++++++ src/superio/nsc/pc87417/pc87417_early_serial.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'src/superio/nsc/pc87417') diff --git a/src/superio/nsc/pc87417/pc87417.h b/src/superio/nsc/pc87417/pc87417.h index 3171d1fd7d..bc65eef554 100644 --- a/src/superio/nsc/pc87417/pc87417.h +++ b/src/superio/nsc/pc87417/pc87417.h @@ -110,3 +110,9 @@ #define PC87417_HAP1 0x14 #define PC87417_XSCNF 0x15 #define PC87417_XWBCNF 0x16 + +#if defined(__PRE_RAM__) && !defined(__ROMCC__) +void pc87417_enable_serial(device_t dev, unsigned iobase); +void pc87417_enable_dev(device_t dev); +#endif + diff --git a/src/superio/nsc/pc87417/pc87417_early_serial.c b/src/superio/nsc/pc87417/pc87417_early_serial.c index 78cf9b48bf..8d748046c6 100644 --- a/src/superio/nsc/pc87417/pc87417_early_serial.c +++ b/src/superio/nsc/pc87417/pc87417_early_serial.c @@ -23,7 +23,7 @@ #include #include "pc87417.h" -static void pc87417_enable_serial(device_t dev, unsigned iobase) +void pc87417_enable_serial(device_t dev, unsigned iobase) { pnp_set_logical_device(dev); pnp_set_enable(dev, 0); @@ -31,7 +31,7 @@ static void pc87417_enable_serial(device_t dev, unsigned iobase) pnp_set_enable(dev, 1); } -static void pc87417_enable_dev(device_t dev) +void pc87417_enable_dev(device_t dev) { pnp_set_logical_device(dev); pnp_set_enable(dev, 1); -- cgit v1.2.3