coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Macros | |
#define | P2SBC 0xe0 |
#define | P2SBC_HIDE_BIT (1 << 0) |
Functions | |
void | p2sb_dev_enable_bar (pci_devfn_t dev, uint64_t bar) |
bool | p2sb_dev_is_hidden (pci_devfn_t dev) |
void | p2sb_dev_unhide (pci_devfn_t dev) |
void | p2sb_dev_hide (pci_devfn_t dev) |
uint32_t | p2sb_dev_sbi_read (pci_devfn_t dev, uint8_t pid, uint16_t reg) |
void | p2sb_dev_sbi_write (pci_devfn_t dev, uint8_t pid, uint16_t reg, uint32_t val) |
void p2sb_dev_enable_bar | ( | pci_devfn_t | dev, |
uint64_t | bar | ||
) |
Definition at line 13 of file p2sblib.c.
References PCI_BASE_ADDRESS_0, PCI_BASE_ADDRESS_1, PCI_COMMAND, PCI_COMMAND_MASTER, PCI_COMMAND_MEMORY, pci_write_config16(), and pci_write_config32().
Referenced by ioe_p2sb_enable_bar(), and p2sb_enable_bar().
void p2sb_dev_hide | ( | pci_devfn_t | dev | ) |
Definition at line 57 of file p2sblib.c.
References die_with_post_code, p2sb_dev_is_hidden(), p2sb_dev_set_hide_bit(), and POST_HW_INIT_FAILURE.
Referenced by p2sb_execute_sideband_access(), and p2sb_hide().
bool p2sb_dev_is_hidden | ( | pci_devfn_t | dev | ) |
Definition at line 23 of file p2sblib.c.
References BIOS_ERR, pci_read_config16(), PCI_VENDOR_ID, PCI_VID_INTEL, and printk.
Referenced by p2sb_dev_hide(), and p2sb_dev_unhide().
uint32_t p2sb_dev_sbi_read | ( | pci_devfn_t | dev, |
uint8_t | pid, | ||
uint16_t | reg | ||
) |
Definition at line 92 of file p2sblib.c.
References p2sb_execute_sideband_access(), PCR_READ, pcr_sbi_msg::pid, and val.
Referenced by ioe_p2sb_sbi_read().
void p2sb_dev_sbi_write | ( | pci_devfn_t | dev, |
uint8_t | pid, | ||
uint16_t | reg, | ||
uint32_t | val | ||
) |
Definition at line 99 of file p2sblib.c.
References p2sb_execute_sideband_access(), PCR_WRITE, pcr_sbi_msg::pid, and val.
Referenced by ioe_p2sb_sbi_write().
void p2sb_dev_unhide | ( | pci_devfn_t | dev | ) |
Definition at line 48 of file p2sblib.c.
References die_with_post_code, p2sb_dev_is_hidden(), p2sb_dev_set_hide_bit(), and POST_HW_INIT_FAILURE.
Referenced by p2sb_execute_sideband_access(), and p2sb_unhide().