コード例 #1
0
ファイル: conf.c プロジェクト: lacombar/netbsd-alc
/*	$NetBSD: conf.c,v 1.4 2005/12/11 12:19:29 christos Exp $	*/

#include <stand.h>
#include <ufs.h>
#include <dev_disk.h>

struct fs_ops file_system[] = {
	FS_OPS(ufs),
};
int nfsys = 1;

struct devsw devsw[] = {
	{ "disk", disk_strategy, disk_open, disk_close, disk_ioctl },
};
int ndevs = 1;

int
main(void)
{
	xxboot_main("ufsboot");
}
コード例 #2
0
 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
 * THE POSSIBILITY OF SUCH DAMAGE.
 */

#include <sys/types.h>
#include <arch/hppa/stand/common/libsa.h>
#include <lib/libsa/ufs.h>
#include <lib/libsa/cd9660.h>
#include <dev/cons.h>

const char version[] = "0.6";
int	debug = 0;

struct fs_ops file_system[] = {
	FS_OPS(cd9660),
};
int nfsys = NENTS(file_system);

struct devsw devsw[] = {
	{ "dk",	iodcstrategy, dkopen, dkclose, noioctl },
};
int	ndevs = NENTS(devsw);

struct consdev	constab[] = {
	{ ite_probe, ite_init, ite_getc, ite_putc },
	{ NULL }
};
struct consdev *cn_tab;

コード例 #3
0
ファイル: conf.c プロジェクト: lacombar/netbsd-alc
#include "libx68k.h"

struct devsw devsw[] = {
	{ "sd",	sdstrategy, sdopen, sdclose, noioctl },
	{ "cd",	cdstrategy, cdopen, cdclose, noioctl },
	{ "fd",	fdstrategy, fdopen, fdclose, noioctl },
	{ 0, 0, 0, 0, 0 }
};

int ndevs = sizeof(devsw) / sizeof(devsw[0]);

const struct devspec devspec[] = {
	{ "sd", 0, 7 },
	{ "cd", 1, 7 },
	{ "fd", 2, 3 },
	{ 0, 0, 0 }
};

struct fs_ops file_system[] = {
	FS_OPS(ufs),
	FS_OPS(lfsv1),
	FS_OPS(lfsv2),
	FS_OPS(cd9660),
	FS_OPS(ustarfs),
};

int nfsys = sizeof(file_system) / sizeof(file_system[0]);

struct open_file files[SOPEN_MAX];
コード例 #4
0
ファイル: conf.c プロジェクト: AgamAgarwal/minix
#endif
#ifdef SUPPORT_CD9660
#include <lib/libsa/cd9660.h>
#endif

#include <biosdisk.h>

struct devsw devsw[] = {
	{"disk", biosdisk_strategy, biosdisk_open, biosdisk_close,
	 biosdisk_ioctl},
};
int ndevs = sizeof(devsw) / sizeof(struct devsw);

