coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gfx.h File Reference

Go to the source code of this file.

Macros

#define GGC   0x50
 
#define GGC_VGA_DISABLE   (1 << 1)
 
#define GGC_GTT_SIZE_MASK   (3 << 8)
 
#define GGC_GTT_SIZE_0MB   (0 << 8)
 
#define GGC_GTT_SIZE_1MB   (1 << 8)
 
#define GGC_GTT_SIZE_2MB   (2 << 8)
 
#define GGC_GSM_SIZE_MASK   (0x1f << 3)
 
#define GGC_GSM_SIZE_0MB   (0 << 3)
 
#define GGC_GSM_SIZE_32MB   (1 << 3)
 
#define GGC_GSM_SIZE_64MB   (2 << 3)
 
#define GGC_GSM_SIZE_96MB   (3 << 3)
 
#define GGC_GSM_SIZE_128MB   (4 << 3)
 
#define GGC_GSM_SIZE_160MB   (5 << 3)
 
#define GGC_GSM_SIZE_192MB   (6 << 3)
 
#define GGC_GSM_SIZE_224MB   (7 << 3)
 
#define GGC_GSM_SIZE_256MB   (8 << 3)
 
#define GGC_GSM_SIZE_288MB   (9 << 3)
 
#define GGC_GSM_SIZE_320MB   (10 << 3)
 
#define GGC_GSM_SIZE_352MB   (11 << 3)
 
#define GGC_GSM_SIZE_384MB   (12 << 3)
 
#define GGC_GSM_SIZE_416MB   (13 << 3)
 
#define GGC_GSM_SIZE_448MB   (14 << 3)
 
#define GGC_GSM_SIZE_480MB   (15 << 3)
 
#define GGC_GSM_SIZE_512MB   (16 << 3)
 
#define GSM_BASE   0x5c
 
#define GTT_BASE   0x70
 
#define MSAC   0x62
 
#define APERTURE_SIZE_MASK   (3 << 1)
 
#define APERTURE_SIZE_128MB   (0 << 1)
 
#define APERTURE_SIZE_256MB   (1 << 1)
 
#define APERTURE_SIZE_512MB   (3 << 1)
 
#define VLV_DISPLAY_BASE   0x180000
 
#define PIPEA_REG(reg)   (VLV_DISPLAY_BASE + (reg))
 
#define PIPEB_REG(reg)   (VLV_DISPLAY_BASE + 0x100 + (reg))
 
#define HOTPLUG_CTRL   0x61110
 
#define PP_CONTROL   0x61204
 
#define PP_CONTROL_UNLOCK   0xabcd0000
 
#define PP_CONTROL_EDP_FORCE_VDD   (1 << 3)
 
#define PP_ON_DELAYS   0x61208
 
#define PP_OFF_DELAYS   0x6120c
 
#define PP_DIVISOR   0x61210
 
#define BACKLIGHT_CTL2   0x61250
 
#define BACKLIGHT_ENABLE   (1 << 31)
 
#define BACKLIGHT_CTL   0x61254
 

Macro Definition Documentation

◆ APERTURE_SIZE_128MB

#define APERTURE_SIZE_128MB   (0 << 1)

Definition at line 40 of file gfx.h.

◆ APERTURE_SIZE_256MB

#define APERTURE_SIZE_256MB   (1 << 1)

Definition at line 41 of file gfx.h.

◆ APERTURE_SIZE_512MB

#define APERTURE_SIZE_512MB   (3 << 1)

Definition at line 42 of file gfx.h.

◆ APERTURE_SIZE_MASK

#define APERTURE_SIZE_MASK   (3 << 1)

Definition at line 39 of file gfx.h.

◆ BACKLIGHT_CTL

#define BACKLIGHT_CTL   0x61254

Definition at line 58 of file gfx.h.

◆ BACKLIGHT_CTL2

#define BACKLIGHT_CTL2   0x61250

Definition at line 56 of file gfx.h.

◆ BACKLIGHT_ENABLE

#define BACKLIGHT_ENABLE   (1 << 31)

Definition at line 57 of file gfx.h.

◆ GGC

#define GGC   0x50

Definition at line 10 of file gfx.h.

◆ GGC_GSM_SIZE_0MB

#define GGC_GSM_SIZE_0MB   (0 << 3)

Definition at line 17 of file gfx.h.

◆ GGC_GSM_SIZE_128MB

#define GGC_GSM_SIZE_128MB   (4 << 3)

Definition at line 21 of file gfx.h.

◆ GGC_GSM_SIZE_160MB

#define GGC_GSM_SIZE_160MB   (5 << 3)

Definition at line 22 of file gfx.h.

◆ GGC_GSM_SIZE_192MB

#define GGC_GSM_SIZE_192MB   (6 << 3)

Definition at line 23 of file gfx.h.

