common/octeontx2: add mailbox send and receive support
authorJerin Jacob <jerinj@marvell.com>
Sat, 22 Jun 2019 13:23:56 +0000 (18:53 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 25 Jun 2019 21:35:57 +0000 (23:35 +0200)
commitc707a7332daed2f0569b5fb30d282f38af226d2d
tree120fcef8f23c245ac90e740a5843970a8a465056
parentdd543124cd93d57f46a5a9302c6feb8809b6171b
common/octeontx2: add mailbox send and receive support

Each RVU device has a dedicated 64KB mailbox region
shared with its peer for communication. RVU AF has
a separate mailbox region shared with each of RVU PFs
and an RVU PF has a separate region shared with each of
it's VF.

This patch add use 64KB memory and implemented mailbox
send and receive support.

These set of APIs are used by this driver (RVU AF) and
other RVU PF/VF drivers eg ethdev, cryptodev e.t.c.

Signed-off-by: Jerin Jacob <jerinj@marvell.com>
Signed-off-by: Vamsi Attunuru <vattunuru@marvell.com>
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
drivers/common/octeontx2/otx2_mbox.c
drivers/common/octeontx2/otx2_mbox.h
drivers/common/octeontx2/rte_common_octeontx2_version.map