summaryrefslogtreecommitdiff
path: root/src/i830_i2c.c
AgeCommit message (Collapse)Author
2010-09-12Rename common infrastructure to the intel namespace.Owain G. Ainsworth
After splitting out the i810 driver into its own legacy directory, we can identify the common routines not as i830 but as intel. This clarifies the code which *is* i830 specific. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> (cherry picked from commit 5c663ce8442bd3b69c96e29061c57cc565fca91d) Conflicts: src/Makefile.am src/drmmode_display.c src/intel.h src/intel_batchbuffer.c src/intel_dri.c src/intel_driver.c src/intel_memory.c src/intel_video.c src/xvmc/intel_xvmc.h OGA: adapted for ums
2010-09-11i810: Move into a legacy directory.Owain G. Ainsworth
The driver is still built but is no longer under active development so move it and supporting files to a new directory. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> (cherry picked from commit 797d173a9af12055ba2609293182b616dd673ef4) Conflicts: configure.ac src/Makefile.am src/common.h src/i830.h src/i830_accel.c src/i830_batchbuffer.c src/i830_driver.c src/legacy/i810/i810_driver.c OGA: had to make abunch of changes due to ums still existing, but this was more sensible that having to modify every single cherry-picked patch from now on.
2010-03-01Rename the xf86 screen private from pScrn to scrn.Owain G. Ainsworth
(cherry picked from commit af27a3a0a5645c6f41f583611bd0f2559dc7cb2f) Conflicts: src/i830.h src/i830_accel.c src/i830_batchbuffer.c src/i830_display.h src/i830_driver.c src/i830_memory.c src/i830_video.c
2010-03-01Rename the screen private from I830Ptr pI830 to intel_screen_private *intel.Owain G. Ainsworth
This is the beginning of the campaign to remove some of the absurd use of Hungarian in the driver. Not that I don't like Hungarian, but I don't need to know that pI830 is a pPointer. (cherry picked from commit cc5d3ba3c331c3b1becf2d19277b24144bf34cfa) Conflicts: src/i830.h src/i830_batchbuffer.c src/i830_batchbuffer.h src/i830_dri.c src/i830_driver.c src/i830_hwmc.c src/i830_memory.c src/i830_uxa.c src/i830_video.c src/i915_hwmc.c src/i965_hwmc.c
2009-07-28intel: remove unneeded includesDave Airlie
none of these need the resource includes
2008-03-11Remove i830+ driver's use of CARD*/INT* types for great justice.Eric Anholt
Several uses are actually left, which are determined by the X Server interfaces we're implementing.
2008-02-26Fix SDVO I2C access on Mac Mini in EFI mode.Eric Anholt
The GMBUS was being left in SDVO pin access mode, which blocked our bit-banging access to those pins. Thanks to Peter Jones for quick debugging turnaround in getting this fixed.
2008-01-04Fix copy'n'paste-o in unused airlied i2c code.hulifox008
2007-03-17Increase DDC I2C RiseFallTime to handle older monitorsKeith Packard
Changing this value slows the entire I2C bus down, making it far more reliable on older monitors. Note the same change has been made in the core X server code; this change is included here to ensure that older X servers work reliably with this driver.
2007-03-17Remove extra (and incorrect) I2C ByteTimeout setting.Keith Packard
Setting the value correctly and then immediately breaking it caused many I2C transactions to timeout with slow monitors. Oops.
2007-03-13Use a POSTING_READ(reg) macro instead of using the (void)INREG(reg) pattern.Eric Anholt
2007-03-13Add PCI write posting protection to i2c putbits.Eric Anholt
2006-12-21Use Vesa DDC timeouts for all I2C busses.Keith Packard
The default I2C timeouts are very short, and while most modern monitors have no trouble responding at that rate, some older ones cannot manage.
2006-12-19Writing 1 to I2C line means to tristate the bus so others can manipulate it.Keith Packard
We were forcing bus lines to 1 which was breaking DDC for some monitors. Instead, make the PutBits function just tristate when writing 1 bits.
2006-11-30Tristate the clock/data pins during GPIO when released while getting values.Eric Anholt
While the register is laid out suggesting that you can read a low value while driving the output high, and the I2C spec seems to indicate that you should be able to as well, and on some hardware this works successfully, on the i865 and perhaps some other chips it doesn't. So, if we're not holding the clock or data pin low during GetBits, tristate the pin so that we can successfully read. This fixes i865 analog (VGA) DDC so it successfully sees slave acks. Also, improve the I2C bit-banging debugging.
2006-11-30Preserve some GPIO bits that the docs tell us to.Eric Anholt
2006-11-30Add debug code for the bit-banging I2C implementation.Eric Anholt
2006-11-02Add airlied's I2C code, ifdeffed out.Eric Anholt
I've gone back to compare our behavior to it several times, so I'll just keep the code in tree for now.
2006-09-08Remove xf86_ansic.h usage.Eric Anholt
2006-04-24Simplify the i2c code by using the GetBits/PutBits interface rather thanEric Anholt
reimplementing it.
2006-04-06Add enough of airlied's DDC/I2C work to pull EDID info from my CRT.Eric Anholt