Commit Graph

33 Commits

Author SHA1 Message Date
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
Eric Anholt e5133a94dc unifdef LIBPCIACCESS and XSERVER_LIBPCIACCESS.
Depending on new server means these are always present.
2009-04-27 17:05:59 -07:00
Julien Cristau 84f69081ab Require xserver 1.3
I don't think anyone tests this against an old server anymore.

Signed-off-by: Eric Anholt <eric@anholt.net>
2009-04-21 15:25:58 -07: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 1baebabc3a Add swf_dumper to .gitignore 2008-08-19 16:02:55 -07:00
Jesse Barnes 7a1cc48276 Add VBIOS software flags dumper program
Still need to actually print all the flags & test on various platforms, but at
least the bits are documented now.
2008-08-19 10:45:11 -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
Alan Coopersmith 165c0865d8 Define DEFFILEMODE for OS'es that don't have it 2008-05-21 14:56:27 -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
Kristian Høgsberg 4ea67e9b85 Crack down on warnings.
Fix printf formatting warnings, wrap a couple of long lines, nuke
unused variables, add missing #include <unistd.h>.
2008-03-11 13:54:59 -04:00
Mark Kettenis fdc25cb0ca Bug #14649: Fix build if pciaccess headers are not with other xorg headers.
We failed to include the pciaccess header flags in our build.  Even if the
server was to include those flags for us, it would leave us broken for the
tools-only case, and it's easier to just put the flags everywhere so we avoid
future copy'n'paste mistakes.
2008-02-26 17:26:50 -08:00
Eric Anholt 219354af21 Restore building of pciaccess-based tools even if the server doesn't use it. 2007-10-01 16:09:13 -07:00
Keith Packard 3d3bf493a3 Intel driver configuration (only) changes for X server libpciaccess usage.
Detect whether the target X server uses libpciaccess, using it in the driver
compilation as necessary. This change means that utilities that used to use
libpciaccess will not do so unless the driver itself uses libpciaccess. Yes,
that could be fixed, but it doesn't seem that important.

This patch does not include any code changes necessary to actually have the
driver build against an X server using libpciaccess.
2007-08-26 22:27:34 -07:00
Eric Anholt ba90d94432 Add the file mode for bios_dumper output so it doesn't have 000 permissions. 2007-08-06 14:34:58 -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 274b99e5e7 Don't forget the warnings CFLAGS in subdirectories. 2007-03-30 17:19:22 -07:00
Eric Anholt 9d6d9ace4b Move vendor ID check in the utils to after pci_device_probe.
Even current libpciaccess seems to require this.
2007-03-16 19:41:54 -07:00
Eric Anholt b7b6063e62 Add a little BIOS dumper program.
This isn't actually tested yet as libpciaccess doesn't do rom access on
non-linux yet.
2007-03-04 17:18:48 -08:00
Keith Packard 0ca926e63c Check for presence of xf86Modes.h file.
xf86Modes.h file signals the availability of the new modes API in the
server; use that instead of counting on X server version numbers.
Also, finish eliminating use of local copies of those header files.
2007-02-16 02:19:10 -08:00
Eric Anholt 786ee3df17 Add a standalone program for parsing VBT. 2006-04-16 13:05:35 -05:00