2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 05:04:00 +08:00
linux-next/drivers/soc/fsl/qbman
Laurentiu Tudor 853dc104e6 soc: fsl: qbman: add APIs to retrieve the probing status
Add a couple of new APIs to check the probing status of qman and bman:
 'int bman_is_probed()' and 'int qman_is_probed()'.
They return the following values.
 *  1 if qman/bman were probed correctly
 *  0 if qman/bman were not yet probed
 * -1 if probing of qman/bman failed
Drivers that use qman/bman driver services are required to use these
APIs before calling any functions exported by qman or bman drivers
or otherwise they will crash the kernel.
The APIs will be used in the following couple of qbman portal patches
and later in the series in the dpaa1 ethernet driver.

Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
2018-09-27 15:43:35 -05:00
..
bman_ccsr.c soc: fsl: qbman: add APIs to retrieve the probing status 2018-09-27 15:43:35 -05:00
bman_portal.c soc/fsl/qbman: Rework portal mapping calls for ARM/PPC 2017-09-22 13:33:07 -05:00
bman_priv.h soc/fsl/qbman: Rework portal mapping calls for ARM/PPC 2017-09-22 13:33:07 -05:00
bman_test_api.c soc/bman: Add self-test for BMan driver 2016-09-25 02:38:59 -05:00
bman_test.c soc/bman: Add self-test for BMan driver 2016-09-25 02:38:59 -05:00
bman_test.h soc/bman: Add self-test for BMan driver 2016-09-25 02:38:59 -05:00
bman.c soc/fsl/qbman: different register offsets on ARM 2017-09-22 13:33:07 -05:00
dpaa_sys.c soc/fsl/qbman: Add common routine for QBMan private allocations 2017-09-22 13:33:07 -05:00
dpaa_sys.h soc/fsl/qbman: Add missing headers on ARM 2017-09-22 13:33:07 -05:00
Kconfig soc: fsl: cleanup Kconfig menu 2018-07-24 16:19:16 -05:00
Makefile ARM: SoC driver updates for v4.15 2017-11-16 16:05:01 -08:00
qman_ccsr.c soc: fsl: qbman: add APIs to retrieve the probing status 2018-09-27 15:43:35 -05:00
qman_portal.c soc/fsl/qbman: Rework portal mapping calls for ARM/PPC 2017-09-22 13:33:07 -05:00
qman_priv.h soc/fsl/qbman: add QMAN_REV32 2017-09-22 13:33:07 -05:00
qman_test_api.c soc/qman: Handle endianness of h/w descriptors 2016-11-23 21:01:25 -06:00
qman_test_stash.c soc/fsl/qman: test: use DEFINE_SPINLOCK() 2016-12-09 23:08:52 -06:00
qman_test.c soc/qman: Add self-test for QMan driver 2016-09-25 02:39:00 -05:00
qman_test.h soc/fsl/qbman: Use shared-dma-pool for QMan private memory allocations 2017-09-22 13:33:07 -05:00
qman.c soc: fsl: qbman: qman: avoid allocating from non existing gen_pool 2018-09-25 13:57:25 -07:00