octeontx2-af: Add mailbox support infra
authorAleksey Makarov <amakarov@marvell.com>
Wed, 10 Oct 2018 12:44:24 +0000 (18:14 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Oct 2018 17:06:01 +0000 (10:06 -0700)
commit021e2e53b8c891a9d95860a318e5f30c76bf8b0d
treeba834439e3cf34acd6d2a4fbdd092567663d4d4f
parent1054a6227c296af18e027d726203d6e67aa405fe
octeontx2-af: Add mailbox support infra

This patch adds mailbox support infrastructure APIs.
Each RVU device has a dedicated 64KB mailbox region
shared with it's peer for communication. RVU AF has
a separate mailbox region shared with each of RVU PFs
and a RVU PF has a separate region shared with each of
it's VF.

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

Signed-off-by: Aleksey Makarov <amakarov@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: Lukasz Bartosik <lbartosik@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/Kconfig
drivers/net/ethernet/marvell/octeontx2/af/Makefile
drivers/net/ethernet/marvell/octeontx2/af/mbox.c [new file with mode: 0644]
drivers/net/ethernet/marvell/octeontx2/af/mbox.h [new file with mode: 0644]
drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.h