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_VAMEN   (1 << 14) /* Enable acceleration mode */
 
#define GGC_GTT_SIZE_MASK   (3 << 8) /* GTT graphics memory size */
 
#define GGC_GTT_SIZE_0MB   (0 << 8)
 
#define GGC_GTT_SIZE_2MB   (1 << 8)
 
#define GGC_GTT_SIZE_4MB   (2 << 8)
 
#define GGC_GTT_SIZE_8MB   (3 << 8)
 
#define GGC_GSM_SIZE_MASK   (0x1f << 3) /* Main memory use */
 
#define GGC_GSM_SIZE_0MB   (0 << 3)
 
#define GGC_GSM_SIZE_32MB   (1 << 3)
 
#define GGC_GSM_SIZE_64MB   (2 << 3)
 
#define GCC_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   (0x0a << 3)
 
#define GGC_GSM_SIZE_352MB   (0x0b << 3)
 
#define GGC_GSM_SIZE_384MB   (0x0c << 3)
 
#define GGC_GSM_SIZE_416MB   (0x0d << 3)
 
#define GGC_GSM_SIZE_448MB   (0x0e << 3)
 
#define GGC_GSM_SIZE_480MB   (0x0f << 3)
 
#define GGC_GSM_SIZE_512MB   (0x10 << 3)
 
#define GGC_VGA_DISABLE   (1 << 1) /* VGA Disable */
 
#define GGC_GGCLCK   (1 << 0) /* Prevent register writes */
 
#define GSM_BASE   0x5c
 
#define GSM_BDSM   0xfff00000 /* Base of stolen memory */
 
#define GSM_BDSM_LOCK   (1 << 0) /* Prevent register writes */
 
#define GTT_BASE   0x70
 
#define GTT_BGSM   0xfff00000 /* Base of stolen memory */
 
#define GTT_BGSM_LOCK   (1 << 0) /* Prevent register writes */
 
#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 HOTPLUG_CTRL   0x61110
 
#define PP_CONTROL   0x61204
 
#define PP_CONTROL_WRITE_PROTECT_KEY   0xffff0000 /* Enable display port VDD */
 
#define PP_CONTROL_UNLOCK   0xabcd0000
 
#define PP_CONTROL_EDP_FORCE_VDD   (1 << 3) /* Enable display port VDD */
 
#define PP_CONTROL_BACKLIGHT_ENABLE   (1 << 2)
 
#define PP_CONTROL_POWER_DOWN_ON_RESET   (1 << 1)
 
#define PP_CONTROL_POWER_STATE_TARGET   (1 << 0) /* Power up/down (1/0) */
 
#define PP_ON_DELAYS   0x61208
 
#define PP_OFF_DELAYS   0x6120c
 
#define PP_DIVISOR   0x61210
 
#define BACKLIGHT_CTL2   0x61250
 
#define BACKLIGHT_PWM_ENABLE   (1 << 31)
 
#define BACKLIGHT_POLARITY   (1 << 28) /* Active low/high (1/0) */
 
#define BACKLIGHT_PHASE_IN_INT_STATUS   (1 << 26)
 
#define BACKLIGHT_PHASE_IN_ENABLE   (1 << 25)
 
#define BACKLIGHT_PHASE_IN_INT_ENABLE   (1 << 24)
 
#define BACKLIGHT_PHASE_IN_TIME_BASE   0x00ff0000
 
#define BACKLIGHT_PHASE_IN_COUNT   0x0000ff00
 
#define BACKLIGHT_PHASE_IN_INCREMENT   0x000000ff
 
#define BACKLIGHT_CTL   0x61254
 

Macro Definition Documentation

◆ APERTURE_SIZE_128MB

#define APERTURE_SIZE_128MB   (0 << 1)

Definition at line 48 of file gfx.h.

◆ APERTURE_SIZE_256MB

#define APERTURE_SIZE_256MB   (1 << 1)

Definition at line 49 of file gfx.h.

◆ APERTURE_SIZE_512MB

#define APERTURE_SIZE_512MB   (3 << 1)

Definition at line 50 of file gfx.h.

◆ APERTURE_SIZE_MASK

#define APERTURE_SIZE_MASK   (3 << 1)

Definition at line 47 of file gfx.h.

◆ BACKLIGHT_CTL

#define BACKLIGHT_CTL   0x61254

