conf.c revision 293297
1178354Ssam/*- 2178354Ssam * Copyright (c) 2006 Marcel Moolenaar 3178354Ssam * All rights reserved. 4178354Ssam * 5178354Ssam * Redistribution and use in source and binary forms, with or without 6178354Ssam * modification, are permitted provided that the following conditions 7178354Ssam * are met: 8178354Ssam * 9178354Ssam * 1. Redistributions of source code must retain the above copyright 10178354Ssam * notice, this list of conditions and the following disclaimer. 11178354Ssam * 2. Redistributions in binary form must reproduce the above copyright 12178354Ssam * notice, this list of conditions and the following disclaimer in the 13178354Ssam * documentation and/or other materials provided with the distribution. 14178354Ssam * 15178354Ssam * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16178354Ssam * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17178354Ssam * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18178354Ssam * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19178354Ssam * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20178354Ssam * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21178354Ssam * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22178354Ssam * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23178354Ssam * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24178354Ssam * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25178354Ssam */ 26178354Ssam 27178354Ssam#include <sys/cdefs.h> 28178354Ssam__FBSDID("$FreeBSD: stable/10/sys/boot/efi/loader/conf.c 293297 2016-01-07 02:22:45Z emaste $"); 29178354Ssam 30178354Ssam#include <stand.h> 31178354Ssam#include <bootstrap.h> 32178354Ssam#include <efi.h> 33178354Ssam#include <efilib.h> 34178354Ssam 35178354Ssamstruct devsw *devsw[] = { 36178354Ssam &efipart_dev, 37178354Ssam &efinet_dev, 38178354Ssam NULL 39178354Ssam}; 40178354Ssam 41178354Ssamstruct fs_ops *file_system[] = { 42178354Ssam &dosfs_fsops, 43178354Ssam &ufs_fsops, 44178354Ssam &cd9660_fsops, 45178354Ssam &nfs_fsops, 46178354Ssam &gzipfs_fsops, 47178354Ssam &bzipfs_fsops, 48178354Ssam NULL 49178354Ssam}; 50178354Ssam 51178354Ssamstruct netif_driver *netif_drivers[] = { 52178354Ssam &efinetif, 53178354Ssam NULL 54178354Ssam}; 55178354Ssam 56178354Ssamextern struct console efi_console; 57178354Ssamextern struct console comconsole; 58178354Ssamextern struct console nullconsole; 59178354Ssam 60178354Ssamstruct console *consoles[] = { 61178354Ssam &efi_console, 62178354Ssam &comconsole, 63178354Ssam &nullconsole, 64178354Ssam NULL 65178354Ssam}; 66178354Ssam