conf.c revision 158467
18871Srgrimes/*-
21558Srgrimes * Copyright (c) 1997
31558Srgrimes *	Matthias Drochner.  All rights reserved.
41558Srgrimes *
51558Srgrimes * Redistribution and use in source and binary forms, with or without
61558Srgrimes * modification, are permitted provided that the following conditions
71558Srgrimes * are met:
81558Srgrimes * 1. Redistributions of source code must retain the above copyright
91558Srgrimes *    notice, this list of conditions and the following disclaimer.
101558Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
111558Srgrimes *    notice, this list of conditions and the following disclaimer in the
121558Srgrimes *    documentation and/or other materials provided with the distribution.
131558Srgrimes * 3. All advertising materials mentioning features or use of this software
141558Srgrimes *    must display the following acknowledgement:
151558Srgrimes *	This product includes software developed for the NetBSD Project
161558Srgrimes *	by Matthias Drochner.
171558Srgrimes * 4. The name of the author may not be used to endorse or promote products
181558Srgrimes *    derived from this software without specific prior written permission.
191558Srgrimes *
201558Srgrimes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
211558Srgrimes * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
221558Srgrimes * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
231558Srgrimes * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
241558Srgrimes * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
251558Srgrimes * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
261558Srgrimes * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
271558Srgrimes * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
281558Srgrimes * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
291558Srgrimes * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
301558Srgrimes *
311558Srgrimes *	$NetBSD: conf.c,v 1.2 1997/03/22 09:03:29 thorpej Exp $
321558Srgrimes */
331558Srgrimes
341558Srgrimes#include <sys/cdefs.h>
3541477Sjulian__FBSDID("$FreeBSD: head/sys/boot/ia64/ski/conf.c 158467 2006-05-12 04:09:53Z jhb $");
3623675Speter
3741477Sjulian#include <stand.h>
3841477Sjulian
3950476Speter#include "libski.h"
401558Srgrimes
411558Srgrimes/*
421558Srgrimes * We could use linker sets for some or all of these, but
4362668Smckusick * then we would have to control what ended up linked into
4474556Smckusick * the bootstrap.  So it's easier to conditionalise things
4523675Speter * here.
461558Srgrimes *
471558Srgrimes * XXX rename these arrays to be consistent and less namespace-hostile
481558Srgrimes */
4923675Speter
5023675Speter/* Exported for libstand */
511558Srgrimesstruct devsw *devsw[] = {
5223675Speter	&skifs_dev,
531558Srgrimes	NULL
541558Srgrimes};
5598542Smckusick
5698542Smckusickstruct fs_ops *file_system[] = {
5741474Sjulian	&ski_fsops,
581558Srgrimes	&ufs_fsops,
5992839Simp	&gzipfs_fsops,
607585Sbde	NULL
617585Sbde};
6292839Simp
631558Srgrimes/* Exported for ia64 only */
6441474Sjulian/*
651558Srgrimes * Sort formats so that those that can detect based on arguments
6698542Smckusick * rather than reading the file go first.
6798542Smckusick */
6898542Smckusickextern struct file_format ia64_elf;
6998542Smckusick
701558Srgrimesstruct file_format *file_formats[] = {
711558Srgrimes	&ia64_elf,
7296707Strhodes	NULL
731558Srgrimes};
741558Srgrimes
751558Srgrimes/*
761558Srgrimes * Consoles
771558Srgrimes *
781558Srgrimes * We don't prototype these in libski.h because they require
791558Srgrimes * data structures from bootstrap.h as well.
801558Srgrimes */
811558Srgrimesextern struct console ski_console;
821558Srgrimes
8369800Stomsoftstruct console *consoles[] = {
8469800Stomsoft	&ski_console,
8569800Stomsoft	NULL
8669800Stomsoft};
8769800Stomsoft