Definition at line 75 of file gfx.h.

◆ BACKLIGHT_CTL2

#define BACKLIGHT_CTL2   0x61250

Definition at line 65 of file gfx.h.

◆ BACKLIGHT_PHASE_IN_COUNT

#define BACKLIGHT_PHASE_IN_COUNT   0x0000ff00

Definition at line 72 of file gfx.h.

◆ BACKLIGHT_PHASE_IN_ENABLE

#define BACKLIGHT_PHASE_IN_ENABLE   (1 << 25)

Definition at line 69 of file gfx.h.

◆ BACKLIGHT_PHASE_IN_INCREMENT

#define BACKLIGHT_PHASE_IN_INCREMENT   0x000000ff

Definition at line 73 of file gfx.h.

◆ BACKLIGHT_PHASE_IN_INT_ENABLE

#define BACKLIGHT_PHASE_IN_INT_ENABLE   (1 << 24)

Definition at line 70 of file gfx.h.

◆ BACKLIGHT_PHASE_IN_INT_STATUS

#define BACKLIGHT_PHASE_IN_INT_STATUS   (1 << 26)

Definition at line 68 of file gfx.h.

◆ BACKLIGHT_PHASE_IN_TIME_BASE

#define BACKLIGHT_PHASE_IN_TIME_BASE   0x00ff0000

Definition at line 71 of file gfx.h.

◆ BACKLIGHT_POLARITY

#define BACKLIGHT_POLARITY   (1 << 28) /* Active low/high (1/0) */

Definition at line 67 of file gfx.h.

◆ BACKLIGHT_PWM_ENABLE

#define BACKLIGHT_PWM_ENABLE   (1 << 31)

Definition at line 66 of file gfx.h.

◆ GCC_GSM_SIZE_96MB

#define GCC_GSM_SIZE_96MB   (3 << 3)

Definition at line 21 of file gfx.h.

◆ GGC

#define GGC   0x50

Definition at line 10 of file gfx.h.

◆ GGC_GGCLCK

#define GGC_GGCLCK   (1 << 0) /* Prevent register writes */

Definition at line 36 of file gfx.h.

◆ GGC_GSM_SIZE_0MB

#define GGC_GSM_SIZE_0MB   (0 << 3)

Definition at line 18 of file gfx.h.

◆ GGC_GSM_SIZE_128MB

#define GGC_GSM_SIZE_128MB   (4 << 3)

Definition at line 22 of file gfx.h.

◆ GGC_GSM_SIZE_160MB

#define GGC_GSM_SIZE_160MB   (5 << 3)

Definition at line 23 of file gfx.h.

◆ GGC_GSM_SIZE_192MB

#define GGC_GSM_SIZE_192MB   (6 << 3)

Definition at line 24 of file gfx.h.

◆ GGC_GSM_SIZE_224MB

#define GGC_GSM_SIZE_224MB   (7 << 3)

Definition at line 25 of file gfx.h.

◆ GGC_GSM_SIZE_256MB

#define GGC_GSM_SIZE_256MB   (8 << 3)

Definition at line 26 of file gfx.h.

◆ GGC_GSM_SIZE_288MB

#define GGC_GSM_SIZE_288MB   (9 << 3)

Definition at line 27 of file gfx.h.

◆ GGC_GSM_SIZE_320MB

#define GGC_GSM_SIZE_320MB   (0x0a << 3)

Definition at line 28 of file gfx.h.

◆ GGC_GSM_SIZE_32MB

#define GGC_GSM_SIZE_32MB   (1 << 3)

Definition at line 19 of file gfx.h.

◆ GGC_GSM_SIZE_352MB

#define GGC_GSM_SIZE_352MB   (0x0b << 3)

Definition at line 29 of file gfx.h.

◆ GGC_GSM_SIZE_384MB

#define GGC_GSM_SIZE_384MB   (0x0c << 3)

Definition at line 30 of file gfx.h.

◆ GGC_GSM_SIZE_416MB

#define GGC_GSM_SIZE_416MB   (0x0d << 3)

Definition at line 31 of file gfx.h.

◆ GGC_GSM_SIZE_448MB

#define GGC_GSM_SIZE_448MB   (0x0e << 3)

Definition at line 32 of file gfx.h.

◆ GGC_GSM_SIZE_480MB

