added virtualized CRTC access with it's advantages

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7295 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rudolf Cornelissen
2004-04-22 08:41:03 +00:00
parent 3a4a20a09e
commit 0669fe20bd
14 changed files with 266 additions and 106 deletions
@@ -5,7 +5,7 @@
Other authors:
Mark Watson;
Apsed;
Rudolf Cornelissen 10/2002-3/2004.
Rudolf Cornelissen 10/2002-4/2004.
*/
#ifndef DRIVERINTERFACE_H
@@ -86,7 +86,7 @@ typedef struct settings { // apsed, see comments in nv.settings
uint32 memory;
bool usebios;
bool hardcursor;
bool greensync;
bool switchhead;
} settings;
/*shared info*/
@@ -147,6 +147,7 @@ typedef struct {
display_mode dm2; /* current display mode configuration: head2 */
bool acc_mode; /* signals (non)accelerated mode */
bool interlaced_tv_mode;/* signals interlaced CRTC TV output mode */
bool crtc_switch_mode; /* signals dualhead switch mode if panels are used */
/*frame buffer config - for BDirectScreen*/
frame_buffer_config fbc; /* bytes_per_row and start of frame buffer: head1 */
@@ -232,6 +233,7 @@ typedef struct {
uint16 panel2_width; /* native horizontal resolution for digital panels */
uint16 panel2_height; /* navive vertical resolution for digital panels */
float panel2_aspect; /* panel's aspect ratio */
bool crtc2_prim; /* using CRTC2 as primary CRTC */
uint32 tvout_chip_type; /* see tvchip_type enum above */
status_t pins_status; /* B_OK if read correctly, B_ERROR if faked */