diff options
author | Alex Deucher <agd5f@yahoo.com> | 2004-07-27 02:50:41 +0000 |
---|---|---|
committer | Alex Deucher <agd5f@yahoo.com> | 2004-07-27 02:50:41 +0000 |
commit | 19002e47a0dbf55e035b674116a533ec9814edfa (patch) | |
tree | 7cc662972e56e4d8627e0eae104dba4183064989 /hw/xfree86/i2c | |
parent | 2a7b137d41eb8ce6efc45b47b5df0c89eb4f5d93 (diff) |
- enable maven support for TV detection, DPMS, and DDC on crtc2 on G400
(Ryan Underwood) (http://bugs.xfree86.org/show_bug.cgi?id=1098)
- expose I2CStart; needed for mga maven support (Ryan Underwood)
Diffstat (limited to 'hw/xfree86/i2c')
-rw-r--r-- | hw/xfree86/i2c/xf86i2c.c | 2 | ||||
-rw-r--r-- | hw/xfree86/i2c/xf86i2c.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/hw/xfree86/i2c/xf86i2c.c b/hw/xfree86/i2c/xf86i2c.c index 55a6cb059..77e3c2634 100644 --- a/hw/xfree86/i2c/xf86i2c.c +++ b/hw/xfree86/i2c/xf86i2c.c @@ -818,6 +818,7 @@ xf86I2CBusInit(I2CBusPtr b) if (b->I2CPutByte == NULL || b->I2CGetByte == NULL || b->I2CAddress == NULL || + b->I2CStart == NULL || b->I2CStop == NULL) return FALSE; } else { @@ -825,6 +826,7 @@ xf86I2CBusInit(I2CBusPtr b) b->I2CGetByte = I2CGetByte; b->I2CAddress = I2CAddress; b->I2CStop = I2CStop; + b->I2CStart = I2CStart; } } diff --git a/hw/xfree86/i2c/xf86i2c.h b/hw/xfree86/i2c/xf86i2c.h index b6ef41feb..099406e8f 100644 --- a/hw/xfree86/i2c/xf86i2c.h +++ b/hw/xfree86/i2c/xf86i2c.h @@ -27,6 +27,7 @@ typedef struct _I2CBusRec { /* Look at the generic routines to see how these functions should behave. */ + Bool (*I2CStart) (I2CBusPtr b, int timeout); Bool (*I2CAddress)(I2CDevPtr d, I2CSlaveAddr); void (*I2CStop) (I2CDevPtr d); Bool (*I2CPutByte)(I2CDevPtr d, I2CByte data); |