conf.c revision 78332
1185377Ssam/*
2185377Ssam * Copyright (c) 1997
3185377Ssam *	Matthias Drochner.  All rights reserved.
4185377Ssam *
5185377Ssam * Redistribution and use in source and binary forms, with or without
6185377Ssam * modification, are permitted provided that the following conditions
7185377Ssam * are met:
8185377Ssam * 1. Redistributions of source code must retain the above copyright
9185377Ssam *    notice, this list of conditions and the following disclaimer.
10185377Ssam * 2. Redistributions in binary form must reproduce the above copyright
11185377Ssam *    notice, this list of conditions and the following disclaimer in the
12185377Ssam *    documentation and/or other materials provided with the distribution.
13185377Ssam * 3. All advertising materials mentioning features or use of this software
14185377Ssam *    must display the following acknowledgement:
15185377Ssam *	This product includes software developed for the NetBSD Project
16185377Ssam *	by Matthias Drochner.
17188974Ssam * 4. The name of the author may not be used to endorse or promote products
18185377Ssam *    derived from this software without specific prior written permission.
19185377Ssam *
20185377Ssam * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21185377Ssam * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22185377Ssam * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23185377Ssam * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24185377Ssam * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25185377Ssam * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26185377Ssam * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27185377Ssam * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28185377Ssam * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29185377Ssam * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30185377Ssam *
31185377Ssam *	$NetBSD: conf.c,v 1.2 1997/03/22 09:03:29 thorpej Exp $
32185377Ssam */
33185377Ssam
34185377Ssam#ifndef lint
35185377Ssamstatic const char rcsid[] =
36185377Ssam  "$FreeBSD: head/sys/boot/ia64/efi/conf.c 78332 2001-06-16 06:17:35Z obrien $";
37185377Ssam#endif /* not lint */
38188974Ssam
39185377Ssam#include <stand.h>
40185377Ssam#include <efi.h>
41185377Ssam#include <efilib.h>
42185377Ssam
43185377Ssam#include "efiboot.h"
44185377Ssam
45185377Ssam/*
46185377Ssam * We could use linker sets for some or all of these, but
47185377Ssam * then we would have to control what ended up linked into
48185377Ssam * the bootstrap.  So it's easier to conditionalise things
49185377Ssam * here.
50185377Ssam *
51185377Ssam * XXX rename these arrays to be consistent and less namespace-hostile
52185377Ssam */
53185377Ssam
54185377Ssam/* Exported for libstand */
55185377Ssamstruct devsw *devsw[] = {
56185377Ssam/*	&efi_disk, */
57185377Ssam	NULL
58185377Ssam};
59185377Ssam
60185377Ssamstruct fs_ops *file_system[] = {
61185377Ssam	&ufs_fsops,
62185377Ssam	&zipfs_fsops,
63185377Ssam	NULL
64185377Ssam};
65185377Ssam
66185377Ssam/* Exported for ia64 only */
67185377Ssam/*
68185377Ssam * Sort formats so that those that can detect based on arguments
69185377Ssam * rather than reading the file go first.
70185377Ssam */
71185377Ssamextern struct file_format ia64_elf;
72185377Ssam
73185377Ssamstruct file_format *file_formats[] = {
74185377Ssam/*	&ia64_elf, */
75185377Ssam	NULL
76185377Ssam};
77185377Ssam
78185377Ssam/*
79185377Ssam * Consoles
80185377Ssam *
81185377Ssam * We don't prototype these in libalpha.h because they require
82185377Ssam * data structures from bootstrap.h as well.
83185377Ssam */
84185377Ssamextern struct console efi_console;
85185377Ssam
86185377Ssamstruct console *consoles[] = {
87185377Ssam	&efi_console,
88185377Ssam	NULL
89185377Ssam};
90185377Ssam