struct fs_ops file_system[] = {
#ifdef SUPPORT_CD9660
	FS_OPS(cd9660),
#endif
#ifdef SUPPORT_USTARFS
	FS_OPS(ustarfs),
#endif
	FS_OPS(ffsv1), FS_OPS(ffsv2),
	FS_OPS(lfsv1), FS_OPS(lfsv2),
#ifdef SUPPORT_EXT2FS
	FS_OPS(ext2fs),
#endif
#ifdef SUPPORT_MINIXFS3
	FS_OPS(minixfs3),
#endif
#ifdef SUPPORT_DOSFS
	FS_OPS(dosfs),
#endif
コード例 #5
0
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

#include <lib/libsa/stand.h>
#include <lib/libsa/ustarfs.h>
#include <ufs.h>

struct fs_ops file_system[] = {
	FS_OPS(ffsv1),
	FS_OPS(ffsv2),
	FS_OPS(ustarfs),
	FS_OPS(null),
};

int nfsys = sizeof (file_system)/sizeof (struct fs_ops);
コード例 #6
0
 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
 * THE POSSIBILITY OF SUCH DAMAGE.
 */

#include <sys/types.h>
#include <arch/hppa/stand/common/libsa.h>
#include <lib/libsa/ufs.h>
#include <lib/libsa/cd9660.h>
#include <dev/cons.h>

const char version[] = "0.6";
int	debug = 0;

struct fs_ops file_system[] = {
	FS_OPS(lif),
	FS_OPS(ffsv1),
	FS_OPS(ffsv2),
	FS_OPS(cd9660),
};
int nfsys = NENTS(file_system);

struct devsw devsw[] = {
	{ "dk",	iodcstrategy, dkopen, dkclose, noioctl },
	{ "ct",	iodcstrategy, ctopen, ctclose, noioctl },
	{ "lf", iodcstrategy, lfopen, lfclose, noioctl }
};
int	ndevs = NENTS(devsw);

struct consdev	constab[] = {
	{ ite_probe, ite_init, ite_getc, ite_putc },
コード例 #7
0
ファイル: conf.c プロジェクト: yazshel/netbsd-kernel
#include <efi.h>
#include <efilib.h>

#include <efiboot.h>

#include "efifsdev.h"
#include "dev_net.h"

struct devsw devsw[] = {
    {"disk", efifs_dev_strategy, efifs_dev_open, efifs_dev_close, noioctl},
};

int ndevs = sizeof(devsw) / sizeof(struct devsw);

struct fs_ops file_system[] = {
    FS_OPS(efifs),
};

int nfsys = sizeof(file_system) / sizeof(struct fs_ops);

/* Exported for ia64 only */
/*
 * Sort formats so that those that can detect based on arguments
 * rather than reading the file go first.
 */
extern struct file_format ia64_elf;

struct file_format *file_formats[] = {
    &ia64_elf,
    NULL
};
コード例 #8
0
/*	$NetBSD: conf.c,v 1.4 2009/01/12 07:01:00 tsutsui Exp $	*/

#include <sys/types.h>
#include <netinet/in.h>

#include "stand.h"
#include "nfs.h"
#include "dev_net.h"
#include "libsa.h"

struct fs_ops file_system[] = {
	FS_OPS(nfs),
};
int nfsys = 1;

struct devsw devsw[] = {
	{ "net",  net_strategy,  net_open,  net_close,  net_ioctl },
};
int ndevs = 1;

int
main(void)
{

	xxboot_main("netboot");

	return 0;
}
コード例 #9
0
ファイル: conf.c プロジェクト: lacombar/netbsd-alc
	-1,
	BDEV_RD,
	BDEV_SD,
	BDEV_SDN,
	BDEV_ST,
	BDEV_LE,
	BDEV_ZE,
	BDEV_RL,
	BDEV_DE,
	BDEV_NI,
};

int     ndevs = (sizeof(devsw)/sizeof(devsw[0]));

struct fs_ops file_system[] = {
	FS_OPS(ufs),
	FS_OPS(nfs),
	FS_OPS(cd9660),
	FS_OPS(ustarfs),
};

int nfsys = (sizeof(file_system) / sizeof(struct fs_ops));

int
nostrategy(void *f, int func, daddr_t dblk,
    size_t size, void *buf, size_t *rsize)
{
	*rsize = size;
	bzero(buf, size);
	return 0;
}
コード例 #10
0
ファイル: ofdev.c プロジェクト: ycui1984/netbsd-src
{
	struct of_dev *op = of->f_devdata;

	if (op->type == OFDEV_NET)
		net_close(op);
	OF_close(op->handle);
	op->handle = -1;
	return 0;
}

struct devsw devsw[1] = {
	{ "OpenFirmware", strategy, devopen_dummy, devclose, noioctl }
};
int ndevs = sizeof devsw / sizeof devsw[0];

static struct fs_ops file_system_ufs = FS_OPS(ufs);
static struct fs_ops file_system_cd9660 = FS_OPS(cd9660);
static struct fs_ops file_system_dosfs = FS_OPS(dosfs);
static struct fs_ops file_system_nfs = FS_OPS(nfs);

struct fs_ops file_system[3];
int nfsys;

static struct of_dev ofdev = {
	-1,
};

char opened_name[256];
int floppyboot;

int
コード例 #11
0
#include <netinet/in.h>
#include <netinet/in_systm.h>

#include <lib/libsa/stand.h>
#ifdef SUPPORT_NFS
#include <nfs.h>
#endif
#ifdef SUPPORT_TFTP
#include <tftp.h>
#endif
#include <dev_net.h>

#include "pxeboot.h"

#ifdef SUPPORT_NFS
struct fs_ops file_system_nfs = FS_OPS(nfs);
#endif

#ifdef SUPPORT_TFTP
struct fs_ops file_system_tftp = FS_OPS(tftp);
#endif

struct pxeboot_fstab pxeboot_fstab[] = {
#ifdef SUPPORT_NFS
	{ "nfs", &file_system_nfs },
#endif
#ifdef SUPPORT_TFTP
	{ "tftp", &file_system_tftp },
#endif
};
int npxeboot_fstab = sizeof(pxeboot_fstab) / sizeof(pxeboot_fstab[0]);
コード例 #12
0
ファイル: ofdev.c プロジェクト: lacombar/netbsd-alc
	struct of_dev *op = of->f_devdata;

