annotate mpffs/struct.h @ 256:dbcfb097ffe1

pirelli/fw-disasm: pwr_cust battery type logic located and analyzed
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 26 Dec 2017 00:56:55 +0000
parents 3cca8070ef0f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
29
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1 /* actual MPFFS on-media structure */
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2 struct mpffs_index {
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
3 u16 len;
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
4 u8 unknown_b1;
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
5 u8 type;
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
6 u16 descend;
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
7 u16 sibling;
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
8 u32 dataptr;
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
9 u16 unknown_w1;
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
10 u16 unknown_w2;
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
11 };
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
12
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
13 /* our own struct for convenience */
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
14 struct objinfo {
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
15 u16 entryno;
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
16 struct mpffs_index *idxrec;
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
17 u8 *dataptr;
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
18 u32 offset;
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
19 u16 len;
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
20 u8 type;
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
21 u16 descend;
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
22 u16 sibling;
e96d6862cec0 mpffs-rdutils code started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
23 };
31
3cca8070ef0f mpffs-ls reports file sizes
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 29
diff changeset
24
3cca8070ef0f mpffs-ls reports file sizes
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 29
diff changeset
25 /* chunk location and size info */
3cca8070ef0f mpffs-ls reports file sizes
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 29
diff changeset
26 struct chunkinfo {
3cca8070ef0f mpffs-ls reports file sizes
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 29
diff changeset
27 u8 *start;
3cca8070ef0f mpffs-ls reports file sizes
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 29
diff changeset
28 u8 *end;
3cca8070ef0f mpffs-ls reports file sizes
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 29
diff changeset
29 size_t len;
3cca8070ef0f mpffs-ls reports file sizes
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 29
diff changeset
30 };