Commit Graph

23 Commits

Author SHA1 Message Date
Jesse Barnes a3962e6f74 Print block length of backlight table
For debugging VBIOS dumps
2009-08-18 10:57:18 -07:00
Jesse Barnes 320f216699 Dump LVDS backlight info from bios_reader
Add LVDS backlight and power VBT structures and dump from the BIOS reader.
2009-08-18 10:57:18 -07:00
Zhenyu Wang 62494407e5 Fix typo in bios_reader for invalid pointer cast
Fixed locally for af45482a52, but pushed
wrong commit.
2009-08-06 13:52:54 +08:00
Zhao Yakui af45482a52 Calculate the DVO relative offset in LVDS data entry to get the DVO timing
Now the DVO timing in LVDS data entry is obtained by using the
following step:
    a. get the entry size for every LVDS panel data
    b. Get the LVDS fp entry for the preferred panel type
    c. get the DVO timing by using entry->dvo_timing

    In our driver the entry->dvo_timing is related with the size of
lvds_fp_timing. For example: the size is 46.

    But it seems that the size of lvds_fp_timing varies on the differnt
platform. In such case we will get the incorrect DVO timing because of
the incorrect DVO offset in LVDS panel data entry.

Calculate the DVO timing offset in LVDS data entry to get the DVO timing
    a. get the DVO timing offset in the LVDS fp data entry by using the
pointer definition in LVDS data ptr
    b. get the LVDS data entry
    c. get the DVO timing by adding the DVO timing offset to data entry

https://bugs.freedesktop.org/show_bug.cgi?id=22787

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
2009-08-04 11:32:26 +08:00
Jesse Barnes 15af8ea6ab Fix LFP data block fetch
Apparently the proper way to do this is to use the LFP data pointer block to figure out the LFP data block entry size, then use that plus the panel index to calculate an offset into the LFP data block array.

Fixes fdo bug #19450.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-06-22 11:13:30 -07:00
Zhao Yakui 6ba148bbd7 Dynamically get the number of child device in general definition block
The size of general definition block varies on different platform/machines.
In such case the number of child device is also different.
And it will be better to get the number of child device in general definition
block dynamically.

The number of child device can be calculated by the following formula:
	(block_size - block_header_size) /
		sizeof( struct child_device_config)

http://bugs.freedesktop.org/show_bug.cgi?id=20429

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
2009-06-15 14:56:56 +08:00
Stijn van Drongelen 8d27247829 Fix typo in (unused) INTEL_BIOS_32 macro
Debian bug#527062 <http://bugs.debian.org/527062>

[jcristau: fix same typo in bios_reader.c]
Signed-off-by: Julien Cristau <jcristau@debian.org>
2009-05-05 16:38:59 +02:00
Zhenyu Wang 55359ef9ab Update driver feature block definition for missed fields 2009-03-02 15:20:27 +08:00
Eric Anholt 38a7683561 warnings cleanup 2009-02-28 00:51:14 -08:00
Zhenyu Wang 8718551f14 Update LVDS config bits definition in driver feature block
ALL_LVDS is actually not defined before and include GM45.
Embedded DP bit will be used for newer chips.
2009-02-25 09:54:03 +08:00
Zhenyu Wang 527e8177cd bios_reader: parse driver feature BDB 2009-02-18 11:28:01 +08:00
Jesse Barnes f659cc37e6 bios_reader: make mode timing output friendlier
Print out the calculated mode line values (as i830_bios.c uses) and
check for validity against known problems.
2009-01-13 16:51:49 -08:00
Ian Romanick 91c49067ab Prevent redefinitions of CARD8 and friends. Fixes build. 2009-01-07 21:45:54 -08:00
Paulo Cesar Pereira de Andrade d426f799f5 Include <X11/Xfuncproto.h> prior to including "edid.h" from the sdk. 2008-12-03 14:59:21 -02:00
Eric Anholt 3621183cf4 Fix bios_reader build against old servers.
The server's pci_device structure ends up conflicting with libpciaccess's.
Just don't include the server structure for this non-server tool.
2008-10-06 17:00:29 -07:00
Jesse Barnes 979bb109c6 Document more VBIOS functionality
Document a few more VBT structures and comment on VBIOS communication a
bit.  There should be enough there now for a sufficiently motivated
developer to start implementing support for hotkeys and other features
on pre-IGD OpRegion machines.
2008-10-06 16:05:46 -07:00
Jesse Barnes a4568740ee Be more verbose about panel data in VBIOS dumper
Dump more panel data, including number of expected entries.  Had to
refactor things a bit, but now each function should get size information
so further checking can be added more easily.
2008-09-30 12:48:32 -07:00
Jesse Barnes 4937b98981 Fix compiler warnings in VBIOS utils 2008-08-21 09:39:33 -07:00
Jesse Barnes ba4a4b7887 Add more panel debugging info to register dump & vbios reader 2008-08-20 14:39:34 -07:00
Jesse Barnes a21d4794b6 Reorganize VBIOS code
Make VBT parsing happen at driver init time rather than in each output init
function, to save time and better separate VBIOS code into i830_bios.[ch].  The
changes end up touching the output files due to field name changes, and allow
us to reorder & simplify our LFP mode detection code.
2008-08-05 13:37:38 -07:00
Eric Anholt 9a62d3b598 Remove i830+ driver's use of CARD*/INT* types for great justice.
Several uses are actually left, which are determined by the X Server
interfaces we're implementing.
2008-03-11 12:07:52 -07:00
Keith Packard b28817a87a Add i830_bios_get_aim_data_block to read AIM data from BIOS
Add-in modules have per-module data in the BIOS which contains configuration
information which cannot be entirely discovered.
2007-05-16 13:59:36 -07:00
Eric Anholt 786ee3df17 Add a standalone program for parsing VBT. 2006-04-16 13:05:35 -05:00