Hello Alain Abitria,
In LSDK flexbuild environment, please execute the following command to get mc-utils in the folder ~/flexbuild/packages/firmware/mc-utils.
$ flex-builder -c mc-utils -m arm64
You will get the example dpl and dpc source code in the folder config/ls1088a/RDB, more examples in custom folder.
Still in mc-utils source code folder api/mc_release_<version>, you will get the source code for MC APIs, please refer to dpdmai.c file.
Please refer to dpdmai_open function, use DPDMAI_OPEN to open a control session for DPDMAI.
You could use dpdmai_is_enabled to check whether DPDMAI is enabled pointer to the specific MC portal's I/O object.
For QBMAN please refer to dpio_get_attributes in dpio.c, qbman software portal IDs are parts of DPIO attributes.
DPIO objects include QBMAN software portals, and they allow GPP core software to read and write packages from the DPNIs.
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------