add bpmp-fw cmd interface

This commit is contained in:
souldbminersmwc committed 2026-08-28 13:43:50 -04:00
1 parent 39c612779b
commit 6b88b43cb9
7 files changed
+94 -17

No files matched your search

+12 -2
View File
@@ -22,6 +22,12 @@
#define HOCCLK_BPMP_MAGIC 0x42504D50 // 'BPMP'
typedef enum {
HocClkBpmpCmd_None = 0,
HocClkBpmpCmd_RequestShutdown = 1, // Request BPMP-FW to shut down for sleep mode.
HocClkBpmpCmd_SetUartEnabled = 2, // cmdArg1: 0/1.
} HocClkBpmpCmd;
/*
* Shared with BPMP-FW
* Any 64 bit data type is not permitted.
@@ -41,8 +47,12 @@ typedef struct {
u32 emcBwAll;
u32 emcBwCpu;
u32 emcBwGpu;
u32 exitRequested; // Request BPMP-FW to shutdown for sleep mode
u32 cmd; // HocClkBpmpCmd; 0 = no command pending
u32 cmdArg1;
u32 cmdArg2;
u32 cmdArg3;
u32 cmdArg4;
s32 tempAO;
} HocClkBpmpSharedInfo;
static_assert(sizeof(HocClkBpmpSharedInfo) == 0x40);
static_assert(sizeof(HocClkBpmpSharedInfo) == 0x50);
@@ -89,7 +89,7 @@ typedef struct {
HocClkBpmpSharedInfo bpmpInfo;
// Reserved for future use
u8 reserved[0x33C];
u8 reserved[0x32C];
} HocClkContext;
typedef struct