mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-30 19:48:19 +00:00 
			
		
		
		
	Move this header to include/u-boot/ so that it can be used by external tools. Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
		
			
				
	
	
		
			24 lines
		
	
	
		
			501 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			501 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0+
 | |
| /*
 | |
|  * Common code for EFI commands
 | |
|  *
 | |
|  * Copyright 2023 Google LLC
 | |
|  * Written by Simon Glass <sjg@chromium.org>
 | |
|  */
 | |
| 
 | |
| #include <efi.h>
 | |
| #include <efi_api.h>
 | |
| #include <u-boot/uuid.h>
 | |
| 
 | |
| void efi_show_tables(struct efi_system_table *systab)
 | |
| {
 | |
| 	int i;
 | |
| 
 | |
| 	for (i = 0; i < systab->nr_tables; i++) {
 | |
| 		struct efi_configuration_table *tab = &systab->tables[i];
 | |
| 
 | |
| 		printf("%p  %pUl  %s\n", tab->table, tab->guid.b,
 | |
| 		       uuid_guid_get_str(tab->guid.b) ?: "(unknown)");
 | |
| 	}
 | |
| }
 |