From: Philip Homburg Date: Mon, 24 Oct 2005 14:02:45 +0000 (+0000) Subject: Pass the right pointers to sys_inb X-Git-Tag: v3.1.2a~543 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/named.html?a=commitdiff_plain;h=c11611802e7533b83d6310b00d87de3ae4cefeec;p=minix.git Pass the right pointers to sys_inb --- diff --git a/drivers/libpci/pci.c b/drivers/libpci/pci.c index e3d2380d3..b242db218 100644 --- a/drivers/libpci/pci.c +++ b/drivers/libpci/pci.c @@ -109,7 +109,7 @@ FORWARD _PROTOTYPE( void pcii_wsts, (int busind, U16_t value) ); * helper functions for I/O * *===========================================================================*/ PUBLIC unsigned pci_inb(U16_t port) { - U8_t value; + u32_t value; int s; if ((s=sys_inb(port, &value)) !=OK) printf("PCI: warning, sys_inb failed: %d\n", s); @@ -786,7 +786,7 @@ PRIVATE int do_piix(devind) int devind; { int i, s, dev, func, irqrc, irq; - u16_t elcr1, elcr2, elcr; + u32_t elcr1, elcr2, elcr; #if DEBUG printf("in piix\n");