efilib.h (163898) | efilib.h (164010) |
---|---|
1/*- 2 * Copyright (c) 2000 Doug Rabson | 1/*- 2 * Copyright (c) 2000 Doug Rabson |
3 * Copyright (c) 2006 Marcel Moolenaar |
|
3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright --- 7 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. 11 * 2. Redistributions in binary form must reproduce the above copyright --- 7 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
26 * $FreeBSD: head/sys/boot/efi/include/efilib.h 163898 2006-11-02 02:42:48Z marcel $ | 27 * $FreeBSD: head/sys/boot/efi/include/efilib.h 164010 2006-11-05 22:03:04Z marcel $ |
27 */ 28 | 28 */ 29 |
29#include <efifpswa.h> | 30#include <stand.h> |
30 31extern EFI_HANDLE IH; 32extern EFI_SYSTEM_TABLE *ST; 33extern EFI_BOOT_SERVICES *BS; 34extern EFI_RUNTIME_SERVICES *RS; 35 | 31 32extern EFI_HANDLE IH; 33extern EFI_SYSTEM_TABLE *ST; 34extern EFI_BOOT_SERVICES *BS; 35extern EFI_RUNTIME_SERVICES *RS; 36 |
36/* DIG64 Headless Console & Debug Port Table. */ 37#define HCDP_TABLE_GUID \ 38 {0xf951938d,0x620b,0x42ef,{0x82,0x79,0xa8,0x4b,0x79,0x61,0x78,0x98}} | 37extern struct devsw efifs_dev; 38extern struct fs_ops efifs_fsops; |
39 | 39 |
40extern struct devsw efinet_dev; 41extern struct netif_driver efinetif; 42 |
|
40void *efi_get_table(EFI_GUID *tbl); 41void efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table); 42 | 43void *efi_get_table(EFI_GUID *tbl); 44void efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table); 45 |
43EFI_PHYSICAL_ADDRESS efimd_va2pa(EFI_VIRTUAL_ADDRESS); | 46int efi_register_handles(struct devsw *, EFI_HANDLE *, int); 47EFI_HANDLE efi_find_handle(struct devsw *, int); 48int efi_handle_lookup(EFI_HANDLE, struct devsw **, int *); |
44 | 49 |
50int efi_status_to_errno(EFI_STATUS); 51time_t efi_time(EFI_TIME *); 52 |
|
45EFI_STATUS main(int argc, CHAR16 *argv[]); 46void exit(EFI_STATUS status); | 53EFI_STATUS main(int argc, CHAR16 *argv[]); 54void exit(EFI_STATUS status); |