added preliminary flatpanel detection stuff

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6844 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rudolf Cornelissen
2004-03-01 20:00:16 +00:00
parent 4a6c7d6ffc
commit 3186091bdd
5 changed files with 101 additions and 11 deletions
@@ -5,7 +5,7 @@
Other authors:
Mark Watson;
Apsed;
Rudolf Cornelissen 10/2002-1/2004.
Rudolf Cornelissen 10/2002-2/2004.
*/
#ifndef DRIVERINTERFACE_H
@@ -200,10 +200,11 @@ typedef struct {
CH7005,
CH7006,
CH7007,
CH7008,
SAA7102,
SAA7103,
SAA7104,
SAA7108,
SAA7114,
SAA7105,
BT868,
BT869,
CX25870,
@@ -219,6 +220,8 @@ typedef struct {
uint32 card_type; /* see card_type enum above */
uint32 card_arch; /* see card_arch enum above */
bool laptop; /* mobile chipset or not ('internal' flatpanel!) */
uint16 panel_width; /* native horizontal resolution for laptop panels */
uint16 panel_height; /* navive vertical resolution for laptop panels */
uint32 tvout_chip_type; /* see tvchip_type enum above */
status_t pins_status; /* B_OK if read correctly, B_ERROR if faked */
bool sdram; /* TRUE if SDRAM card: needed info for 2D acceleration */
@@ -482,6 +482,9 @@
#define NVDAC_GENCTRL 0x00680600
#define NVDAC_TSTCTRL 0x00680608
#define NVDAC_TSTDATA 0x00680610
/* (flatpanel registers) */
#define NVDAC_FP_VDISPEND 0x00680800
#define NVDAC_FP_HDISPEND 0x00680820
/* secondary head */
#define NVDAC2_CURPOS 0x00682300
#define NVDAC2_PIXPLLC 0x00680520
@@ -489,6 +492,9 @@
#define NVDAC2_PIXPLLC2 0x0068057c /* NV31, NV36 only */
#define NVDAC2_GENCTRL 0x00682600
#define NVDAC2_TSTCTRL 0x00682608
/* (flatpanel registers) */
#define NVDAC2_FP_VDISPEND 0x00682800
#define NVDAC2_FP_HDISPEND 0x00682820
/* Nvidia CRTC indexed registers */
/* VGA standard registers: */
@@ -524,6 +530,7 @@
#define NVCRTCX_CURCTL2 0x2f
#define NVCRTCX_CURCTL1 0x30
#define NVCRTCX_CURCTL0 0x31
#define NVCRTCX_LCD 0x33
#define NVCRTCX_INTERLACE 0x39
#define NVCRTCX_EXTRA 0x41
#define NVCRTCX_OWNER 0x44