diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-01-10 11:29:07 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2016-02-24 14:57:28 +0000 |
commit | e4fbf4767440472f9d23b0f25a2b905e1c63b6a8 (patch) | |
tree | d1f6ba26628fce6a1aee36e81ab754443729cbcf /drivers/firmware/efi/libstub/efistub.h | |
parent | c031a4213c11a5db475f528c182f7b3858df11db (diff) | |
download | blackbird-obmc-linux-e4fbf4767440472f9d23b0f25a2b905e1c63b6a8.tar.gz blackbird-obmc-linux-e4fbf4767440472f9d23b0f25a2b905e1c63b6a8.zip |
efi: stub: implement efi_get_random_bytes() based on EFI_RNG_PROTOCOL
This exposes the firmware's implementation of EFI_RNG_PROTOCOL via a new
function efi_get_random_bytes().
Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'drivers/firmware/efi/libstub/efistub.h')
-rw-r--r-- | drivers/firmware/efi/libstub/efistub.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/firmware/efi/libstub/efistub.h b/drivers/firmware/efi/libstub/efistub.h index 6b6548fda089..206b7252b9d1 100644 --- a/drivers/firmware/efi/libstub/efistub.h +++ b/drivers/firmware/efi/libstub/efistub.h @@ -43,4 +43,7 @@ void efi_get_virtmap(efi_memory_desc_t *memory_map, unsigned long map_size, unsigned long desc_size, efi_memory_desc_t *runtime_map, int *count); +efi_status_t efi_get_random_bytes(efi_system_table_t *sys_table, + unsigned long size, u8 *out); + #endif |