diff options
Diffstat (limited to 'src/atii2c.c')
-rw-r--r-- | src/atii2c.c | 44 |
1 files changed, 1 insertions, 43 deletions
diff --git a/src/atii2c.c b/src/atii2c.c index 1712d93..13a9f37 100644 --- a/src/atii2c.c +++ b/src/atii2c.c @@ -26,8 +26,6 @@ #endif #include "atii2c.h" -#include "atiload.h" -#include "atimach64i2c.h" #include "atistruct.h" #include "xf86.h" @@ -154,7 +152,7 @@ ATII2CStart /* * ATII2CAddress -- * - * This function puts a Start bit and an 8-bit address on the I2C bus. + * This function puts an 8-bit address on the I2C bus. */ static Bool ATII2CAddress @@ -353,43 +351,3 @@ ATICreateI2CBusRec xfree(pATII2C); return NULL; } - -/* - * ATII2CPreInit -- - * - * This is called by ATIPreInit() to create I2C bus record(s) for the adapter. - */ -void -ATII2CPreInit(ScrnInfoPtr pScreenInfo, ATIPtr pATI) -{ - if (ATILoadModule(pScreenInfo, "i2c", ATIi2cSymbols)) - ATIMach64I2CPreInit(pScreenInfo, pATI); -} - -/* - * ATII2CFreeScreen -- - * - * This is called by ATIFreeScreen() to remove the driver's I2C interface. - */ -void -ATII2CFreeScreen -( - int iScreen -) -{ - I2CBusPtr pI2CBus, *ppI2CBus; - ATII2CPtr pATII2C; - int nI2CBus; - - nI2CBus = xf86I2CGetScreenBuses(iScreen, &ppI2CBus); - while (--nI2CBus >= 0) - { - pI2CBus = ppI2CBus[nI2CBus]; - pATII2C = pI2CBus->DriverPrivate.ptr; - - xf86DestroyI2CBusRec(pI2CBus, TRUE, TRUE); - xfree(pATII2C); - } - - xfree(ppI2CBus); -} |