mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-23 07:03:08 +00:00
m1n1.fw.asc.kdebug: Handle prealloc messages (partially)
Not sure if these need a reply... Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
99acc2675b
commit
0e3ee31254
1 changed files with 19 additions and 0 deletions
|
@ -9,6 +9,15 @@ class KDebugGetBufMessage(KDebugMessage):
|
|||
TYPE = 55, 48, Constant(1)
|
||||
COUNT = 47, 0
|
||||
|
||||
class KDebugPreallocBuf1Message(KDebugMessage):
|
||||
TYPE = 55, 48, Constant(2)
|
||||
DVA = 47, 12
|
||||
FLAGS = 11, 0
|
||||
|
||||
class KDebugPreallocBuf2Message(KDebugMessage):
|
||||
TYPE = 55, 48, Constant(3)
|
||||
DVA = 47, 0
|
||||
|
||||
class KDebugSendBufMessage(KDebugMessage):
|
||||
TYPE = 55, 48
|
||||
DVA = 47, 0
|
||||
|
@ -30,6 +39,16 @@ class ASCKDebugEndpoint(ASCBaseEndpoint):
|
|||
self.send(KDebugSendBufMessage(TYPE=2, DVA=self.iobuffer1_iova))
|
||||
return True
|
||||
|
||||
@msg_handler(2, KDebugPreallocBuf1Message)
|
||||
def SetBuf1(self, msg):
|
||||
#self.send(KDebugSendBufMessage(TYPE=1, DVA=msg.DVA))
|
||||
return True
|
||||
|
||||
@msg_handler(3, KDebugPreallocBuf2Message)
|
||||
def SetBuf2(self, msg):
|
||||
#self.send(KDebugSendBufMessage(TYPE=2, DVA=msg.DVA))
|
||||
return True
|
||||
|
||||
def start(self):
|
||||
self.iobuffer0 = None
|
||||
self.iobuffer1 = None
|
||||
|
|
Loading…
Reference in a new issue