* The boot loader now creates a CRTCInfoBlock structure when detailed EDID
mode informations are available. * This is passed to the graphics card when the mode is set in the hopes that it will be more conforming. * Not yet tested on real hardware, though, therefore the VESA driver doesn't do anything like this yet. I will test next, but please report any problems with this nonetheless. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28390 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
** Copyright 2004, Axel Dörfler, [email protected]. All rights reserved.
|
||||
** Distributed under the terms of the OpenBeOS License.
|
||||
*/
|
||||
* Copyright 2004-2008, Axel Dörfler, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef VESA_H
|
||||
#define VESA_H
|
||||
|
||||
@@ -119,6 +119,28 @@ struct vbe_mode_info {
|
||||
#define SET_MODE_DONT_CLEAR_MEMORY (1 << 15)
|
||||
|
||||
|
||||
/* CRTC info block structure */
|
||||
|
||||
struct crtc_info_block {
|
||||
uint16 horizontal_total;
|
||||
uint16 horizontal_sync_start;
|
||||
uint16 horizontal_sync_end;
|
||||
uint16 vertical_total;
|
||||
uint16 vertical_sync_start;
|
||||
uint16 vertical_sync_end;
|
||||
uint8 flags;
|
||||
uint32 pixel_clock; // in Hz
|
||||
uint16 refresh_rate; // in 0.01 Hz
|
||||
|
||||
uint8 _reserved[40];
|
||||
} _PACKED;
|
||||
|
||||
#define CRTC_DOUBLE_SCAN 0x01
|
||||
#define CRTC_INTERLACED 0x02
|
||||
#define CRTC_NEGATIVE_HSYNC 0x04
|
||||
#define CRTC_NEGATIVE_VSYNC 0x08
|
||||
|
||||
|
||||
/* VBE 3.0 protected mode interface
|
||||
* The BIOS area can be scanned for the protected mode
|
||||
* signature that identifies the structure below.
|
||||
|
||||
Reference in New Issue
Block a user