bdk: add reserved cfg to ipl meta and nyx storage

This commit is contained in:
CTCaer
2025-11-27 12:17:33 +02:00
parent 5176ce4394
commit 7cbefa3061
3 changed files with 22 additions and 5 deletions

View File

@@ -77,6 +77,7 @@
// Nyx buffers. !Do not change! // Nyx buffers. !Do not change!
#define NYX_STORAGE_ADDR 0xED000000 #define NYX_STORAGE_ADDR 0xED000000
#define NYX_STR_SZ SZ_16M
#define NYX_RES_ADDR 0xEE000000 #define NYX_RES_ADDR 0xEE000000
#define NYX_RES_SZ SZ_16M #define NYX_RES_SZ SZ_16M

View File

@@ -1,6 +1,6 @@
/* /*
* Copyright (c) 2018 naehrwert * Copyright (c) 2018 naehrwert
* Copyright (c) 2018-2022 CTCaer * Copyright (c) 2018-2025 CTCaer
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License, * under the terms and conditions of the GNU General Public License,
@@ -149,12 +149,21 @@ typedef struct __attribute__((__packed__)) _boot_cfg_t
static_assert(sizeof(boot_cfg_t) == 0x84, "Boot cfg storage size is wrong!"); static_assert(sizeof(boot_cfg_t) == 0x84, "Boot cfg storage size is wrong!");
#define RSVD_FLAG_DRAM_8GB BIT(0)
typedef struct __attribute__((__packed__)) _rsvd_cfg_t
{
u16 rsvd0;
u8 rsvd_flags;
u8 bclk_t210:4;
u8 bclk_t210b01:4;
} rsvd_cfg_t;
typedef struct __attribute__((__packed__)) _ipl_ver_meta_t typedef struct __attribute__((__packed__)) _ipl_ver_meta_t
{ {
u32 magic; u32 magic;
u32 version; u32 version;
u16 rsvd0; rsvd_cfg_t rcfg;
u16 rsvd1;
} ipl_ver_meta_t; } ipl_ver_meta_t;
typedef struct __attribute__((__packed__)) _reloc_meta_t typedef struct __attribute__((__packed__)) _reloc_meta_t

View File

@@ -87,13 +87,20 @@ typedef struct _nyx_info_t
u32 errors; u32 errors;
} nyx_info_t; } nyx_info_t;
typedef struct _nyx_info_ex_t
{
u32 magic;
u32 rsvd_flags;
} nyx_info_ex_t;
typedef struct _nyx_storage_t typedef struct _nyx_storage_t
{ {
u32 version; u32 version;
u32 cfg; u32 cfg;
u8 irama[0x8000]; u8 rsdv0[0x8000];
u8 hekate[0x30000]; u8 hekate[0x30000];
u8 rsvd[SZ_8M - sizeof(nyx_info_t)]; nyx_info_ex_t info_ex;
u8 rsvd1[SZ_8M - sizeof(nyx_info_ex_t) - sizeof(nyx_info_t)];
nyx_info_t info; nyx_info_t info;
minerva_str_t minerva; minerva_str_t minerva;
} nyx_storage_t; } nyx_storage_t;