conf.c revision 294999
1200576Sroberto/*-
2132451Sroberto * Copyright (c) 2006 Marcel Moolenaar
3132451Sroberto * All rights reserved.
4182007Sroberto *
5200576Sroberto * Redistribution and use in source and binary forms, with or without
6200576Sroberto * modification, are permitted provided that the following conditions
7132451Sroberto * are met:
8132451Sroberto *
9132451Sroberto * 1. Redistributions of source code must retain the above copyright
10132451Sroberto *    notice, this list of conditions and the following disclaimer.
11132451Sroberto * 2. Redistributions in binary form must reproduce the above copyright
12132451Sroberto *    notice, this list of conditions and the following disclaimer in the
13132451Sroberto *    documentation and/or other materials provided with the distribution.
14132451Sroberto *
15132451Sroberto * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16132451Sroberto * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17132451Sroberto * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18132451Sroberto * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19132451Sroberto * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20200576Sroberto * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21132451Sroberto * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22200576Sroberto * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23132451Sroberto * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24132451Sroberto * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25132451Sroberto */
26132451Sroberto
27132451Sroberto#include <sys/cdefs.h>
28132451Sroberto__FBSDID("$FreeBSD: stable/10/sys/boot/efi/loader/conf.c 294999 2016-01-28 17:24:40Z smh $");
29132451Sroberto
30132451Sroberto#include <stand.h>
31132451Sroberto#include <bootstrap.h>
32132451Sroberto#include <efi.h>
33132451Sroberto#include <efilib.h>
34132451Sroberto#ifdef EFI_ZFS_BOOT
35132451Sroberto#include <libzfs.h>
36132451Sroberto#endif
37182007Sroberto
38182007Srobertostruct devsw *devsw[] = {
39182007Sroberto	&efipart_dev,
40182007Sroberto	&efinet_dev,
41182007Sroberto#ifdef EFI_ZFS_BOOT
42182007Sroberto	&zfs_dev,
43182007Sroberto#endif
44182007Sroberto	NULL
45182007Sroberto};
46182007Sroberto
47182007Srobertostruct fs_ops *file_system[] = {
48182007Sroberto#ifdef EFI_ZFS_BOOT
49182007Sroberto	&zfs_fsops,
50182007Sroberto#endif
51200576Sroberto	&dosfs_fsops,
52182007Sroberto	&ufs_fsops,
53182007Sroberto	&cd9660_fsops,
54182007Sroberto	&nfs_fsops,
55182007Sroberto	&gzipfs_fsops,
56182007Sroberto	&bzipfs_fsops,
57182007Sroberto	NULL
58132451Sroberto};
59132451Sroberto
60182007Srobertostruct netif_driver *netif_drivers[] = {
61132451Sroberto	&efinetif,
62132451Sroberto	NULL
63132451Sroberto};
64132451Sroberto
65132451Srobertoextern struct console efi_console;
66182007Srobertoextern struct console comconsole;
67132451Srobertoextern struct console nullconsole;
68132451Sroberto
69132451Srobertostruct console *consoles[] = {
70132451Sroberto	&efi_console,
71132451Sroberto	&comconsole,
72132451Sroberto	&nullconsole,
73132451Sroberto	NULL
74132451Sroberto};
75132451Sroberto