]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9b67d31f8870bcc766f1d5c77a4d7e80ead9f11b
treeba834439e3cf34acd6d2a4fbdd092567663d4d4f
parente54da5194725d1f6f9503c538f1035b853618d16
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