Commit 5b90c0f1 authored by Tim Wawrzynczak's avatar Tim Wawrzynczak Committed by Patrick Georgi
Browse files

soc/intel/common/systemagent: Add macros to access REGBAR space


Signed-off-by: default avatarTim Wawrzynczak <twawrzynczak@chromium.org>
Change-Id: I97203aca377d4dd77e03b2c83fdd20a2874cc1c5
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51755

Reviewed-by: default avatarFurquan Shaikh <furquan@google.com>
Tested-by: default avatarbuild bot (Jenkins) <no-reply@coreboot.org>
parent e2852579
......@@ -23,6 +23,13 @@
#define MCHBAR32(x) (*(volatile u32 *)(uintptr_t)(MCH_BASE_ADDRESS + x))
#define MCHBAR64(x) (*(volatile u64 *)(uintptr_t)(MCH_BASE_ADDRESS + x))
/* REGBAR */
#define REGBAR_OFFSET(pid, x) (REG_BASE_ADDRESS + ((pid) << 16) + (x))
#define REGBAR8(pid, x) (*(volatile u8 *)(uintptr_t)REGBAR_OFFSET(pid, x))
#define REGBAR16(pid, x) (*(volatile u16 *)(uintptr_t)REGBAR_OFFSET(pid, x))
#define REGBAR32(pid, x) (*(volatile u32 *)(uintptr_t)REGBAR_OFFSET(pid, x))
#define REGBAR64(pid, x) (*(volatile u64 *)(uintptr_t)REGBAR_OFFSET(pid, x))
/* Perform System Agent Initialization during Bootblock phase */
void bootblock_systemagent_early_init(void);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment