From 2527f2b69aa7dffa3ba4359c45955e3185bdf0e6 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Wed, 6 Jun 2007 00:08:45 -0400 Subject: RADEON: implement support for posting cards based on x86 bios tables (untested) This is based on the netbsd radeonfb driver by Garrett D'Amore. The code is not hooked up yet, but should allow you to post cards without needing to execute bios code. This should be useful on non-x86 platforms, for posting secndary cards, and for suspend/resume. Works on legacy bioses only (no ATOM support). --- src/radeon.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/radeon.h') diff --git a/src/radeon.h b/src/radeon.h index 260c413c..f1b2fa3e 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -174,6 +174,18 @@ typedef enum { #define RADEON_ALIGN(x,bytes) (((x) + ((bytes) - 1)) & ~((bytes) - 1)) #define RADEONPTR(pScrn) ((RADEONInfoPtr)(pScrn)->driverPrivate) +typedef struct { + int revision; + CARD16 rr1_offset; + CARD16 rr2_offset; + CARD16 dyn_clk_offset; + CARD16 pll_offset; + CARD16 mem_config_offset; + CARD16 mem_reset_offset; + CARD16 short_mem_offset; + CARD16 rr3_offset; + CARD16 rr4_offset; +} RADEONBIOSInitTable; typedef struct { /* Common registers */ @@ -734,6 +746,7 @@ typedef struct { Bool want_vblank_interrupts; RADEONBIOSConnector BiosConnector[RADEON_MAX_BIOS_CONNECTOR]; + RADEONBIOSInitTable BiosTable; Rotation rotation; void (*PointerMoved)(int, int, int); -- cgit v1.2.3