Skip to main content
Header: gsl/hw_rsc_api/gsl_hw_rsc_intf.h

Functions

gsl_request_hw_rsc_config

Request for HW resource configuration. Look up into ACDB to retrieve the configuration and send request command to SPF PRM module
Parameters
uint32_t
Module instance ID against which HW resource configuration is stored in ACDB
const struct gsl_key_vector *
Key vector used to look up data base for HW resource configuration
Returns AR_EOK on success, error code otherwise

gsl_release_hw_rsc_config

Release HW resource configuration. Look up into ACDB to retrieve the configuration and send release command to SPF PRM module
Parameters
uint32_t
Module instance ID against which HW resource configuration is stored in ACDB
const struct gsl_key_vector *
Key vector used to look up data base for HW resource configuration
Returns AR_EOK on success, error code otherwise

gsl_request_hw_rsc_custom_config

Request for HW resource configuration. Clients provide the configuration that needs to be sent to SPF PRM module
Parameters
const uint8_t *
Pointer to HW resource configuration payload should be in the form followed by variable payload. Client is expected to send only one PID at a time using this API.
size_t
Size of the HW resource configuration
void *
OPTIONAL buffer to receive the response payload from Spf. Will be filled if present.
uint32_t *
OPTIONAL size of memory allocated for buff. If buff is written to, contains the number of bytes written.
Returns AR_EOK on success, error code otherwise

gsl_release_hw_rsc_custom_config

Release HW resource configuration. Clients provide the configuration that needs to be sent to SPF PRM module
Parameters
const uint8_t *
Pointer to HW resource configuration payload should be in the form followed by variable payload. Client is expected to send only one PID at a time using this API.
size_t
Size of the HW resource configuration
void *
OPTIONAL buffer to receive the response payload from Spf. Will be filled if present.
uint32_t *
OPTIONAL size of memory allocated for buff. If buff is written to, contains the number of bytes written.
Returns AR_EOK on success, error code otherwise

gsl_hw_rsc_init

Initialize GSL HW resource manager layer.
Returns AR_EOK on success, error code otherwise

gsl_hw_rsc_deinit

De-Initialize GSL HW resource manager layer.
Returns AR_EOK on success, error code otherwise

Enumerations

gsl_hw_rsc_command_rsp

Values