libcamera: ipa_module_info: update struct to allow IPA matching
We need a way to match pipelines with IPA modules, so add fields in IPAModuleInfo to hold the IPA module API version number, the pipeline name, and the pipeline version. The module API version is used to determine the layout of struct IPAModuleInfo. Also update IPA module tests and Doxygen accordingly. Doxygen needs to be updated to accomodate __attribute__((packed)). Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
379a0a5dd8
commit
677e8e1dfe
5 changed files with 55 additions and 25 deletions
|
@ -169,6 +169,17 @@ int elfLoadSymbol(void *dst, size_t size, void *map, size_t soSize,
|
|||
|
||||
} /* namespace */
|
||||
|
||||
/**
|
||||
* \def IPA_MODULE_API_VERSION
|
||||
* \brief The IPA module API version
|
||||
*
|
||||
* This version number specifies the version for the layout of
|
||||
* struct IPAModuleInfo. The IPA module shall use this macro to
|
||||
* set its moduleAPIVersion field.
|
||||
*
|
||||
* \sa IPAModuleInfo::moduleAPIVersion
|
||||
*/
|
||||
|
||||
/**
|
||||
* \struct IPAModuleInfo
|
||||
* \brief Information of an IPA module
|
||||
|
@ -176,14 +187,23 @@ int elfLoadSymbol(void *dst, size_t size, void *map, size_t soSize,
|
|||
* This structure contains the information of an IPA module. It is loaded,
|
||||
* read, and validated before anything else is loaded from the shared object.
|
||||
*
|
||||
* \var IPAModuleInfo::moduleAPIVersion
|
||||
* \brief The IPA module API version that the IPA module implements
|
||||
*
|
||||
* This version number specifies the version for the layout of
|
||||
* struct IPAModuleInfo. The IPA module shall report here the version that
|
||||
* it was built for, using the macro IPA_MODULE_API_VERSION.
|
||||
*
|
||||
* \var IPAModuleInfo::pipelineVersion
|
||||
* \brief The pipeline handler version that the IPA module is for
|
||||
*
|
||||
* \var IPAModuleInfo::pipelineName
|
||||
* \brief The name of the pipeline handler that the IPA module is for
|
||||
*
|
||||
* This name is used to match a pipeline handler with the module.
|
||||
*
|
||||
* \var IPAModuleInfo::name
|
||||
* \brief The name of the IPA module
|
||||
*
|
||||
* \var IPAModuleInfo::version
|
||||
* \brief The version of the IPA module
|
||||
*
|
||||
* \todo abi compatability version
|
||||
* \todo pipeline compatability matcher
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue