bus: fsl-mc: add fsl-mc userspace support
authorIoana Ciornei <ioana.ciornei@nxp.com>
Wed, 14 Mar 2018 17:25:27 +0000 (19:25 +0200)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:36:24 +0000 (11:36 +0800)
commitbdeebd09a6d884e6cd0077efaacde2b28ae94b4e
tree99bf0bb6480cce360443b5bf0ddf682cde740f1e
parent25e74cb06a3b2a4ff6e1e57a04a75ef556261b70
bus: fsl-mc: add fsl-mc userspace support

Adding userspace support for the MC (Management Complex) means exporting
an ioctl capable device file representing the root resource container.

This new functionality in the fsl-mc bus driver intends to provide
userspace applications an interface to interact with the MC firmware.

Commands that are composed in userspace are sent to the MC firmware
through the FSL_MC_SEND_MC_COMMAND ioctl.  By default the implicit MC
I/O portal is used for this operation, but if the implicit one is busy,
a dynamic portal is allocated and then freed upon execution.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
drivers/bus/fsl-mc/Kconfig
drivers/bus/fsl-mc/Makefile
drivers/bus/fsl-mc/dprc-driver.c
drivers/bus/fsl-mc/fsl-mc-private.h
drivers/bus/fsl-mc/fsl-mc-uapi.c [new file with mode: 0644]
include/uapi/linux/fsl_mc.h