#define GGC_GSM_SIZE_480MB   (0x0f << 3)

Definition at line 33 of file gfx.h.

◆ GGC_GSM_SIZE_512MB

#define GGC_GSM_SIZE_512MB   (0x10 << 3)

Definition at line 34 of file gfx.h.

◆ GGC_GSM_SIZE_64MB

#define GGC_GSM_SIZE_64MB   (2 << 3)

Definition at line 20 of file gfx.h.

◆ GGC_GSM_SIZE_MASK

#define GGC_GSM_SIZE_MASK   (0x1f << 3) /* Main memory use */

Definition at line 17 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_2MB

#define GGC_GTT_SIZE_2MB   (1 << 8)

Definition at line 14 of file gfx.h.

◆ GGC_GTT_SIZE_4MB

#define GGC_GTT_SIZE_4MB   (2 << 8)

Definition at line 15 of file gfx.h.

◆ GGC_GTT_SIZE_8MB

#define GGC_GTT_SIZE_8MB   (3 << 8)

Definition at line 16 of file gfx.h.

◆ GGC_GTT_SIZE_MASK

#define GGC_GTT_SIZE_MASK   (3 << 8) /* GTT graphics memory size */

Definition at line 12 of file gfx.h.

◆ GGC_VAMEN

#define GGC_VAMEN   (1 << 14) /* Enable acceleration mode */

Definition at line 11 of file gfx.h.

◆ GGC_VGA_DISABLE

#define GGC_VGA_DISABLE   (1 << 1) /* VGA Disable */

Definition at line 35 of file gfx.h.

◆ GSM_BASE

#define GSM_BASE   0x5c

Definition at line 38 of file gfx.h.

◆ GSM_BDSM

#define GSM_BDSM   0xfff00000 /* Base of stolen memory */

Definition at line 39 of file gfx.h.

◆ GSM_BDSM_LOCK

#define GSM_BDSM_LOCK   (1 << 0) /* Prevent register writes */

Definition at line 40 of file gfx.h.

◆ GTT_BASE

#define GTT_BASE   0x70

Definition at line 42 of file gfx.h.

◆ GTT_BGSM

#define GTT_BGSM   0xfff00000 /* Base of stolen memory */

Definition at line 43 of file gfx.h.

◆ GTT_BGSM_LOCK

#define GTT_BGSM_LOCK   (1 << 0) /* Prevent register writes */

Definition at line 44 of file gfx.h.

◆ HOTPLUG_CTRL

#define HOTPLUG_CTRL   0x61110

Definition at line 53 of file gfx.h.

◆ MSAC

#define MSAC   0x62

Definition at line 46 of file gfx.h.

◆ PP_CONTROL

#define PP_CONTROL   0x61204

Definition at line 54 of file gfx.h.

◆ PP_CONTROL_BACKLIGHT_ENABLE

#define PP_CONTROL_BACKLIGHT_ENABLE   (1 << 2)

Definition at line 58 of file gfx.h.

◆ PP_CONTROL_EDP_FORCE_VDD

#define PP_CONTROL_EDP_FORCE_VDD   (1 << 3) /* Enable display port VDD */

Definition at line 57 of file gfx.h.

◆ PP_CONTROL_POWER_DOWN_ON_RESET

#define PP_CONTROL_POWER_DOWN_ON_RESET   (1 << 1)

Definition at line 59 of file gfx.h.

◆ PP_CONTROL_POWER_STATE_TARGET

#define PP_CONTROL_POWER_STATE_TARGET   (1 << 0) /* Power up/down (1/0) */

Definition at line 60 of file gfx.h.

◆ PP_CONTROL_UNLOCK

#define PP_CONTROL_UNLOCK   0xabcd0000

Definition at line 56 of file gfx.h.

◆ PP_CONTROL_WRITE_PROTECT_KEY

#define PP_CONTROL_WRITE_PROTECT_KEY   0xffff0000 /* Enable display port VDD */

Definition at line 55 of file gfx.h.

◆ PP_DIVISOR

#define PP_DIVISOR   0x61210

Definition at line 64 of file gfx.h.

◆ PP_OFF_DELAYS

#define PP_OFF_DELAYS   0x6120c

Definition at line 63 of file gfx.h.

◆ PP_ON_DELAYS

#define PP_ON_DELAYS   0x61208

Definition at line 62 of file gfx.h.