/*-1* Copyright (c) 2008 Semihalf, Rafal Jaworowski2* All rights reserved.3*4* Redistribution and use in source and binary forms, with or without5* modification, are permitted provided that the following conditions6* are met:7* 1. Redistributions of source code must retain the above copyright8* notice, this list of conditions and the following disclaimer.9* 2. Redistributions in binary form must reproduce the above copyright10* notice, this list of conditions and the following disclaimer in the11* documentation and/or other materials provided with the distribution.12*13* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND14* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE15* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE16* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE17* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL18* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS19* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)20* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT21* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY22* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF23* SUCH DAMAGE.24*25*/2627#include <stand.h>28#include "bootstrap.h"29#include "libuboot.h"3031#if defined(LOADER_NET_SUPPORT)32#include "dev_net.h"33#endif3435/* Make sure we have an explicit reference to exit so libsa's panic pulls in the MD exit */36void (*exitfn)(int) = exit;3738struct devsw *devsw[] = {39#if defined(LOADER_DISK_SUPPORT) || defined(LOADER_CD9660_SUPPORT)40&uboot_storage,41#endif42#if defined(LOADER_NET_SUPPORT)43&netdev,44#endif45NULL46};4748struct fs_ops *file_system[] = {49#if defined(LOADER_UFS_SUPPORT)50&ufs_fsops,51#endif52#if defined(LOADER_CD9660_SUPPORT)53&cd9660_fsops,54#endif55#if defined(LOADER_EXT2FS_SUPPORT)56&ext2fs_fsops,57#endif58#if defined(LOADER_NFS_SUPPORT)59&nfs_fsops,60#endif61#if defined(LOADER_TFTP_SUPPORT)62&tftp_fsops,63#endif64#if defined(LOADER_GZIP_SUPPORT)65&gzipfs_fsops,66#endif67#if defined(LOADER_BZIP2_SUPPORT)68&bzipfs_fsops,69#endif70NULL71};7273struct netif_driver *netif_drivers[] = {74#if defined(LOADER_NET_SUPPORT)75&uboot_net,76#endif77NULL,78};7980struct file_format *file_formats[] = {81&uboot_elf,82NULL83};8485extern struct console uboot_console;8687struct console *consoles[] = {88&uboot_console,89NULL90};919293