forked from ProjectZeroSlackr/ipodloader2
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfwfs.h
More file actions
36 lines (29 loc) · 674 Bytes
/
fwfs.h
File metadata and controls
36 lines (29 loc) · 674 Bytes
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
#ifndef _FWFS_H_
#define _FWFS_H_
#include "bootloader.h"
typedef struct {
uint32 magic; /* [hi] */
uint32 bl_table; /* Start location of bootloader table */
uint16 ext_head; /* Start location of extended header */
uint16 version; /* Firmware format version (2=Pre 4G, 3=Post 4G) */
} fwfs_header_t;
typedef struct {
uint32 dev;
uint32 type;
uint32 id;
uint32 devOffset;
uint32 len;
uint32 addr;
uint32 entryOffset;
uint32 chksum;
uint32 vers;
uint32 loadaddr;
} fwfs_image_t;
typedef struct {
uint32 devOffset;
uint32 length;
uint32 chksum;
uint32 position;
} fwfs_file;
void fwfs_newfs(uint8 part,uint32 offset);
#endif