![]() |
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 | MMIO8(x) (*((volatile u8 *)(x))) |
#define | MMIO16(x) (*((volatile u16 *)(x))) |
#define | MMIO32(x) (*((volatile u32 *)(x))) |
#define | MMIO_AND_OR(bits, x, and, or) (MMIO##bits(x) = ((MMIO##bits(x) & (and)) | (or))) |
#define | MMIO8_AND_OR(x, and, or) MMIO_AND_OR(8, x, and, or) |
#define | MMIO16_AND_OR(x, and, or) MMIO_AND_OR(16, x, and, or) |
#define | MMIO32_AND_OR(x, and, or) MMIO_AND_OR(32, x, and, or) |
#define | MMIO32_OR(x, or) MMIO_AND_OR(32, x, ~0UL, or) |
#define | MMIO32_AND(x, and) MMIO_AND_OR(32, x, and, 0UL) |
Enumerations | |
enum | silicon_revision { SILICON_REV_DENVERTON_A0 = 0x00 , SILICON_REV_DENVERTON_A1 = 0x01 , SILICON_REV_DENVERTON_B0 = 0x02 } |
Functions | |
struct device * | get_hostbridge_dev (void) |
struct device * | get_lpc_dev (void) |
struct device * | get_pmc_dev (void) |
struct device * | get_smbus_dev (void) |
uint32_t | get_pciebase (void) |
uint32_t | get_pcielength (void) |
uint32_t | get_tseg_memory (void) |
uint32_t | get_top_of_low_memory (void) |
uint64_t | get_top_of_upper_memory (void) |
uint16_t | get_pmbase (void) |
uint16_t | get_tcobase (void) |
void * | memcpy_s (void *dest, const void *src, size_t n) |
void | mmio_andthenor32 (void *addr, uint32_t val2and, uint32_t val2or) |
uint8_t | silicon_stepping (void) |
Definition at line 50 of file soc_util.h.
#define MMIO16_AND_OR | ( | x, | |
and, | |||
or | |||
) | MMIO_AND_OR(16, x, and, or) |
Definition at line 57 of file soc_util.h.
Definition at line 51 of file soc_util.h.
#define MMIO32_AND | ( | x, | |
and | |||
) | MMIO_AND_OR(32, x, and, 0UL) |
Definition at line 60 of file soc_util.h.
#define MMIO32_AND_OR | ( | x, | |
and, | |||
or | |||
) | MMIO_AND_OR(32, x, and, or) |
Definition at line 58 of file soc_util.h.
#define MMIO32_OR | ( | x, | |
or | |||
) | MMIO_AND_OR(32, x, ~0UL, or) |
Definition at line 59 of file soc_util.h.
Definition at line 49 of file soc_util.h.
#define MMIO8_AND_OR | ( | x, | |
and, | |||
or | |||
) | MMIO_AND_OR(8, x, and, or) |
Definition at line 56 of file soc_util.h.
Definition at line 53 of file soc_util.h.
enum silicon_revision |
Enumerator | |
---|---|
SILICON_REV_DENVERTON_A0 | |
SILICON_REV_DENVERTON_A1 | |
SILICON_REV_DENVERTON_B0 |
Definition at line 11 of file soc_util.h.
Definition at line 24 of file soc_util.c.
References pcidev_on_root(), SA_DEV, and SA_FUNC.
Referenced by get_pciebase(), get_pcielength(), get_top_of_low_memory(), get_top_of_upper_memory(), and get_tseg_memory().
Definition at line 36 of file soc_util.c.
References LPC_DEV, LPC_FUNC, and pcidev_on_root().
Referenced by silicon_stepping().
Definition at line 66 of file soc_util.c.
References get_hostbridge_dev(), MASK_PCIEXBAR_128M, MASK_PCIEXBAR_256M, MASK_PCIEXBAR_64M, MASK_PCIEXBAR_LENGTH, MASK_PCIEXBAR_LENGTH_128M, MASK_PCIEXBAR_LENGTH_256M, MASK_PCIEXBAR_LENGTH_64M, pci_read_config32(), and PCIEXBAR.
Referenced by soc_fill_gnvs().
Definition at line 102 of file soc_util.c.
References get_hostbridge_dev(), MASK_PCIEXBAR_LENGTH, MASK_PCIEXBAR_LENGTH_128M, MASK_PCIEXBAR_LENGTH_256M, MASK_PCIEXBAR_LENGTH_64M, pci_read_config32(), and PCIEXBAR.
Definition at line 48 of file soc_util.c.
References pcidev_on_root(), PMC_DEV, and PMC_FUNC.
Referenced by get_pmbase(), and soc_read_sci_irq_select().
Definition at line 60 of file soc_util.c.
References pcidev_on_root(), SMBUS_DEV, and SMBUS_FUNC.
Referenced by get_tcobase().
Definition at line 200 of file soc_util.c.
References get_smbus_dev(), MASK_TCOBASE, pci_read_config16(), and TCOBASE.
Referenced by reset_tco_status().
Definition at line 153 of file soc_util.c.
References get_hostbridge_dev(), MASK_TOLUD, pci_read_config32(), and TOLUD.
Referenced by soc_fill_gnvs().
Definition at line 168 of file soc_util.c.
References get_hostbridge_dev(), MASK_TOUUD_HI, MASK_TOUUD_LO, pci_read_config32(), TOUUD_HI, and TOUUD_LO.
Referenced by soc_fill_gnvs().
Definition at line 138 of file soc_util.c.
References get_hostbridge_dev(), MASK_TSEGMB, pci_read_config32(), and TSEGMB.
Referenced by soc_fill_gnvs().
Definition at line 243 of file soc_util.c.
References UINT32_MAX.
Definition at line 215 of file soc_util.c.
References addr, read32(), and write32().
Referenced by gpio_configure_dnv_pads().
Definition at line 225 of file soc_util.c.
References get_lpc_dev(), pci_read_config8(), PCI_REVISION_ID, and revision_id.
Referenced by early_pmc_init().