diff options
Diffstat (limited to 'middleware/multicore/open-amp/porting/config')
-rw-r--r-- | middleware/multicore/open-amp/porting/config/config.c | 14 | ||||
-rw-r--r-- | middleware/multicore/open-amp/porting/config/config.h | 10 |
2 files changed, 23 insertions, 1 deletions
diff --git a/middleware/multicore/open-amp/porting/config/config.c b/middleware/multicore/open-amp/porting/config/config.c index fe29d72..bdee597 100644 --- a/middleware/multicore/open-amp/porting/config/config.c +++ b/middleware/multicore/open-amp/porting/config/config.c @@ -43,6 +43,20 @@ #include "config.h" +/** + * config_get_firmware + * + * Searches the given firmware in firmware table list and provides + * it to caller. + * + * @param fw_name - name of the firmware + * @param start_addr - pointer t hold start address of firmware + * @param size - pointer to hold size of firmware + * + * returns - status of function execution + * + */ + int config_get_firmware(char *fw_name, unsigned int *start_addr, unsigned int *size) { return -1; } diff --git a/middleware/multicore/open-amp/porting/config/config.h b/middleware/multicore/open-amp/porting/config/config.h index 23bc36f..6bba03e 100644 --- a/middleware/multicore/open-amp/porting/config/config.h +++ b/middleware/multicore/open-amp/porting/config/config.h @@ -33,8 +33,10 @@ #include "../env/env.h" /* Max supprted ISR counts */ -#define ISR_COUNT 2 +#define ISR_COUNT 4 +/* Max supported firmwares */ +#define FW_COUNT 4 /** * Structure to keep track of registered ISR's. */ @@ -46,6 +48,12 @@ struct isr_info { void (*isr)(int vector, void *data); }; +struct firmware_info { + char name[32]; + unsigned int start_addr; + unsigned int end_addr; +}; + int config_get_firmware(char *fw_name, unsigned int *start_addr, unsigned int *size); #endif |