diff options
author | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2014-03-31 21:53:32 +1100 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2014-05-09 08:26:14 +0200 |
commit | f18abab20047a23d7b29705ce274920ad36cd18a (patch) | |
tree | a977c6932e26c49bc769002b0ef10f07223fe990 /src/superio/serverengines/pilot/early_serial.c | |
parent | 618de689c348fa7aa4eaaa256eccc8efdf76d91c (diff) | |
download | coreboot-f18abab20047a23d7b29705ce274920ad36cd18a.tar.xz |
superio/serverengines/pilot: Avoid .c includes
Following the same reasoning as commit
d3043313a91dff3bc2f879ffb3b4bf23a364d711 superio/fintek/f81865f: Avoid
.c includes
Clean up the early_serial #include directives in mainboard/romstage code.
Change-Id: Ia6ed36c8517a95b651fefdd855eec0ec91d73187
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/5439
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/superio/serverengines/pilot/early_serial.c')
-rw-r--r-- | src/superio/serverengines/pilot/early_serial.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/superio/serverengines/pilot/early_serial.c b/src/superio/serverengines/pilot/early_serial.c index 4112901c4d..82e124c98c 100644 --- a/src/superio/serverengines/pilot/early_serial.c +++ b/src/superio/serverengines/pilot/early_serial.c @@ -22,23 +22,24 @@ /* PILOT Super I/O is only based on LPC observation done on factory system. */ #include <arch/io.h> +#include <device/pnp.h> #include "pilot.h" /* Pilot uses 0x5A/0xA5 pattern to actiavte deactivate config access. */ -static void pnp_enter_ext_func_mode(device_t dev) +void pnp_enter_ext_func_mode(device_t dev) { u16 port = dev >> 8; outb(0x5A, port); } -static void pnp_exit_ext_func_mode(device_t dev) +void pnp_exit_ext_func_mode(device_t dev) { u16 port = dev >> 8; outb(0xA5, port); } /* Serial config is a fairly standard procedure. */ -static void __attribute__((unused)) pilot_enable_serial(device_t dev, u16 iobase) +void pilot_enable_serial(device_t dev, u16 iobase) { pnp_enter_ext_func_mode(dev); pnp_set_logical_device(dev); @@ -47,7 +48,7 @@ static void __attribute__((unused)) pilot_enable_serial(device_t dev, u16 iobase pnp_exit_ext_func_mode(dev); } -static void __attribute__((unused)) pilot_disable_serial(device_t dev) +void pilot_disable_serial(device_t dev) { pnp_enter_ext_func_mode(dev); pnp_set_logical_device(dev); |