From: Ben Gras Date: Tue, 20 Jun 2006 09:48:26 +0000 (+0000) Subject: Fix for new *_ins* i/o functions X-Git-Tag: v3.1.3~324 X-Git-Url: http://zhaoyanbai.com/repos/icons/debian/static/doxygen.log?a=commitdiff_plain;h=d61715a69eefa63b51f9300cfcb758e8a810df4c;p=minix.git Fix for new *_ins* i/o functions --- diff --git a/drivers/dp8390/Makefile b/drivers/dp8390/Makefile index a3a133dba..b60585fb5 100644 --- a/drivers/dp8390/Makefile +++ b/drivers/dp8390/Makefile @@ -13,7 +13,7 @@ d = .. CC = exec cc CFLAGS = -I$i LDFLAGS = -i -LIBS = -lsys -lsysutil -ltimers +LIBS = -lsysutil -lsys -ltimers OBJ = 3c503.o dp8390.o ne2000.o rtl8029.o wdeth.o diff --git a/drivers/dp8390/dp8390.c b/drivers/dp8390/dp8390.c index 287312011..dc587b317 100644 --- a/drivers/dp8390/dp8390.c +++ b/drivers/dp8390/dp8390.c @@ -1945,7 +1945,7 @@ static void do_vir_insb(port_t port, int proc, vir_bytes buf, size_t size) { int r; - r= sys_sdevio(DIO_INPUT, port, DIO_BYTE, proc, (void *)buf, size); + r= sys_insb(port, proc, (void *) buf, size); if (r != OK) panic("DP8390", "sys_sdevio failed", r); } @@ -1954,7 +1954,7 @@ static void do_vir_insw(port_t port, int proc, vir_bytes buf, size_t size) { int r; - r= sys_sdevio(DIO_INPUT, port, DIO_WORD, proc, (void *)buf, size); + r= sys_insw(port, proc, (void *) buf, size); if (r != OK) panic("DP8390", "sys_sdevio failed", r); } @@ -1963,7 +1963,7 @@ static void do_vir_outsb(port_t port, int proc, vir_bytes buf, size_t size) { int r; - r= sys_sdevio(DIO_OUTPUT, port, DIO_BYTE, proc, (void *)buf, size); + r= sys_outsb(port, proc, (void *) buf, size); if (r != OK) panic("DP8390", "sys_sdevio failed", r); } @@ -1972,7 +1972,7 @@ static void do_vir_outsw(port_t port, int proc, vir_bytes buf, size_t size) { int r; - r= sys_sdevio(DIO_OUTPUT, port, DIO_WORD, proc, (void *)buf, size); + r= sys_outsw(port, proc, (void *) buf, size); if (r != OK) panic("DP8390", "sys_sdevio failed", r); }