Index: src/atii2c.c =================================================================== RCS file: /cvs/xorg/driver/xf86-video-ati/src/atii2c.c,v retrieving revision 1.3 diff -u -r1.3 atii2c.c --- src/atii2c.c 11 Jul 2005 02:29:44 -0000 1.3 +++ src/atii2c.c 16 Apr 2006 16:36:41 -0000 @@ -117,15 +117,14 @@ /* - * ATII2CAddress -- + * ATII2CStart -- * - * This function puts a Start bit and an 8-bit address on the I2C bus. + * This function puts a start signal on the I2C bus. */ -static Bool -ATII2CAddress +static void +ATII2CStart ( - I2CDevPtr pI2CDev, - I2CSlaveAddr Address + I2CDevPtr pI2CDev ) { I2CBusPtr pI2CBus = pI2CDev->pI2CBus; @@ -147,6 +146,21 @@ ATII2CSCLBitOn; ATII2CSDABitOff; ATII2CSCLBitOff; +} + +/* + * ATII2CAddress -- + * + * This function puts a Start bit and an 8-bit address on the I2C bus. + */ +static Bool +ATII2CAddress +( + I2CDevPtr pI2CDev, + I2CSlaveAddr Address +) +{ + I2CBusPtr pI2CBus = pI2CDev->pI2CBus; /* Send low byte of device address */ if ((*pI2CBus->I2CPutByte)(pI2CDev, (I2CByte)Address)) @@ -318,6 +332,7 @@ pI2CBus->scrnIndex = iScreen; pI2CBus->I2CAddress = ATII2CAddress; + pI2CBus->I2CStart = ATII2CStart; pI2CBus->I2CStop = ATII2CStop; pI2CBus->I2CPutByte = ATII2CPutByte; pI2CBus->I2CGetByte = ATII2CGetByte;