	if (op->type == OFDEV_NET)
		net_close(op);
	OF_call_method("dma-free", op->handle, 2, 0, op->dmabuf, MAXPHYS);
	OF_close(op->handle);
	op->handle = -1;
	return 0;
}

static struct devsw of_devsw[1] = {
	{ "OpenFirmware", strategy, devopen_dummy, devclose, noioctl }
};
int ndevs = sizeof of_devsw / sizeof of_devsw[0];

static struct fs_ops file_system_ffsv1 = FS_OPS(ffsv1);
static struct fs_ops file_system_ffsv2 = FS_OPS(ffsv2);
static struct fs_ops file_system_lfsv1 = FS_OPS(lfsv1);
static struct fs_ops file_system_lfsv2 = FS_OPS(lfsv2);
static struct fs_ops file_system_hfs = FS_OPS(hfs);
static struct fs_ops file_system_ustarfs = FS_OPS(ustarfs);
static struct fs_ops file_system_cd9660 = FS_OPS(cd9660);
static struct fs_ops file_system_nfs = FS_OPS(nfs);

struct fs_ops file_system[8];
int nfsys;

static struct of_dev ofdev = {
	-1,
};
コード例 #13
0
ファイル: conf.c プロジェクト: lacombar/netbsd-alc
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include <sys/types.h>
#include <arch/hp700/stand/common/libsa.h>
#include <lib/libsa/ufs.h>
#include <lib/libsa/cd9660.h>
#include <dev/cons.h>

const char version[] = "0.6";
int	debug = 0;

struct fs_ops file_system[] = {
    FS_OPS(lif),
    FS_OPS(ufs),
    FS_OPS(cd9660),
};
int nfsys = NENTS(file_system);

struct devsw devsw[] = {
    { "dk",	iodcstrategy, dkopen, dkclose, noioctl },
    { "ct",	iodcstrategy, ctopen, ctclose, noioctl },
    { "lf", iodcstrategy, lfopen, lfclose, noioctl }
};
int	ndevs = NENTS(devsw);

struct consdev	constab[] = {
    { ite_probe, ite_init, ite_getc, ite_putc },
    { NULL }
コード例 #14
0
ファイル: conf.c プロジェクト: MarginC/kame
#include <sys/types.h>

#include <lib/libsa/stand.h>
#include <lib/libsa/ufs.h>
#include <lib/libsa/lfs.h>
#ifdef SUPPORT_USTARFS
#include <lib/libsa/ustarfs.h>
#endif
#ifdef SUPPORT_DOSFS
#include <lib/libsa/dosfs.h>
#endif

#include <biosdisk.h>

struct devsw devsw[] = {
	{"disk", biosdiskstrategy, biosdiskopen, biosdiskclose, biosdiskioctl},
};
int ndevs = sizeof(devsw) / sizeof(struct devsw);

struct fs_ops file_system[] = {
#ifdef SUPPORT_USTARFS
	FS_OPS(ustarfs),
#endif
	FS_OPS(ffsv1), FS_OPS(ffsv2),
	FS_OPS(lfsv1), FS_OPS(lfsv2),
#ifdef SUPPORT_DOSFS
	FS_OPS(dosfs),
#endif
};
int nfsys = sizeof(file_system) / sizeof(struct fs_ops);