summaryrefslogtreecommitdiff
path: root/src/superio/winbond
diff options
context:
space:
mode:
Diffstat (limited to 'src/superio/winbond')
-rw-r--r--src/superio/winbond/w83627hf/w83627hf.h6
-rw-r--r--src/superio/winbond/w83627hf/w83627hf_early_init.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/src/superio/winbond/w83627hf/w83627hf.h b/src/superio/winbond/w83627hf/w83627hf.h
index 56ade8feee..fa74cbd6df 100644
--- a/src/superio/winbond/w83627hf/w83627hf.h
+++ b/src/superio/winbond/w83627hf/w83627hf.h
@@ -109,3 +109,9 @@
#define W83627HF_HAP1 0x14
#define W83627HF_XSCNF 0x15
#define W83627HF_XWBCNF 0x16
+
+#if defined(__PRE_RAM__) && !defined(__ROMCC__)
+void w83627hf_disable_dev(device_t dev);
+void w83627hf_enable_dev(device_t dev, unsigned iobase);
+#endif
+
diff --git a/src/superio/winbond/w83627hf/w83627hf_early_init.c b/src/superio/winbond/w83627hf/w83627hf_early_init.c
index 1f580524e2..a74e10a414 100644
--- a/src/superio/winbond/w83627hf/w83627hf_early_init.c
+++ b/src/superio/winbond/w83627hf/w83627hf_early_init.c
@@ -23,13 +23,13 @@
#include <arch/romcc_io.h>
#include "w83627hf.h"
-static void w83627hf_disable_dev(device_t dev)
+void w83627hf_disable_dev(device_t dev)
{
pnp_set_logical_device(dev);
pnp_set_enable(dev, 0);
}
-static void w83627hf_enable_dev(device_t dev, unsigned iobase)
+void w83627hf_enable_dev(device_t dev, unsigned iobase)
{
pnp_set_logical_device(dev);
pnp_set_enable(dev, 0);