From d4b7fae29a6458b640a1131f2859738d028acf73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= Date: Sat, 26 Nov 2022 13:18:59 +0100 Subject: [PATCH] m1n1.adt: Parse 'segment-ranges' of coprocessor nodes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin PoviĊĦer --- proxyclient/m1n1/adt.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/proxyclient/m1n1/adt.py b/proxyclient/m1n1/adt.py index 6c7d6b1..bef21ec 100644 --- a/proxyclient/m1n1/adt.py +++ b/proxyclient/m1n1/adt.py @@ -154,6 +154,14 @@ DCBlockerConfig = Struct( "pad" / Hex(Int16ul), ) +ASCSegmentRange = Struct( + "pa" / Hex(Int64ul), + "unk" / Hex(Int64ul), + "iova" / Hex(Int64ul), + "size" / Hex(Int32ul), + "flags" / Hex(Int32ul), +) + DEV_PROPERTIES = { "pmgr": { "*": { @@ -236,7 +244,12 @@ DEV_PROPERTIES = { "*": { "audio-stream-formatter": FourCC, } - } + }, + "*": { + "*": { + "segment-ranges": SafeGreedyRange(ASCSegmentRange), + } + }, } def parse_prop(node, path, node_name, name, v, is_template=False): -- 2.37.0 (Apple Git-136)