More SandyBridge specifics: Use the proper registers for display detection and
DPMS. Still needs to be reworked... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42846 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -227,6 +227,8 @@ struct intel_free_graphics_memory {
|
||||
// up, SandyBridge, etc.).
|
||||
#define PCH_DE_INTERRUPT_ENABLE 0x4400c // INTEL_INTERRUPT_ENABLED
|
||||
#define PCH_DISPLAY_A_ANALOG_PORT 0xe1100 // INTEL_DISPLAY_A_ANALOG_PORT
|
||||
#define PCH_DISPLAY_A_DIGITAL_PORT 0xe1120 // INTEL_DISPLAY_A_DIGITAL_PORT
|
||||
#define PCH_DISPLAY_B_DIGITAL_PORT 0xe1140 // INTEL_DISPLAY_B_DIGITAL_PORT
|
||||
#define PCH_DISPLAY_LVDS_PORT 0xe1180 // INTEL_DISPLAY_LVDS_PORT
|
||||
#define PCH_I2C_IO_A 0xc5010 // INTEL_I2C_IO_A
|
||||
#define PCH_I2C_IO_C 0xc5018 // INTEL_I2C_IO_C
|
||||
@@ -249,6 +251,9 @@ struct intel_free_graphics_memory {
|
||||
#define PCH_TRANSCODER_B_VBLANK 0xe1010 // INTEL_DISPLAY_B_VBLANK
|
||||
#define PCH_TRANSCODER_B_VSYNC 0xe1014 // INTEL_DISPLAY_B_VSYNC
|
||||
|
||||
#define PCH_LVDS_DETECTED (1 << 1)
|
||||
|
||||
|
||||
// SandyBridge (SNB)
|
||||
#define SNB_GRAPHICS_MEMORY_CONTROL 0x50
|
||||
|
||||
@@ -387,6 +392,8 @@ struct intel_free_graphics_memory {
|
||||
#define INTEL_DISPLAY_A_CONTROL 0x70180
|
||||
#define INTEL_DISPLAY_A_BASE 0x70184
|
||||
#define INTEL_DISPLAY_A_BYTES_PER_ROW 0x70188
|
||||
#define INTEL_DISPLAY_A_POS 0x7018c // reserved
|
||||
#define INTEL_DISPLAY_A_PIPE_SIZE 0x70190
|
||||
#define INTEL_DISPLAY_A_SURFACE 0x7019c // i965 and up only
|
||||
#define DISPLAY_CONTROL_ENABLED (1UL << 31)
|
||||
#define DISPLAY_CONTROL_GAMMA (1UL << 30)
|
||||
@@ -408,6 +415,7 @@ struct intel_free_graphics_memory {
|
||||
#define DISPLAY_PIPE_VBLANK_STATUS (1UL << 1)
|
||||
|
||||
#define INTEL_DISPLAY_A_PLL 0x06014
|
||||
#define INTEL_DISPLAY_A_PLL_MULTIPLIER_DIVISOR 0x0601c
|
||||
#define INTEL_DISPLAY_A_PLL_DIVISOR_0 0x06040
|
||||
#define INTEL_DISPLAY_A_PLL_DIVISOR_1 0x06044
|
||||
|
||||
@@ -428,7 +436,7 @@ struct intel_free_graphics_memory {
|
||||
#define INTEL_DISPLAY_B_CONTROL 0x71180
|
||||
#define INTEL_DISPLAY_B_BASE 0x71184
|
||||
#define INTEL_DISPLAY_B_BYTES_PER_ROW 0x71188
|
||||
#define INTEL_DISPLAY_B_POS 0x7118C
|
||||
#define INTEL_DISPLAY_B_POS 0x7118c
|
||||
|
||||
#define INTEL_DISPLAY_B_IMAGE_SIZE 0x6101c
|
||||
#define INTEL_DISPLAY_B_SURFACE 0x7119c // i965 and up only
|
||||
|
||||
Reference in New Issue
Block a user