coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pmutil.c File Reference
#include <types.h>
#include <console/console.h>
#include <device/pci_def.h>
#include <southbridge/intel/common/pmbase.h>
#include <southbridge/intel/common/gpio.h>
#include "pmutil.h"
Include dependency graph for pmutil.c:

Go to the source code of this file.

Functions

void alt_gpi_mask (u16 clr, u16 set)
 
void gpe0_mask (u32 clr, u32 set)
 
u16 reset_pm1_status (void)
 read and clear PM1_STS More...
 
void dump_pm1_status (u16 pm1_sts)
 
u32 reset_smi_status (void)
 read and clear SMI_STS More...
 
void dump_smi_status (u32 smi_sts)
 
u64 reset_gpe0_status (void)
 read and clear GPE0_STS More...
 
void dump_gpe0_status (u64 gpe0_sts)
 
u32 reset_tco_status (void)
 read and clear TCOx_STS More...
 
void dump_tco_status (u32 tco_sts)
 
void smi_set_eos (void)
 Set the EOS bit. More...
 
void dump_alt_gp_smi_status (u16 alt_gp_smi_sts)
 
u16 reset_alt_gp_smi_status (void)
 read and clear ALT_GP_SMI_STS More...
 
void dump_all_status (void)
 

Function Documentation

◆ alt_gpi_mask()

void alt_gpi_mask ( u16  clr,
u16  set 
)

Definition at line 11 of file pmutil.c.

References ALT_GP_SMI_EN, read_pmbase16(), and write_pmbase16().

Referenced by gpi_route_interrupt().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dump_all_status()

void dump_all_status ( void  )

Definition at line 216 of file pmutil.c.

References dump_alt_gp_smi_status(), dump_gpe0_status(), dump_pm1_status(), dump_smi_status(), dump_tco_status(), reset_alt_gp_smi_status(), reset_gpe0_status(), reset_pm1_status(), reset_smi_status(), and reset_tco_status().

Referenced by global_smi_enable().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dump_alt_gp_smi_status()

void dump_alt_gp_smi_status ( u16  alt_gp_smi_sts)

Definition at line 191 of file pmutil.c.

References BIOS_DEBUG, and printk.

Referenced by dump_all_status().

Here is the caller graph for this function:

◆ dump_gpe0_status()

void dump_gpe0_status ( u64  gpe0_sts)

Definition at line 114 of file pmutil.c.

References BIOS_DEBUG, and printk.

Referenced by dump_all_status().

Here is the caller graph for this function:

◆ dump_pm1_status()

void dump_pm1_status ( u16  pm1_sts)

Definition at line 40 of file pmutil.c.

References BIOS_SPEW, PM1_EN, printk, and read_pmbase16().

Referenced by dump_all_status().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dump_smi_status()

void dump_smi_status ( u32  smi_sts)

Definition at line 72 of file pmutil.c.

References BIOS_DEBUG, and printk.

Referenced by dump_all_status().

Here is the caller graph for this function:

◆ dump_tco_status()

void dump_tco_status ( u32  tco_sts)

Definition at line 160 of file pmutil.c.

References BIOS_DEBUG, and printk.

Referenced by dump_all_status().

Here is the caller graph for this function:

◆ gpe0_mask()

void gpe0_mask ( u32  clr,
u32  set 
)

Definition at line 19 of file pmutil.c.

References GPE0_EN, read_pmbase32(), and write_pmbase32().

Referenced by gpi_route_interrupt().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset_alt_gp_smi_status()

u16 reset_alt_gp_smi_status ( void  )

read and clear ALT_GP_SMI_STS

Returns
ALT_GP_SMI_STS register

Definition at line 205 of file pmutil.c.

References ALT_GP_SMI_STS, read_pmbase16(), and write_pmbase16().

Referenced by dump_all_status(), and southbridge_smi_gpi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset_gpe0_status()

u64 reset_gpe0_status ( void  )

read and clear GPE0_STS

Returns
GPE0_STS register

Definition at line 101 of file pmutil.c.

References GPE0_STS, read_pmbase32(), and write_pmbase32().

Referenced by dump_all_status().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset_pm1_status()

u16 reset_pm1_status ( void  )

read and clear PM1_STS

Returns
PM1_STS register

Definition at line 31 of file pmutil.c.

References PM1_STS, read_pmbase16(), and write_pmbase16().

Referenced by clear_pm1_status(), and dump_all_status().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset_smi_status()

u32 reset_smi_status ( void  )

read and clear SMI_STS

Returns
SMI_STS register

Definition at line 61 of file pmutil.c.

References read_pmbase32(), SMI_STS, and write_pmbase32().

Referenced by clear_smi_status(), and dump_all_status().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset_tco_status()

u32 reset_tco_status ( void  )

read and clear TCOx_STS

Returns
TCOx_STS registers

Definition at line 144 of file pmutil.c.

References BOOT_STS, read_pmbase32(), TCO1_STS, and write_pmbase32().

Referenced by clear_tco_status(), and dump_all_status().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ smi_set_eos()

void smi_set_eos ( void  )

Set the EOS bit.

Definition at line 182 of file pmutil.c.

References EOS, read_pmbase8(), SMI_EN, and write_pmbase8().

Here is the call graph for this function: