Fintek and Intel i3100 Super I/O cleanups.
[coreboot.git] / src / superio / fintek / f71863fg / f71863fg_early_serial.c
index afa9c357af89c6a1dccdf0badefc7a3c094df6b7..7eeb06aef06f678d8a4dc20c0ea434c4f32f5bfe 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the coreboot project.
  *
- * Copyright (C) 2010 Wang Qing Pei<wangqingpei@gmail.com>
+ * Copyright (C) 2007 Corey Osgood <corey@slightlyhackish.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
 #include <arch/romcc_io.h>
 #include "f71863fg.h"
 
-static inline void pnp_enter_conf_state(device_t dev)
+static void pnp_enter_conf_state(device_t dev)
 {
-       unsigned int port = dev >> 8;
+       u16 port = dev >> 8;
        outb(0x87, port);
 }
 
 static void pnp_exit_conf_state(device_t dev)
 {
-       unsigned int port = dev >> 8;
+       u16 port = dev >> 8;
        outb(0xaa, port);
 }
 
-static void f71863fg_enable_serial(device_t dev, unsigned int iobase)
+static void f71863fg_enable_serial(device_t dev, u16 iobase)
 {
        pnp_enter_conf_state(dev);
        pnp_set_logical_device(dev);