mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-21 14:23:01 +00:00
hv/trace_aop: Handle afk/epic API breakage
Signed-off-by: Eileen Yoon <eyn@gmx.com>
This commit is contained in:
parent
eebff23b5a
commit
7298f42ce7
1 changed files with 4 additions and 4 deletions
|
@ -108,15 +108,15 @@ class AFKEp(EP):
|
|||
|
||||
@msg(0x8a, DIR.RX, AFKEP_InitRB)
|
||||
def InitTX(self, msg):
|
||||
off = msg.OFFSET * AFKRingBuf.BLOCK_SIZE
|
||||
size = msg.SIZE * AFKRingBuf.BLOCK_SIZE
|
||||
off = msg.OFFSET * AFKRingBuf.BLOCK_STEP
|
||||
size = msg.SIZE * AFKRingBuf.BLOCK_STEP
|
||||
self.state.txbuf_info = (off, size)
|
||||
self.create_bufs()
|
||||
|
||||
@msg(0x8b, DIR.RX, AFKEP_InitRB)
|
||||
def InitRX(self, msg):
|
||||
off = msg.OFFSET * AFKRingBuf.BLOCK_SIZE
|
||||
size = msg.SIZE * AFKRingBuf.BLOCK_SIZE
|
||||
off = msg.OFFSET * AFKRingBuf.BLOCK_STEP
|
||||
size = msg.SIZE * AFKRingBuf.BLOCK_STEP
|
||||
self.state.rxbuf_info = (off, size)
|
||||
self.create_bufs()
|
||||
|
||||
|
|
Loading…
Reference in a new issue