diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2019-10-24 08:21:37 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-10-28 12:38:09 +0100 |
commit | 6ab809a3d5b6ddec6e0dd12096fd0ce6bab66006 (patch) | |
tree | 1d4c872cad1e30b3f8c6f6977b65cb144d230735 /include/efi/efi-device.h | |
parent | 438f80e986586ddb1288caac4b9e1b0e6498e0cc (diff) | |
download | barebox-6ab809a3d5b6ddec6e0dd12096fd0ce6bab66006.tar.gz barebox-6ab809a3d5b6ddec6e0dd12096fd0ce6bab66006.tar.xz |
efi: populate boot source instance
We already determine the boot source variable at core init level, but so
far we didn't populate the instance because the numbering of the block
devices isn't known that early. Introduce a helper to check if a block
device is the boot source and if it is, have the block device driver
populate the missing boot source instance.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/efi/efi-device.h')
-rw-r--r-- | include/efi/efi-device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/efi/efi-device.h b/include/efi/efi-device.h index 15c293bb1b..5eaf1f260d 100644 --- a/include/efi/efi-device.h +++ b/include/efi/efi-device.h @@ -43,5 +43,6 @@ static inline int efi_driver_register(struct efi_driver *efidrv) int efi_connect_all(void); void efi_register_devices(void); +struct efi_device *efi_get_bootsource(void); #endif /* __EFI_EFI_DEVICE_H */ |