![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <arch/byteorder.h>
#include <types.h>
Go to the source code of this file.
Macros | |
#define | SPR_TB 0x10C |
#define | SPR_PVR 0x11F |
#define | SPR_PVR_REV_MASK (PPC_BITMASK(52, 55) | PPC_BITMASK(60, 63)) |
#define | SPR_PVR_REV(maj, min) (PPC_SHIFT((maj), 55) | PPC_SHIFT((min), 63)) |
#define | SPR_HSPRG0 0x130 |
#define | SPR_HSPRG1 0x131 |
#define | SPR_HRMOR 0x139 |
#define | SPR_HMER 0x150 |
#define | SPR_HMER_MALFUNCTION_ALERT PPC_BIT(0) |
#define | SPR_HMER_PROC_RECV_DONE PPC_BIT(2) |
#define | SPR_HMER_PROC_RECV_ERROR_MASKED PPC_BIT(3) |
#define | SPR_HMER_TFAC_ERROR PPC_BIT(4) |
#define | SPR_HMER_TFMR_PARITY_ERROR PPC_BIT(5) |
#define | SPR_HMER_XSCOM_FAIL PPC_BIT(8) |
#define | SPR_HMER_XSCOM_DONE PPC_BIT(9) |
#define | SPR_HMER_PROC_RECV_AGAIN PPC_BIT(11) |
#define | SPR_HMER_WARN_RISE PPC_BIT(14) |
#define | SPR_HMER_WARN_FALL PPC_BIT(15) |
#define | SPR_HMER_SCOM_FIR_HMI PPC_BIT(16) |
#define | SPR_HMER_TRIG_FIR_HMI PPC_BIT(17) |
#define | SPR_HMER_HYP_RESOURCE_ERR PPC_BIT(20) |
#define | SPR_HMER_XSCOM_STATUS PPC_BITMASK(21, 23) |
#define | SPR_HMER_XSCOM_OCCUPIED PPC_BIT(23) |
Functions | |
static uint64_t | read_spr (int spr) |
static void | write_spr (int spr, uint64_t val) |
static uint64_t | read_hmer (void) |
static void | clear_hmer (void) |
static uint64_t | read_msr (void) |
static uint64_t | pvr_revision (void) |
#define SPR_HMER_XSCOM_STATUS PPC_BITMASK(21, 23) |
#define SPR_PVR_REV_MASK (PPC_BITMASK(52, 55) | PPC_BITMASK(60, 63)) |
Definition at line 55 of file spr.h.
References SPR_HMER, and write_spr().
Referenced by read_scom_direct(), reset_scom_engine(), and write_scom_direct().
Definition at line 67 of file spr.h.
References read_spr(), SPR_PVR, and SPR_PVR_REV_MASK.
Definition at line 50 of file spr.h.
References read_spr(), and SPR_HMER.
Referenced by read_scom_direct(), and write_scom_direct().
|
inlinestatic |
Definition at line 38 of file spr.h.
References val.
Referenced by pvr_revision(), read_hmer(), stage_entry(), and timer_monotonic_get().
Definition at line 45 of file spr.h.
References val.
Referenced by clear_hmer(), and stage_entry().