summaryrefslogtreecommitdiff
path: root/util/superiotool/nsc.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/nsc.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/nsc.c')
-rw-r--r--util/superiotool/nsc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/superiotool/nsc.c b/util/superiotool/nsc.c
index f5b2cd48e9..3a3336a6b4 100644
--- a/util/superiotool/nsc.c
+++ b/util/superiotool/nsc.c
@@ -479,21 +479,21 @@ void probe_idregs_nsc(uint16_t port)
probing_for("NSC", "", port);
- outb(CHIP_ID_REG, port);
- if (inb(port) != CHIP_ID_REG) {
+ OUTB(CHIP_ID_REG, port);
+ if (INB(port) != CHIP_ID_REG) {
if (verbose)
printf(NOTFOUND "port=0x%02x, port+1=0x%02x\n",
- inb(port), inb(port + 1));
+ INB(port), INB(port + 1));
return;
}
- id = inb(port + 1);
+ id = INB(port + 1);
- outb(CHIP_REV_REG, port);
- if (inb(port) != CHIP_REV_REG) {
+ OUTB(CHIP_REV_REG, port);
+ if (INB(port) != CHIP_REV_REG) {
printf("Warning: Can't get chip revision. Setting to 0xff.\n");
rev = 0xff;
} else {
- rev = inb(port + 1);
+ rev = INB(port + 1);
}
if (superio_unknown(reg_table, id)) {