Skip to content

Commit 34df836

Browse files
committed
m1n1.fw.agx: Add TVB growth control messages
Signed-off-by: Asahi Lina <[email protected]>
1 parent 9e63f88 commit 34df836

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

proxyclient/m1n1/fw/agx/channels.py

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from construct import *
77
from .cmdqueue import *
88

9-
__all__ = ["channelNames", "channelRings", "DeviceControlMsg", "EventMsg", "StatsMsg"]
9+
__all__ = ["channelNames", "channelRings", "DeviceControlMsg", "EventMsg", "StatsMsg", "StatsSize"]
1010

1111
if Ver.check("G >= G14 && V >= V13_2 && G < G14X"):
1212
RunCmdQueueSize = 0x40
@@ -101,6 +101,17 @@ class DC_09(ConstructClass):
101101
Ver("G == G14 && V >= V13_2", ZPadding(0x10)),
102102
)
103103

104+
class DC_GrowTVBAck(ConstructClass):
105+
subcon = Struct (
106+
"msg_type" / Const(0xd, Int32ul),
107+
"unk_4" / Int32ul,
108+
"bm_id" / Int32ul,
109+
"vm_id" / Int32ul,
110+
"counter" / Int32ul,
111+
"rest" / HexDump(Default(Bytes(0x1c), bytes(0x1c))),
112+
Ver("G == G14 && V >= V13_2", ZPadding(0x10)),
113+
)
114+
104115
class DC_Any(ConstructClass):
105116
subcon = Struct (
106117
"msg_type" / Int32ul,
@@ -142,6 +153,7 @@ class UnknownMsg(ConstructClass):
142153
DC_UpdateIdleTS,
143154
DC_1e,
144155
DC_Write32,
156+
DC_GrowTVBAck,
145157
UnknownMsg,
146158
))
147159

@@ -337,10 +349,20 @@ class TimeoutMsg(ConstructClass):
337349
"unkpad_16" / HexDump(Bytes(0x38 - 0x10)),
338350
)
339351

352+
class GrowTVBMsg(ConstructClass):
353+
subcon = Struct (
354+
"msg_type" / Hex(Const(7, Int32ul)),
355+
"vm_id" / Hex(Int32ul),
356+
"bm_id" / Hex(Int32ul),
357+
"counter" / Hex(Int32ul),
358+
"tail" / HexDump(Bytes(0x38 - 0x10)),
359+
)
360+
340361
EventMsg = FixedSized(0x38, Select(
341362
FaultMsg,
342363
FlagMsg,
343364
TimeoutMsg,
365+
GrowTVBMsg,
344366
HexDump(Bytes(0x38)),
345367
))
346368

0 commit comments

Comments
 (0)