From 72f0e88c2c3b94fee781961dd11c117337348271 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Thu, 13 Mar 2008 16:31:30 -0300 Subject: [PATCH] Replace calls to xf86usleep with calls to usleep and include unistd.h. --- src/i128_driver.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/i128_driver.c b/src/i128_driver.c index 1d67178..40fdf54 100644 --- a/src/i128_driver.c +++ b/src/i128_driver.c @@ -67,6 +67,8 @@ #include "i128.h" #include "i128reg.h" +#include + /* * Forward definitions for the functions that make up the driver. */ @@ -1902,7 +1904,7 @@ I128DDC1Read(ScrnInfoPtr pScrn) ddc = inl(iobase + 0x2C); if ((ddc & DDC_MODE_MASK) != DDC_MODE_DDC1) { outl(iobase + 0x2C, DDC_MODE_DDC1); - xf86usleep(40); + usleep(40); } /* wait for Vsync */ @@ -1919,7 +1921,7 @@ I128DDC1Read(ScrnInfoPtr pScrn) if ((ddc & DDC_MODE_MASK) != DDC_MODE_DDC1) { outl(iobase + 0x2C, ~DDC_MODE_MASK & ddc); - xf86usleep(40); + usleep(40); } return val; @@ -2004,14 +2006,14 @@ I128I2CInit(ScrnInfoPtr pScrn) soft_sw &= 0xfffffffc; soft_sw |= 0x00000001; outl(iobase + 0x28, soft_sw); - xf86usleep(1000); + usleep(1000); /* set default as ddc2 mode */ ddc = inl(iobase + 0x2C); ddc &= ~DDC_MODE_MASK; ddc |= DDC_MODE_DDC2; outl(iobase + 0x2C, ddc); - xf86usleep(40); + usleep(40); if (!xf86I2CBusInit(I2CPtr)) { return FALSE; -- 1.5.4.3