◆ GGC_GSM_SIZE_224MB

#define GGC_GSM_SIZE_224MB   (7 << 3)

Definition at line 24 of file gfx.h.

◆ GGC_GSM_SIZE_256MB

#define GGC_GSM_SIZE_256MB   (8 << 3)

Definition at line 25 of file gfx.h.

◆ GGC_GSM_SIZE_288MB

#define GGC_GSM_SIZE_288MB   (9 << 3)

Definition at line 26 of file gfx.h.

◆ GGC_GSM_SIZE_320MB

#define GGC_GSM_SIZE_320MB   (10 << 3)

Definition at line 27 of file gfx.h.

◆ GGC_GSM_SIZE_32MB

#define GGC_GSM_SIZE_32MB   (1 << 3)

Definition at line 18 of file gfx.h.

◆ GGC_GSM_SIZE_352MB

#define GGC_GSM_SIZE_352MB   (11 << 3)

Definition at line 28 of file gfx.h.

◆ GGC_GSM_SIZE_384MB

#define GGC_GSM_SIZE_384MB   (12 << 3)

Definition at line 29 of file gfx.h.

◆ GGC_GSM_SIZE_416MB

#define GGC_GSM_SIZE_416MB   (13 << 3)

Definition at line 30 of file gfx.h.

◆ GGC_GSM_SIZE_448MB

#define GGC_GSM_SIZE_448MB   (14 << 3)

Definition at line 31 of file gfx.h.

◆ GGC_GSM_SIZE_480MB

#define GGC_GSM_SIZE_480MB   (15 << 3)

Definition at line 32 of file gfx.h.

◆ GGC_GSM_SIZE_512MB

#define GGC_GSM_SIZE_512MB   (16 << 3)

Definition at line 33 of file gfx.h.

◆ GGC_GSM_SIZE_64MB

#define GGC_GSM_SIZE_64MB   (2 << 3)

Definition at line 19 of file gfx.h.

◆ GGC_GSM_SIZE_96MB

#define GGC_GSM_SIZE_96MB   (3 << 3)

Definition at line 20 of file gfx.h.

◆ GGC_GSM_SIZE_MASK

#define GGC_GSM_SIZE_MASK   (0x1f << 3)

Definition at line 16 of file gfx.h.

◆ GGC_GTT_SIZE_0MB

#define GGC_GTT_SIZE_0MB   (0 << 8)

Definition at line 13 of file gfx.h.

◆ GGC_GTT_SIZE_1MB

#define GGC_GTT_SIZE_1MB   (1 << 8)

Definition at line 14 of file gfx.h.

◆ GGC_GTT_SIZE_2MB

#define GGC_GTT_SIZE_2MB   (2 << 8)

Definition at line 15 of file gfx.h.

◆ GGC_GTT_SIZE_MASK

#define GGC_GTT_SIZE_MASK   (3 << 8)

Definition at line 12 of file gfx.h.

◆ GGC_VGA_DISABLE

#define GGC_VGA_DISABLE   (1 << 1)

Definition at line 11 of file gfx.h.

◆ GSM_BASE

#define GSM_BASE   0x5c

Definition at line 35 of file gfx.h.

◆ GTT_BASE

#define GTT_BASE   0x70

Definition at line 36 of file gfx.h.

◆ HOTPLUG_CTRL

#define HOTPLUG_CTRL   0x61110

Definition at line 49 of file gfx.h.

◆ MSAC

#define MSAC   0x62

Definition at line 38 of file gfx.h.

◆ PIPEA_REG

#define PIPEA_REG (   reg)    (VLV_DISPLAY_BASE + (reg))

Definition at line 45 of file gfx.h.

◆ PIPEB_REG

#define PIPEB_REG (   reg)    (VLV_DISPLAY_BASE + 0x100 + (reg))

Definition at line 46 of file gfx.h.

◆ PP_CONTROL

#define PP_CONTROL   0x61204

Definition at line 50 of file gfx.h.

◆ PP_CONTROL_EDP_FORCE_VDD

#define PP_CONTROL_EDP_FORCE_VDD   (1 << 3)

Definition at line 52 of file gfx.h.

◆ PP_CONTROL_UNLOCK

#define PP_CONTROL_UNLOCK   0xabcd0000

Definition at line 51 of file gfx.h.

◆ PP_DIVISOR

#define PP_DIVISOR   0x61210

Definition at line 55 of file gfx.h.

◆ PP_OFF_DELAYS

#define PP_OFF_DELAYS   0x6120c

Definition at line 54 of file gfx.h.

◆ PP_ON_DELAYS

#define PP_ON_DELAYS   0x61208

Definition at line 53 of file gfx.h.

◆ VLV_DISPLAY_BASE

#define VLV_DISPLAY_BASE   0x180000

Definition at line 44 of file gfx.h.