forked from Mirrors/opensbi
lib: utils: Allow PLIC functions to be used for multiple PLICs
We extend all PLIC functions to have a "struct plic_data *" parameter pointing to PLIC details. This allows platforms to use these functions for multiple PLIC instances. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
@@ -25,11 +25,6 @@ struct platform_uart_data {
|
||||
unsigned long reg_io_width;
|
||||
};
|
||||
|
||||
struct platform_plic_data {
|
||||
unsigned long addr;
|
||||
unsigned long num_src;
|
||||
};
|
||||
|
||||
const struct fdt_match *fdt_match_node(void *fdt, int nodeoff,
|
||||
const struct fdt_match *match_table);
|
||||
|
||||
@@ -52,11 +47,11 @@ int fdt_parse_uart8250_node(void *fdt, int nodeoffset,
|
||||
int fdt_parse_uart8250(void *fdt, struct platform_uart_data *uart,
|
||||
const char *compatible);
|
||||
|
||||
int fdt_parse_plic_node(void *fdt, int nodeoffset,
|
||||
struct platform_plic_data *plic);
|
||||
struct plic_data;
|
||||
|
||||
int fdt_parse_plic(void *fdt, struct platform_plic_data *plic,
|
||||
const char *compatible);
|
||||
int fdt_parse_plic_node(void *fdt, int nodeoffset, struct plic_data *plic);
|
||||
|
||||
int fdt_parse_plic(void *fdt, struct plic_data *plic, const char *compat);
|
||||
|
||||
int fdt_parse_compat_addr(void *fdt, unsigned long *addr,
|
||||
const char *compatible);
|
||||
|
Reference in New Issue
Block a user