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
This commit is contained in:
Andriy Gapon
2008-10-28 22:13:38 +00:00
committed by Uwe Hermann
parent c372aa4f77
commit b64aa60f1f
7 changed files with 66 additions and 30 deletions

View File

@ -470,18 +470,18 @@ static const struct superio_registers reg_table[] = {
static void enter_conf_mode_winbond_88(uint16_t port)
{
outb(0x88, port);
OUTB(0x88, port);
}
static void enter_conf_mode_winbond_89(uint16_t port)
{
outb(0x89, port);
OUTB(0x89, port);
}
static void enter_conf_mode_winbond_86(uint16_t port)
{
outb(0x86, port);
outb(0x86, port);
OUTB(0x86, port);
OUTB(0x86, port);
}
static void probe_idregs_winbond_helper(const char *init, uint16_t port)