chipset/
psp.rs

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4//! !! THIS MODULE IS A STUB !!
5//!
6//! At the moment, we use the PSP emulator running on the host, but construct
7//! the corresponding "ASPT" ACPI table within hvlite / underhill. Therefore,
8//! the only thing you'll find here is just a handful of constants that are
9//! required to construct this table.
10
11pub mod reg {
12    // ASP Global Registers
13    pub const FEATURE: u64 = 0x0000;
14    pub const INT_EN: u64 = 0x0004;
15    pub const INT_STS: u64 = 0x0008;
16
17    // SEV Mailbox Registers
18    pub const CMD_RESP: u64 = 0x0010;
19    pub const CMD_BUF_ADDR_LO: u64 = 0x0014;
20    pub const CMD_BUF_ADDR_HI: u64 = 0x0018;
21
22    // ACPI Mailbox Registers
23    pub const ACPI_CMD_RESP: u64 = 0x0020;
24}
25
26pub const PSP_MMIO_ADDRESS: u64 = 0xfeb00000;