11.1Sscole/* $NetBSD: efilib.h,v 1.1 2016/08/04 18:07:43 scole Exp $ */ 21.1Sscole 31.1Sscole/*- 41.1Sscole * Copyright (c) 2000 Doug Rabson 51.1Sscole * Copyright (c) 2006 Marcel Moolenaar 61.1Sscole * All rights reserved. 71.1Sscole * 81.1Sscole * Redistribution and use in source and binary forms, with or without 91.1Sscole * modification, are permitted provided that the following conditions 101.1Sscole * are met: 111.1Sscole * 1. Redistributions of source code must retain the above copyright 121.1Sscole * notice, this list of conditions and the following disclaimer. 131.1Sscole * 2. Redistributions in binary form must reproduce the above copyright 141.1Sscole * notice, this list of conditions and the following disclaimer in the 151.1Sscole * documentation and/or other materials provided with the distribution. 161.1Sscole * 171.1Sscole * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 181.1Sscole * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 191.1Sscole * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 201.1Sscole * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 211.1Sscole * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 221.1Sscole * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 231.1Sscole * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 241.1Sscole * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 251.1Sscole * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 261.1Sscole * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 271.1Sscole * SUCH DAMAGE. 281.1Sscole * 291.1Sscole * $FreeBSD: releng/10.1/sys/boot/efi/include/efilib.h 271135 2014-09-04 21:01:10Z emaste $ 301.1Sscole */ 311.1Sscoleextern EFI_HANDLE IH; 321.1Sscoleextern EFI_SYSTEM_TABLE *ST; 331.1Sscoleextern EFI_BOOT_SERVICES *BS; 341.1Sscoleextern EFI_RUNTIME_SERVICES *RS; 351.1Sscole 361.1Sscolevoid *efi_get_table(EFI_GUID *tbl); 371.1Sscolevoid efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table); 381.1Sscole 391.1SscoleEFI_PHYSICAL_ADDRESS efimd_va2pa(EFI_VIRTUAL_ADDRESS); 401.1Sscole 411.1SscoleEFI_STATUS main(int argc, CHAR16 *argv[]); 421.1Sscolevoid efi_exit(EFI_STATUS status); 43