mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-24 23:53:04 +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)
|
@msg(0x8a, DIR.RX, AFKEP_InitRB)
|
||||||
def InitTX(self, msg):
|
def InitTX(self, msg):
|
||||||
off = msg.OFFSET * AFKRingBuf.BLOCK_SIZE
|
off = msg.OFFSET * AFKRingBuf.BLOCK_STEP
|
||||||
size = msg.SIZE * AFKRingBuf.BLOCK_SIZE
|
size = msg.SIZE * AFKRingBuf.BLOCK_STEP
|
||||||
self.state.txbuf_info = (off, size)
|
self.state.txbuf_info = (off, size)
|
||||||
self.create_bufs()
|
self.create_bufs()
|
||||||
|
|
||||||
@msg(0x8b, DIR.RX, AFKEP_InitRB)
|
@msg(0x8b, DIR.RX, AFKEP_InitRB)
|
||||||
def InitRX(self, msg):
|
def InitRX(self, msg):
|
||||||
off = msg.OFFSET * AFKRingBuf.BLOCK_SIZE
|
off = msg.OFFSET * AFKRingBuf.BLOCK_STEP
|
||||||
size = msg.SIZE * AFKRingBuf.BLOCK_SIZE
|
size = msg.SIZE * AFKRingBuf.BLOCK_STEP
|
||||||
self.state.rxbuf_info = (off, size)
|
self.state.rxbuf_info = (off, size)
|
||||||
self.create_bufs()
|
self.create_bufs()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue