summaryrefslogtreecommitdiff
path: root/firmware/target/arm/s5l8702/nor-target.h
diff options
context:
space:
mode:
authorVencislav Atanasov <user890104@freemyipod.org>2024-06-23 22:58:26 +0300
committerSolomon Peachy <pizza@shaftnet.org>2024-06-24 21:00:25 -0400
commit4691152f9219c5ae8d1fce7c7f7840fe709e5040 (patch)
tree8cc78462881f69674b6fb2f02166f0ae66f439be /firmware/target/arm/s5l8702/nor-target.h
parentc2c8fcb561fef6346f880e3c76a723e9b2d86c7b (diff)
downloadrockbox-4691152f9219c5ae8d1fce7c7f7840fe709e5040.tar.gz
rockbox-4691152f9219c5ae8d1fce7c7f7840fe709e5040.zip
Add SysCfg viewer for iPod 6G in the debug menu
Change-Id: I4e142f40777c7f8ae58f2b46fc6a3ec4f12aa530
Diffstat (limited to 'firmware/target/arm/s5l8702/nor-target.h')
-rw-r--r--firmware/target/arm/s5l8702/nor-target.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/firmware/target/arm/s5l8702/nor-target.h b/firmware/target/arm/s5l8702/nor-target.h
index 4ebe1d58d4..3d2790d123 100644
--- a/firmware/target/arm/s5l8702/nor-target.h
+++ b/firmware/target/arm/s5l8702/nor-target.h
@@ -87,6 +87,34 @@ int bootflash_compare(int port, int offset, void* addr, int size);
87void bootflash_erase_blocks(int port, int first, int n); 87void bootflash_erase_blocks(int port, int first, int n);
88void bootflash_close(int port); 88void bootflash_close(int port);
89 89
90/*
91 * SysCfg
92 */
93struct SysCfgHeader {
94 uint32_t magic; // always 'SCfg'
95 uint32_t size;
96 uint32_t unknown1; // 0x00000200 on iPod classic
97 uint32_t version; // maybe? 0x00010001 on iPod classic
98 uint32_t unknown2; // 0x00000000 on iPod classic
99 uint32_t num_entries;
100}; // 0x18
101
102struct SysCfgEntry {
103 uint32_t tag;
104 uint8_t data[0x10];
105};
106
107#define SYSCFG_MAGIC 0x53436667 // SCfg
108
109#define SYSCFG_TAG_SRNM 0x53724e6d // SrNm
110#define SYSCFG_TAG_FWID 0x46774964 // FwId
111#define SYSCFG_TAG_HWID 0x48774964 // HwId
112#define SYSCFG_TAG_HWVR 0x48775672 // HwVr
113#define SYSCFG_TAG_CODC 0x436f6463 // Codc
114#define SYSCFG_TAG_SWVR 0x53775672 // SwVr
115#define SYSCFG_TAG_MLBN 0x4d4c424e // MLBN
116#define SYSCFG_TAG_MODN 0x4d6f6423 // Mod#
117#define SYSCFG_TAG_REGN 0x5265676e // Regn
90 118
91/* 119/*
92 * IM3 120 * IM3