1293297Semaste/*- 2293297Semaste * Copyright (c) 2006 Marcel Moolenaar 3293297Semaste * All rights reserved. 4293297Semaste * 5293297Semaste * Redistribution and use in source and binary forms, with or without 6293297Semaste * modification, are permitted provided that the following conditions 7293297Semaste * are met: 8293297Semaste * 9293297Semaste * 1. Redistributions of source code must retain the above copyright 10293297Semaste * notice, this list of conditions and the following disclaimer. 11293297Semaste * 2. Redistributions in binary form must reproduce the above copyright 12293297Semaste * notice, this list of conditions and the following disclaimer in the 13293297Semaste * documentation and/or other materials provided with the distribution. 14293297Semaste * 15293297Semaste * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16293297Semaste * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17293297Semaste * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18293297Semaste * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19293297Semaste * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20293297Semaste * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21293297Semaste * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22293297Semaste * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23293297Semaste * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24293297Semaste * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25293297Semaste */ 26293297Semaste 27293297Semaste#include <sys/cdefs.h> 28293297Semaste__FBSDID("$FreeBSD$"); 29293297Semaste 30293297Semaste#include <stand.h> 31293297Semaste#include <bootstrap.h> 32293297Semaste#include <efi.h> 33293297Semaste#include <efilib.h> 34294999Ssmh#ifdef EFI_ZFS_BOOT 35294999Ssmh#include <libzfs.h> 36294999Ssmh#endif 37293297Semaste 38293297Semastestruct devsw *devsw[] = { 39293297Semaste &efipart_dev, 40293297Semaste &efinet_dev, 41294999Ssmh#ifdef EFI_ZFS_BOOT 42294999Ssmh &zfs_dev, 43294999Ssmh#endif 44293297Semaste NULL 45293297Semaste}; 46293297Semaste 47293297Semastestruct fs_ops *file_system[] = { 48294999Ssmh#ifdef EFI_ZFS_BOOT 49294999Ssmh &zfs_fsops, 50294999Ssmh#endif 51293297Semaste &dosfs_fsops, 52293297Semaste &ufs_fsops, 53293297Semaste &cd9660_fsops, 54293297Semaste &nfs_fsops, 55293297Semaste &gzipfs_fsops, 56293297Semaste &bzipfs_fsops, 57293297Semaste NULL 58293297Semaste}; 59293297Semaste 60293297Semastestruct netif_driver *netif_drivers[] = { 61293297Semaste &efinetif, 62293297Semaste NULL 63293297Semaste}; 64293297Semaste 65293297Semasteextern struct console efi_console; 66293297Semasteextern struct console comconsole; 67293297Semasteextern struct console nullconsole; 68293297Semaste 69293297Semastestruct console *consoles[] = { 70293297Semaste &efi_console, 71293297Semaste &comconsole, 72293297Semaste &nullconsole, 73293297Semaste NULL 74293297Semaste}; 75