This repository has been archived by the owner on Dec 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
/
syspara.h
67 lines (59 loc) · 1.41 KB
/
syspara.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef AW_SYSPARA_H
#define AW_SYSPARA_H
#include <inttypes.h>
typedef struct _AW_SYSPARA {
char magic[8]; /* "SYS_PARA" */
uint32_t val_0100; /* 0x00000100 firmwareid? */
uint32_t val_0; /* 0x00000000 */
uint32_t val_1; /* 0x00000001 */
uint32_t chip; /* 0x02000000 */
uint32_t pid; /* 0x02000000 */
uint32_t vid; /* 0x02000100 */
uint32_t bid; /* 0x00000080 */
uint32_t val_0_2; /* 0x00000000 */
uint32_t val_0_3; /* 0x00000000 */
uint32_t unknown; /* 0x00380AC1/3672769 */
uint32_t pad[16];
/* offset 0x70 */
uint32_t dram_baseaddr;
uint32_t dram_clk;
uint32_t dram_type;
uint32_t dram_rank_num;
uint32_t dram_chip_density;
uint32_t dram_io_width;
uint32_t dram_bus_width;
uint32_t dram_cas;
uint32_t dram_zq;
uint32_t dram_odt_en;
uint32_t dram_size;
uint32_t dram_tpr0;
uint32_t dram_tpr1;
uint32_t dram_tpr2;
uint32_t dram_tpr3;
uint32_t dram_tpr4;
uint32_t dram_tpr5;
uint32_t dram_emr1;
uint32_t dram_emr2;
uint32_t dram_emr3;
uint32_t pad2[260];
/* offset 0x4D0 */
uint32_t mbr_size;
uint32_t num_partitions;
struct _AW_PART {
uint32_t size_hi;
uint32_t size_lo;
char class_name[32];
char name[32];
uint32_t user_type;
uint8_t unknown[28];
} partitions[14];
uint32_t num_downloads;
struct _AW_DOWNLOAD {
char part_name[32];
char pkt_name[32];
char verify_file[32];
uint8_t unknown;
} downloads[14];
uint8_t pad3[1436];
} AW_SYSPARA;
#endif /* AW_SYSPARA_H */