Skip to content

Commit 1f8f966

Browse files
committed
m1n1.adt: Start parsing SIO properties
Signed-off-by: Martin Povišer <povik@cutebit.org>
1 parent ba1dfab commit 1f8f966

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

proxyclient/m1n1/adt.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,25 @@
154154
"pad" / Hex(Int16ul),
155155
)
156156

157+
SIODMAShimData = Struct(
158+
"name" / FourCC,
159+
"unk" / Hex(Int32ul)[8],
160+
)
161+
162+
SIOMapRange = Struct(
163+
"unk1" / FourCC,
164+
"unk2" / Hex(Int32ul),
165+
"unk3" / Hex(Int32ul),
166+
"unk4" / Hex(Int32ul),
167+
"unk5" / Hex(Int32ul),
168+
)
169+
170+
SIODeviceType = Struct(
171+
"id" / FourCC,
172+
"unk1" / Hex(Int32ul),
173+
"unk2" / Hex(Int32ul),
174+
)
175+
157176
DEV_PROPERTIES = {
158177
"pmgr": {
159178
"*": {
@@ -236,6 +255,13 @@
236255
"*": {
237256
"audio-stream-formatter": FourCC,
238257
}
258+
},
259+
"sio": {
260+
"*": {
261+
"map-range": SIOMapRange,
262+
"device-type": SafeGreedyRange(SIODeviceType),
263+
"dmashim": SafeGreedyRange(SIODMAShimData),
264+
}
239265
}
240266
}
241267

0 commit comments

Comments
 (0)