Now that we have separated the ways we probe the `GIC` (`Devicetree`
vs `ACPI`) and the `Devicetree` parts can fetch the `Devicetree` on
their own, remove the no longer necessary `fdt` function parameters
from the related functions.
Signed-off-by: Sergiu Moga <sergiu.moga@protonmail.com>
Reviewed-by: Razvan Virtan <virtanrazvan@gmail.com>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #912
#error At least one GIC driver should be selected!
#endif
-int _dtb_init_gic(const void *fdt, struct _gic_dev **dev)
+int init_gic(struct _gic_dev **dev)
{
int rc;
};
/**
- * Initialize GIC driver from device tree
+ * Initialize GIC driver from device tree or ACPI
*
- * @param [in] fdt Pointer to fdt structure
* @param [out] dev receives pointer to GIC device driver on success, NULL
* otherwise
*
* @return 0 on success, a non-zero error code otherwise
*/
-int _dtb_init_gic(const void *fdt, struct _gic_dev **dev);
+int init_gic(struct _gic_dev **dev);
/**
* Translate a type-relative interrupt number to the corresponding absolute
void intctrl_init(void)
{
- void *dtb;
int rc;
- dtb = (void *)ukplat_bootinfo_get()->dtb;
-
/* Initialize GIC from DTB */
- rc = _dtb_init_gic(dtb, &gic);
+ rc = init_gic(&gic);
if (unlikely(rc))
goto EXIT_ERR;