Simon Glass | 55de3e5 | 2023-03-20 08:30:14 +1300 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Common code for EFI commands |
| 4 | * |
| 5 | * Copyright 2023 Google LLC |
| 6 | * Written by Simon Glass <sjg@chromium.org> |
| 7 | */ |
| 8 | |
Simon Glass | 55de3e5 | 2023-03-20 08:30:14 +1300 | [diff] [blame] | 9 | #include <efi.h> |
| 10 | #include <efi_api.h> |
Caleb Connolly | 29cab7c | 2024-08-30 13:34:37 +0100 | [diff] [blame] | 11 | #include <u-boot/uuid.h> |
Simon Glass | 55de3e5 | 2023-03-20 08:30:14 +1300 | [diff] [blame] | 12 | |
| 13 | void efi_show_tables(struct efi_system_table *systab) |
| 14 | { |
| 15 | int i; |
| 16 | |
| 17 | for (i = 0; i < systab->nr_tables; i++) { |
| 18 | struct efi_configuration_table *tab = &systab->tables[i]; |
Simon Glass | 55de3e5 | 2023-03-20 08:30:14 +1300 | [diff] [blame] | 19 | |
Simon Glass | 1d15cb3 | 2023-11-12 13:55:10 -0700 | [diff] [blame] | 20 | printf("%p %pUl %s\n", tab->table, tab->guid.b, |
Simon Glass | 55de3e5 | 2023-03-20 08:30:14 +1300 | [diff] [blame] | 21 | uuid_guid_get_str(tab->guid.b) ?: "(unknown)"); |
| 22 | } |
| 23 | } |