]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/vas: Define vas_win_paste_addr()
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Wed, 8 Nov 2017 02:23:56 +0000 (18:23 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 11 Nov 2017 22:03:10 +0000 (09:03 +1100)
commit5676be2fb7035ac32da3a96241611e7eddff6157
treec6cbbfcce47e961dfac63cc3826555c4dd022874
parent9d2a4d71332cfdf4ea90754ad9b2f05a5ee5f6c7
powerpc/vas: Define vas_win_paste_addr()

Define an interface that the NX drivers can use to find the physical
paste address of a send window. This interface is expected to be used
with the mmap() operation of the NX driver's device. i.e the user space
process can use driver's mmap() operation to map the send window's paste
address into their address space and then use copy and paste instructions
to submit the CRBs to the NX engine.

Note that kernel drivers will use vas_paste_crb() directly and don't need
this interface.

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/vas.h
arch/powerpc/platforms/powernv/vas-window.c