1139738Simp/*- 277943Sdfr * Copyright (c) 1997 377943Sdfr * Matthias Drochner. All rights reserved. 477943Sdfr * 577943Sdfr * Redistribution and use in source and binary forms, with or without 677943Sdfr * modification, are permitted provided that the following conditions 777943Sdfr * are met: 877943Sdfr * 1. Redistributions of source code must retain the above copyright 977943Sdfr * notice, this list of conditions and the following disclaimer. 1077943Sdfr * 2. Redistributions in binary form must reproduce the above copyright 1177943Sdfr * notice, this list of conditions and the following disclaimer in the 1277943Sdfr * documentation and/or other materials provided with the distribution. 1377943Sdfr * 3. All advertising materials mentioning features or use of this software 1477943Sdfr * must display the following acknowledgement: 1577943Sdfr * This product includes software developed for the NetBSD Project 1677943Sdfr * by Matthias Drochner. 1777943Sdfr * 4. The name of the author may not be used to endorse or promote products 1877943Sdfr * derived from this software without specific prior written permission. 1977943Sdfr * 2077943Sdfr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 2177943Sdfr * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 2277943Sdfr * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2377943Sdfr * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2477943Sdfr * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2577943Sdfr * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2677943Sdfr * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2777943Sdfr * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2877943Sdfr * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2977943Sdfr * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3078332Sobrien * 3178332Sobrien * $NetBSD: conf.c,v 1.2 1997/03/22 09:03:29 thorpej Exp $ 3277943Sdfr */ 3377943Sdfr 34113038Sobrien#include <sys/cdefs.h> 35113038Sobrien__FBSDID("$FreeBSD$"); 3677943Sdfr 3777943Sdfr#include <stand.h> 3877943Sdfr#include <efi.h> 3977943Sdfr#include <efilib.h> 4077943Sdfr 4177943Sdfr/* 4277943Sdfr * We could use linker sets for some or all of these, but 4377943Sdfr * then we would have to control what ended up linked into 4477943Sdfr * the bootstrap. So it's easier to conditionalise things 4577943Sdfr * here. 4677943Sdfr * 4777943Sdfr * XXX rename these arrays to be consistent and less namespace-hostile 4877943Sdfr */ 4977943Sdfr 5077943Sdfr/* Exported for libstand */ 5177943Sdfrstruct devsw *devsw[] = { 52201941Smarcel &efipart_dev, 53164010Smarcel &efinet_dev, 5478332Sobrien NULL 5577943Sdfr}; 5677943Sdfr 5777943Sdfrstruct fs_ops *file_system[] = { 58201941Smarcel &dosfs_fsops, 59201941Smarcel &ufs_fsops, 60201941Smarcel &cd9660_fsops, 6183829Sdfr &nfs_fsops, 62108100Sjake &gzipfs_fsops, 6378332Sobrien NULL 6477943Sdfr}; 6577943Sdfr 6683829Sdfrstruct netif_driver *netif_drivers[] = { 67164010Smarcel &efinetif, 68164010Smarcel NULL 6983829Sdfr}; 7083829Sdfr 7177943Sdfr/* 7277943Sdfr * Consoles 7377943Sdfr * 7483829Sdfr * We don't prototype these in efiboot.h because they require 7577943Sdfr * data structures from bootstrap.h as well. 7677943Sdfr */ 7777943Sdfrextern struct console efi_console; 7877943Sdfr 7977943Sdfrstruct console *consoles[] = { 8078332Sobrien &efi_console, 8178332Sobrien NULL 8277943Sdfr}; 83