summaryrefslogtreecommitdiff
path: root/util/superiotool/ite.c
diff options
context:
space:
mode:
authorAndriy Gapon <avg@icyb.net.ua>2008-10-28 22:13:38 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2008-10-28 22:13:38 +0000
commitb64aa60f1fd5e6c84ec8ff6ad0baa7afee0d810a (patch)
treeaf1c87228d5b0ed4e7726cf406c742c9e72c2313 /util/superiotool/ite.c
parentc372aa4f77a81e24c1ced47b1da010814b3da3bf (diff)
Allow superiotool to compile and work on FreeBSD. Tested on FreeBSD 7.
Signed-off-by: Andriy Gapon <avg@icyb.net.ua> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3698 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/superiotool/ite.c')
-rw-r--r--util/superiotool/ite.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/superiotool/ite.c b/util/superiotool/ite.c
index fcb6375227..1cfa317037 100644
--- a/util/superiotool/ite.c
+++ b/util/superiotool/ite.c
@@ -468,11 +468,11 @@ static void enter_conf_mode_ite_legacy(uint16_t port, const uint8_t init[][4])
/* Determine Super I/O config port. */
idx = (port == 0x3f0) ? 0 : ((port == 0x3bd) ? 1 : 2);
for (i = 0; i < 4; i++)
- outb(init[idx][i], ISA_PNP_ADDR);
+ OUTB(init[idx][i], ISA_PNP_ADDR);
/* Sequentially write the 32 MB PnP init values. */
for (i = 0; i < 32; i++)
- outb(initkey_mbpnp[i], port);
+ OUTB(initkey_mbpnp[i], port);
}
/**
@@ -482,10 +482,10 @@ static void enter_conf_mode_ite_legacy(uint16_t port, const uint8_t init[][4])
*/
static void enter_conf_mode_ite(uint16_t port)
{
- outb(0x87, port);
- outb(0x01, port);
- outb(0x55, port);
- outb((port == 0x2e) ? 0x55 : 0xaa, port);
+ OUTB(0x87, port);
+ OUTB(0x01, port);
+ OUTB(0x55, port);
+ OUTB((port == 0x2e) ? 0x55 : 0xaa, port);
}
static void exit_conf_mode_ite(uint16_t port)