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

Go to the source code of this file.

Macros

#define ABASE   0x40
 
#define ACTL   0x44
 
#define PMC_ACPI_CNT   0x44
 
#define PWRM_EN   (1 << 8)
 
#define ACPI_EN   (1 << 7)
 
#define SCI_IRQ_SEL   (7 << 0)
 
#define SCI_IRQ_ADJUST   0
 
#define SCIS_IRQ9   0
 
#define SCIS_IRQ10   1
 
#define SCIS_IRQ11   2
 
#define SCIS_IRQ20   4
 
#define SCIS_IRQ21   5
 
#define SCIS_IRQ22   6
 
#define SCIS_IRQ23   7
 
#define PWRMBASE   0x48
 
#define GEN_PMCON_A   0xa0
 
#define DISB   (1 << 23)
 
#define MS4V   (1 << 18)
 
#define GBL_RST_STS   (1 << 16)
 
#define SMI_LOCK   (1 << 4)
 
#define GEN_PMCON_B   0xa4
 
#define SLP_STR_POL_LOCK   (1 << 18)
 
#define ACPI_BASE_LOCK   (1 << 17)
 
#define RTC_BATTERY_DEAD   (1 << 2)
 
#define SUS_PWR_FLR   (1 << 14)
 
#define HOST_RST_STS   (1 << 9)
 
#define PWR_FLR   (1 << 1)
 
#define SLEEP_AFTER_POWER_FAIL   (1 << 0)
 
#define PMSYNC_TPR_CFG   0xc8
 
#define PMSYNC_LOCK   (1 << 15)
 
#define PCH_PWRM_ACPI_TMR_CTL   0xfc
 
#define ACPI_TIM_DIS   (1 << 1)
 
#define GPIO_GPE_CFG   0x120
 
#define GPE0_DWX_MASK   0xf
 
#define GPE0_DW_SHIFT(x)   (4 * (x))
 
#define GBLRST_CAUSE0   0x124
 
#define GBLRST_CAUSE1   0x128
 

Macro Definition Documentation

◆ ABASE

#define ABASE   0x40

Definition at line 7 of file pmc.h.

◆ ACPI_BASE_LOCK

#define ACPI_BASE_LOCK   (1 << 17)

Definition at line 30 of file pmc.h.

◆ ACPI_EN

#define ACPI_EN   (1 << 7)

Definition at line 11 of file pmc.h.

◆ ACPI_TIM_DIS

#define ACPI_TIM_DIS   (1 << 1)

Definition at line 41 of file pmc.h.

◆ ACTL

#define ACTL   0x44

Definition at line 8 of file pmc.h.

◆ DISB

#define DISB   (1 << 23)

Definition at line 24 of file pmc.h.

◆ GBL_RST_STS

#define GBL_RST_STS   (1 << 16)

Definition at line 26 of file pmc.h.

◆ GBLRST_CAUSE0

#define GBLRST_CAUSE0   0x124

Definition at line 45 of file pmc.h.

◆ GBLRST_CAUSE1

#define GBLRST_CAUSE1   0x128

Definition at line 46 of file pmc.h.

◆ GEN_PMCON_A

#define GEN_PMCON_A   0xa0

Definition at line 23 of file pmc.h.

◆ GEN_PMCON_B

#define GEN_PMCON_B   0xa4

Definition at line 28 of file pmc.h.

◆ GPE0_DW_SHIFT

#define GPE0_DW_SHIFT (   x)    (4 * (x))

Definition at line 44 of file pmc.h.

◆ GPE0_DWX_MASK

#define GPE0_DWX_MASK   0xf

Definition at line 43 of file pmc.h.

◆ GPIO_GPE_CFG

#define GPIO_GPE_CFG   0x120

Definition at line 42 of file pmc.h.

◆ HOST_RST_STS

#define HOST_RST_STS   (1 << 9)

Definition at line 33 of file pmc.h.

◆ MS4V

#define MS4V   (1 << 18)

Definition at line 25 of file pmc.h.

◆ PCH_PWRM_ACPI_TMR_CTL

#define PCH_PWRM_ACPI_TMR_CTL   0xfc

Definition at line 40 of file pmc.h.

◆ PMC_ACPI_CNT

#define PMC_ACPI_CNT   0x44

Definition at line 9 of file pmc.h.

◆ PMSYNC_LOCK

#define PMSYNC_LOCK   (1 << 15)

Definition at line 39 of file pmc.h.

◆ PMSYNC_TPR_CFG

#define PMSYNC_TPR_CFG   0xc8

Definition at line 38 of file pmc.h.

◆ PWR_FLR

#define PWR_FLR   (1 << 1)

Definition at line 34 of file pmc.h.

◆ PWRM_EN

#define PWRM_EN   (1 << 8)

Definition at line 10 of file pmc.h.

◆ PWRMBASE

#define PWRMBASE   0x48

Definition at line 22 of file pmc.h.

◆ RTC_BATTERY_DEAD

#define RTC_BATTERY_DEAD   (1 << 2)

Definition at line 31 of file pmc.h.

◆ SCI_IRQ_ADJUST

#define SCI_IRQ_ADJUST   0

Definition at line 13 of file pmc.h.

◆ SCI_IRQ_SEL

#define SCI_IRQ_SEL   (7 << 0)

Definition at line 12 of file pmc.h.

◆ SCIS_IRQ10

#define SCIS_IRQ10   1

Definition at line 16 of file pmc.h.

◆ SCIS_IRQ11

#define SCIS_IRQ11   2

Definition at line 17 of file pmc.h.

◆ SCIS_IRQ20

#define SCIS_IRQ20   4

Definition at line 18 of file pmc.h.

◆ SCIS_IRQ21

#define SCIS_IRQ21   5

Definition at line 19 of file pmc.h.

◆ SCIS_IRQ22

#define SCIS_IRQ22   6

Definition at line 20 of file pmc.h.

◆ SCIS_IRQ23

#define SCIS_IRQ23   7

Definition at line 21 of file pmc.h.

◆ SCIS_IRQ9

#define SCIS_IRQ9   0

Definition at line 15 of file pmc.h.

◆ SLEEP_AFTER_POWER_FAIL

#define SLEEP_AFTER_POWER_FAIL   (1 << 0)

Definition at line 35 of file pmc.h.

◆ SLP_STR_POL_LOCK

#define SLP_STR_POL_LOCK   (1 << 18)

Definition at line 29 of file pmc.h.

◆ SMI_LOCK

#define SMI_LOCK   (1 << 4)

Definition at line 27 of file pmc.h.

◆ SUS_PWR_FLR

#define SUS_PWR_FLR   (1 << 14)

Definition at line 32 of file pmc.h.