diff options
author | Eric Anholt <eric@anholt.net> | 2008-03-11 11:27:10 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-03-11 11:27:10 -0700 |
commit | 15f17aa682129c57d3864a355834edff06e91540 (patch) | |
tree | f6453ad9c26ac57a0f96c70e60254d5bf4ce2b75 /src/sil164/sil164.c | |
parent | 642ba6278876ec945ad687c2b9624e532cd3f629 (diff) |
Cleanse DVO drivers of CARD* types.
Diffstat (limited to 'src/sil164/sil164.c')
-rw-r--r-- | src/sil164/sil164.c | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/sil164/sil164.c b/src/sil164/sil164.c index f7d414a2..0c325456 100644 --- a/src/sil164/sil164.c +++ b/src/sil164/sil164.c @@ -45,8 +45,23 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "sil164.h" #include "sil164_reg.h" +typedef struct _Sil164SaveRec { + uint8_t reg8; + uint8_t reg9; + uint8_t regc; +} SIL164SaveRec; + +typedef struct { + I2CDevRec d; + Bool quiet; + SIL164SaveRec SavedReg; + SIL164SaveRec ModeReg; +} SIL164Rec, *SIL164Ptr; + +#define SILPTR(d) ((SIL164Ptr)(d->DriverPrivate.ptr)) + static Bool -sil164ReadByte(SIL164Ptr sil, int addr, CARD8 *ch) +sil164ReadByte(SIL164Ptr sil, int addr, uint8_t *ch) { if (!xf86I2CReadByte(&(sil->d), addr, ch)) { if (!sil->quiet) { @@ -60,7 +75,7 @@ sil164ReadByte(SIL164Ptr sil, int addr, CARD8 *ch) } static Bool -sil164WriteByte(SIL164Ptr sil, int addr, CARD8 ch) +sil164WriteByte(SIL164Ptr sil, int addr, uint8_t ch) { if (!xf86I2CWriteByte(&(sil->d), addr, ch)) { if (!sil->quiet) { @@ -131,7 +146,7 @@ static xf86OutputStatus sil164_detect(I2CDevPtr d) { SIL164Ptr sil = SILPTR(d); - CARD8 reg9; + uint8_t reg9; sil164ReadByte(sil, SIL164_REG9, ®9); @@ -190,7 +205,7 @@ static void sil164_dump_regs(I2CDevPtr d) { SIL164Ptr sil = SILPTR(d); - CARD8 val; + uint8_t val; sil164ReadByte(sil, SIL164_FREQ_LO, &val); xf86DrvMsg(sil->d.pI2CBus->scrnIndex, X_INFO, "SIL164_FREQ_LO: 0x%02x\n", |