• L
    soc: fsl: qbman: add APIs to retrieve the probing status · 853dc104
    Laurentiu Tudor 提交于
    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: NLaurentiu Tudor <laurentiu.tudor@nxp.com>
    Signed-off-by: NLi Yang <leoyang.li@nxp.com>
    853dc104
bman.h 4.7 KB