rump: import dev libraries (most of them)

This commit is contained in:
Jean-Baptiste Boric 2016-11-25 20:07:31 +01:00
parent 4bca51d7fc
commit dc0601aab4
287 changed files with 9952 additions and 2 deletions

View File

@ -875,6 +875,66 @@
./usr/lib/librumpdev.so.0.0 minix-base rump
./usr/lib/librumpdev.so.0 minix-base rump
./usr/lib/librumpdev.so minix-base rump
./usr/lib/librumpdev_audio.so.0.0 minix-base rump
./usr/lib/librumpdev_audio.so.0 minix-base rump
./usr/lib/librumpdev_audio.so minix-base rump
./usr/lib/librumpdev_bpf.so.0.0 minix-base rump
./usr/lib/librumpdev_bpf.so.0 minix-base rump
./usr/lib/librumpdev_bpf.so minix-base rump
./usr/lib/librumpdev_cgd.so.0.0 minix-base rump
./usr/lib/librumpdev_cgd.so.0 minix-base rump
./usr/lib/librumpdev_cgd.so minix-base rump
./usr/lib/librumpdev_disk.so.0.0 minix-base rump
./usr/lib/librumpdev_disk.so.0 minix-base rump
./usr/lib/librumpdev_disk.so minix-base rump
./usr/lib/librumpdev_dm.so.0.0 minix-base rump
./usr/lib/librumpdev_dm.so.0 minix-base rump
./usr/lib/librumpdev_dm.so minix-base rump
./usr/lib/librumpdev_drvctl.so.0.0 minix-base rump
./usr/lib/librumpdev_drvctl.so.0 minix-base rump
./usr/lib/librumpdev_drvctl.so minix-base rump
./usr/lib/librumpdev_fss.so.0.0 minix-base rump
./usr/lib/librumpdev_fss.so.0 minix-base rump
./usr/lib/librumpdev_fss.so minix-base rump
./usr/lib/librumpdev_md.so.0.0 minix-base rump
./usr/lib/librumpdev_md.so.0 minix-base rump
./usr/lib/librumpdev_md.so minix-base rump
./usr/lib/librumpdev_netsmb.so.0.0 minix-base rump
./usr/lib/librumpdev_netsmb.so.0 minix-base rump
./usr/lib/librumpdev_netsmb.so minix-base rump
./usr/lib/librumpdev_opencrypto.so.0.0 minix-base rump
./usr/lib/librumpdev_opencrypto.so.0 minix-base rump
./usr/lib/librumpdev_opencrypto.so minix-base rump
./usr/lib/librumpdev_pad.so.0.0 minix-base rump
./usr/lib/librumpdev_pad.so.0 minix-base rump
./usr/lib/librumpdev_pad.so minix-base rump
./usr/lib/librumpdev_pud.so.0.0 minix-base rump
./usr/lib/librumpdev_pud.so.0 minix-base rump
./usr/lib/librumpdev_pud.so minix-base rump
./usr/lib/librumpdev_putter.so.0.0 minix-base rump
./usr/lib/librumpdev_putter.so.0 minix-base rump
./usr/lib/librumpdev_putter.so minix-base rump
./usr/lib/librumpdev_raidframe.so.0.0 minix-base rump
./usr/lib/librumpdev_raidframe.so.0 minix-base rump
./usr/lib/librumpdev_raidframe.so minix-base rump
./usr/lib/librumpdev_rnd.so.0.0 minix-base rump
./usr/lib/librumpdev_rnd.so.0 minix-base rump
./usr/lib/librumpdev_rnd.so minix-base rump
./usr/lib/librumpdev_sysmon.so.0.0 minix-base rump
./usr/lib/librumpdev_sysmon.so.0 minix-base rump
./usr/lib/librumpdev_sysmon.so minix-base rump
./usr/lib/librumpdev_ugenhc.so.0.0 minix-base rump
./usr/lib/librumpdev_ugenhc.so.0 minix-base rump
./usr/lib/librumpdev_ugenhc.so minix-base rump
./usr/lib/librumpdev_ulpt.so.0.0 minix-base rump
./usr/lib/librumpdev_ulpt.so.0 minix-base rump
./usr/lib/librumpdev_ulpt.so minix-base rump
./usr/lib/librumpdev_umass.so.0.0 minix-base rump
./usr/lib/librumpdev_umass.so.0 minix-base rump
./usr/lib/librumpdev_umass.so minix-base rump
./usr/lib/librumpdev_vnd.so.0.0 minix-base rump
./usr/lib/librumpdev_vnd.so.0 minix-base rump
./usr/lib/librumpdev_vnd.so minix-base rump
./usr/lib/librumpfs_cd9660.so.0.0 minix-base rump
./usr/lib/librumpfs_cd9660.so.0 minix-base rump
./usr/lib/librumpfs_cd9660.so minix-base rump

View File

@ -2305,7 +2305,47 @@
./usr/lib/librump.a minix-comp rump
./usr/lib/librump_pic.a minix-comp rump
./usr/lib/librumpdev.a minix-comp rump
./usr/lib/librumpdev_audio.a minix-comp rump
./usr/lib/librumpdev_audio_pic.a minix-comp rump
./usr/lib/librumpdev_bpf.a minix-comp rump
./usr/lib/librumpdev_bpf_pic.a minix-comp rump
./usr/lib/librumpdev_cgd.a minix-comp rump
./usr/lib/librumpdev_cgd_pic.a minix-comp rump
./usr/lib/librumpdev_disk.a minix-comp rump
./usr/lib/librumpdev_disk_pic.a minix-comp rump
./usr/lib/librumpdev_dm.a minix-comp rump
./usr/lib/librumpdev_dm_pic.a minix-comp rump
./usr/lib/librumpdev_drvctl.a minix-comp rump
./usr/lib/librumpdev_drvctl_pic.a minix-comp rump
./usr/lib/librumpdev_fss.a minix-comp rump
./usr/lib/librumpdev_fss_pic.a minix-comp rump
./usr/lib/librumpdev_md.a minix-comp rump
./usr/lib/librumpdev_md_pic.a minix-comp rump
./usr/lib/librumpdev_netsmb.a minix-comp rump
./usr/lib/librumpdev_netsmb_pic.a minix-comp rump
./usr/lib/librumpdev_opencrypto.a minix-comp rump
./usr/lib/librumpdev_opencrypto_pic.a minix-comp rump
./usr/lib/librumpdev_pad.a minix-comp rump
./usr/lib/librumpdev_pad_pic.a minix-comp rump
./usr/lib/librumpdev_pic.a minix-comp rump
./usr/lib/librumpdev_pud.a minix-comp rump
./usr/lib/librumpdev_pud_pic.a minix-comp rump
./usr/lib/librumpdev_putter.a minix-comp rump
./usr/lib/librumpdev_putter_pic.a minix-comp rump
./usr/lib/librumpdev_raidframe.a minix-comp rump
./usr/lib/librumpdev_raidframe_pic.a minix-comp rump
./usr/lib/librumpdev_rnd.a minix-comp rump
./usr/lib/librumpdev_rnd_pic.a minix-comp rump
./usr/lib/librumpdev_sysmon.a minix-comp rump
./usr/lib/librumpdev_sysmon_pic.a minix-comp rump
./usr/lib/librumpdev_ugenhc.a minix-comp rump
./usr/lib/librumpdev_ugenhc_pic.a minix-comp rump
./usr/lib/librumpdev_ulpt.a minix-comp rump
./usr/lib/librumpdev_ulpt_pic.a minix-comp rump
./usr/lib/librumpdev_umass.a minix-comp rump
./usr/lib/librumpdev_umass_pic.a minix-comp rump
./usr/lib/librumpdev_vnd.a minix-comp rump
./usr/lib/librumpdev_vnd_pic.a minix-comp rump
./usr/lib/librumpfs_cd9660.a minix-comp rump
./usr/lib/librumpfs_cd9660_pic.a minix-comp rump
./usr/lib/librumpfs_efs.a minix-comp rump

View File

@ -323,7 +323,7 @@ SUBDIR+= ../crypto/external/cpl/tpm-tools/lib # depends on trousers
.endif
.if !defined(BSD_MK_COMPAT_FILE)
#SUBDIR+= ../sys/rump/dev/lib
SUBDIR+= ../sys/rump/dev/lib
SUBDIR+= ../sys/rump/fs/lib
SUBDIR+= ../sys/rump/kern/lib
SUBDIR+= ../sys/rump/net/lib

1567
sys/conf/files Normal file

File diff suppressed because it is too large Load Diff

View File

@ -130,6 +130,10 @@ CFATTACH_DECL3_NEW(cgd, sizeof(struct cgd_softc),
cgd_match, cgd_attach, cgd_detach, NULL, NULL, NULL, DVF_DETACH_SHUTDOWN);
extern struct cfdriver cgd_cd;
#if defined(__minix)
void cgdattach(int);
#endif
/* DIAGNOSTIC and DEBUG definitions */
#if defined(CGDDEBUG) && !defined(DEBUG)

View File

@ -111,6 +111,10 @@ CFATTACH_DECL3_NEW(dm, 0,
dm_match, dm_attach, dm_detach, NULL, NULL, NULL,
DVF_DETACH_SHUTDOWN);
#if defined(__minix)
void dmattach(int);
#endif
extern struct cfdriver dm_cd;
extern uint32_t dm_dev_counter;

View File

@ -132,6 +132,10 @@ CFATTACH_DECL_NEW(fss, sizeof(struct fss_softc),
fss_match, fss_attach, fss_detach, NULL);
extern struct cfdriver fss_cd;
#if defined(__minix)
void fssattach(int);
#endif
void
fssattach(int num)
{

View File

@ -139,6 +139,10 @@ extern struct cfdriver md_cd;
CFATTACH_DECL3_NEW(md, sizeof(struct md_softc),
0, md_attach, md_detach, NULL, NULL, NULL, DVF_DETACH_SHUTDOWN);
#if defined(__minix)
void mdattach(int);
#endif
static kmutex_t md_device_lock; /* Protect unit creation / deletion. */
extern size_t md_root_size;

View File

@ -322,6 +322,10 @@ int rf_have_enough_components(RF_ConfigSet_t *);
struct raid_softc *rf_auto_config_set(RF_ConfigSet_t *);
static void rf_fix_old_label_size(RF_ComponentLabel_t *, uint64_t);
#if defined(__minix)
void raidattach(int);
#endif
/*
* Debugging, mostly. Set to 0 to not allow autoconfig to take place.
* Note that this is overridden by having RAID_AUTOCONFIG as an option

View File

@ -151,6 +151,10 @@ static struct evcnt rndpseudo_hard = EVCNT_INITIALIZER(EVCNT_TYPE_MISC,
EVCNT_ATTACH_STATIC(rndpseudo_soft);
EVCNT_ATTACH_STATIC(rndpseudo_hard);
#if defined(__minix)
void rndattach(int);
#endif
/*
* Generate a 32-bit counter.
*/

View File

@ -230,6 +230,10 @@ CFATTACH_DECL3_NEW(vnd, sizeof(struct vnd_softc),
vnd_match, vnd_attach, vnd_detach, NULL, NULL, NULL, DVF_DETACH_SHUTDOWN);
extern struct cfdriver vnd_cd;
#if defined(__minix)
void vndattach(int);
#endif
static struct vnd_softc *vnd_spawn(int);
int vnd_destroy(device_t);

View File

@ -108,6 +108,10 @@ static const struct fileops drvctl_fileops = {
static int drvctl_command(struct lwp *, struct plistref *, u_long, int);
static int drvctl_getevent(struct lwp *, struct plistref *, u_long, int);
#if defined(__minix)
void drvctlattach(int);
#endif
void
drvctl_init(void)
{

View File

@ -104,6 +104,10 @@ const struct cdevsw nsmb_cdevsw = {
static bool nsmb_inited = false;
#if defined(__minix)
void nsmbattach(int);
#endif
void
nsmbattach(int num)
{

View File

@ -197,6 +197,10 @@ static int cryptodev_getstatus(struct fcrypt *, struct crypt_result *);
extern int ocryptof_ioctl(struct file *, u_long, void *);
#endif
#if defined(__minix)
void cryptoattach(int);
#endif
/*
* sysctl-able control variables for /dev/crypto now defined in crypto.c:
* crypto_usercrypto, crypto_userasmcrypto, crypto_devallowsoft.

View File

@ -77,6 +77,10 @@ static int swcr_process(void *, struct cryptop *, int);
static int swcr_newsession(void *, u_int32_t *, struct cryptoini *);
static int swcr_freesession(void *, u_int64_t);
#if defined(__minix)
void swcryptoattach(int);
#endif
/*
* Apply a symmetric encryption/decryption algorithm.
*/

View File

@ -3,7 +3,7 @@
SUBDIR= include
SUBDIR+= librump
SUBDIR+= fs kern net
SUBDIR+= dev fs kern net
#SUBDIR+= share
.include <bsd.subdir.mk>

6
sys/rump/dev/Makefile Normal file
View File

@ -0,0 +1,6 @@
# $NetBSD: Makefile,v 1.1 2009/06/09 16:16:14 pooka Exp $
#
SUBDIR= lib
.include <bsd.subdir.mk>

View File

@ -0,0 +1,29 @@
# $NetBSD: Makefile.rumpdevcomp,v 1.21 2015/06/03 14:06:19 pooka Exp $
#
RUMPDEVCOMP= audio bpf cgd disk dm drvctl fss md netsmb \
pad pud putter raidframe rnd sysmon vnd \
opencrypto
RUMPUSBDEVS= ugenhc ulpt umass
RUMPPCIDEVS= pci pci_if_iwn pci_if_pcn pci_if_wm
RUMPPCIDEVS+= pci_usbhc
RUMPPCIDEVS+= pci_virtio virtio_if_vioif virtio_ld virtio_viornd
RUMPPCIDEVS+= audio_ac97 pci_auich pci_eap pci_hdaudio hdaudio_hdafg
# Not really a PCI device, but ....
RUMPPCIDEVS+= miiphy
.for var in ${RUMPDEVCOMP}
RUMPDEVLIBS+=lib${var}
RUMPDEVLDADD+=-lrumpdev_${var}
.endfor
.for var in ${RUMPUSBDEVS}
RUMPDEVLIBS+=lib${var}
.endfor
# Currently no NetBSD host support.
#.for var in ${RUMPPCIDEVS}
#RUMPDEVLIBS+=lib${var}
#.endfor

11
sys/rump/dev/files.rump Normal file
View File

@ -0,0 +1,11 @@
# $NetBSD: files.rump,v 1.4 2013/09/17 00:50:19 pooka Exp $
#
device mainbus { }: pcibus
attach mainbus at root
device ugenhc: usbus, usbroothub
attach ugenhc at mainbus
device scsitest: scsi
attach scsitest at mainbus

View File

@ -0,0 +1,8 @@
# $NetBSD: Makefile,v 1.2 2010/12/05 16:53:46 pooka Exp $
#
.include "${.CURDIR}/../Makefile.rumpdevcomp"
SUBDIR+= ${RUMPDEVLIBS}
.include <bsd.subdir.mk>

View File

@ -0,0 +1,7 @@
# $NetBSD: Makefile.inc,v 1.4 2015/08/24 23:01:58 pooka Exp $
#
RUMPTOP= ${.CURDIR}/../../..
CPPFLAGS+= -I${RUMPTOP}/librump/rumpkern -I${RUMPTOP}/librump/rumpdev
.include "${RUMPTOP}/Makefile.rump"

View File

@ -0,0 +1,10 @@
# $NetBSD: AUDIO.ioconf,v 1.1 2010/05/01 23:19:56 pooka Exp $
#
ioconf audio
include "conf/files"
pseudo-root audiobus*
audio* at audiobus?

View File

@ -0,0 +1,15 @@
# $NetBSD: Makefile,v 1.3 2014/11/18 04:29:06 nonaka Exp $
#
.PATH: ${.CURDIR}/../../../../dev
LIB= rumpdev_audio
IOCONF= AUDIO.ioconf
SRCS= audio.c auconv.c aurateconv.c auvolconv.c mulaw.c
SRCS+= audio_component.c
CPPFLAGS+= -I${.CURDIR}/../../../librump/rumpvfs
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -0,0 +1,3 @@
/* $NetBSD: audio.h,v 1.1 2010/05/01 23:19:56 pooka Exp $ */
#define NAUDIO 1

View File

@ -0,0 +1,77 @@
/* $NetBSD: audio_component.c,v 1.2 2015/06/08 12:18:04 pooka Exp $ */
/*
* Copyright (c) 2010 Antti Kantee. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* 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 AUTHOR ``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 AUTHOR 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 <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: audio_component.c,v 1.2 2015/06/08 12:18:04 pooka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/mbuf.h>
#include <sys/stat.h>
#include <dev/audio_if.h>
#include "ioconf.c"
#include "rump_private.h"
#include "rump_vfs_private.h"
RUMP_COMPONENT(RUMP_COMPONENT_DEV)
{
extern const struct cdevsw audio_cdevsw;
devmajor_t bmaj, cmaj;
int error;
config_init_component(cfdriver_ioconf_audio,
cfattach_ioconf_audio, cfdata_ioconf_audio);
bmaj = cmaj = NODEVMAJOR;
if ((error = devsw_attach("audio", NULL, &bmaj,
&audio_cdevsw, &cmaj)) != 0)
panic("audio devsw attach failed: %d", error);
if ((error = rump_vfs_makedevnodes(S_IFCHR, "/dev/audio", '0',
cmaj, AUDIO_DEVICE, 4)) !=0)
panic("cannot create audio device nodes: %d", error);
if ((error = rump_vfs_makesymlink("audio0", "/dev/audio")) != 0)
panic("cannot create audio symlink: %d", error);
if ((error = rump_vfs_makedevnodes(S_IFCHR, "/dev/sound", '0',
cmaj, SOUND_DEVICE, 4)) !=0)
panic("cannot create sound device nodes: %d", error);
if ((error = rump_vfs_makesymlink("sound0", "/dev/sound")) != 0)
panic("cannot create sound symlink: %d", error);
if ((error = rump_vfs_makedevnodes(S_IFCHR, "/dev/audioctl", '0',
cmaj, AUDIOCTL_DEVICE, 4)) !=0)
panic("cannot create audioctl device nodes: %d", error);
if ((error = rump_vfs_makesymlink("audioctl0", "/dev/audioctl")) != 0)
panic("cannot create audioctl symlink: %d", error);
if ((error = rump_vfs_makedevnodes(S_IFCHR, "/dev/mixer", '0',
cmaj, MIXER_DEVICE, 4)) !=0)
panic("cannot create mixer device nodes: %d", error);
if ((error = rump_vfs_makesymlink("mixer0", "/dev/mixer")) != 0)
panic("cannot create mixer symlink: %d", error);
}

View File

@ -0,0 +1,3 @@
/* $NetBSD: aurateconv.h,v 1.1 2010/05/01 23:19:56 pooka Exp $ */
#define NAURATECONV 1

View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/i386/include

View File

@ -0,0 +1,32 @@
#include "ioconf.h"
/*
* MACHINE GENERATED: DO NOT EDIT
*
* ioconf.c, from "/home/boricj/Documents/Projets/minix/src/sys/rump/dev/lib/libaudio/AUDIO.ioconf"
*/
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/mount.h>
static struct cfdriver * const cfdriver_ioconf_audio[] = {
NULL
};
#define NORM FSTATE_NOTFOUND
#define STAR FSTATE_STAR
static struct cfdata cfdata_ioconf_audio[] = {
/* driver attachment unit state loc flags pspec */
{ NULL, NULL, 0, 0, NULL, 0, NULL }
};
static const struct cfattachinit cfattach_ioconf_audio[] = {
{ NULL, NULL }
};

View File

@ -0,0 +1,4 @@
/* pseudo-devices */
/* driver structs */

View File

View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/i386/include

View File

@ -0,0 +1 @@
/* $NetBSD: midi.h,v 1.1 2010/05/01 23:19:56 pooka Exp $ */

View File

@ -0,0 +1,3 @@
/* $NetBSD: mulaw.h,v 1.1 2010/05/01 23:19:56 pooka Exp $ */
#define NMULAW 1

View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/x86/include

View File

@ -0,0 +1,11 @@
# $NetBSD: Makefile,v 1.1 2014/11/18 09:04:20 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../dev/ic
LIB= rumpdev_audio_ac97
SRCS= ac97.c
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -0,0 +1,14 @@
# $NetBSD: Makefile,v 1.2 2014/03/13 02:01:04 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../net
LIB= rumpdev_bpf
SRCS= bpf.c bpf_filter.c
SRCS+= bpf_component.c
CPPFLAGS+= -I${.CURDIR}/../../../librump/rumpvfs
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -0,0 +1,53 @@
/* $NetBSD: bpf_component.c,v 1.1 2014/03/13 02:01:04 pooka Exp $ */
/*
* Copyright (c) 2010 Antti Kantee. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* 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 AUTHOR ``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 AUTHOR 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 <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: bpf_component.c,v 1.1 2014/03/13 02:01:04 pooka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/mbuf.h>
#include <sys/stat.h>
#include <net/bpf.h>
#include "rump_private.h"
#include "rump_vfs_private.h"
RUMP_COMPONENT(RUMP_COMPONENT_NET)
{
extern const struct cdevsw bpf_cdevsw;
devmajor_t bmaj, cmaj;
int error;
bmaj = cmaj = NODEVMAJOR;
if ((error = devsw_attach("bpf", NULL, &bmaj, &bpf_cdevsw, &cmaj)) != 0)
panic("bpf devsw attach failed: %d", error);
if ((error = rump_vfs_makeonedevnode(S_IFCHR, "/dev/bpf", cmaj, 0)) !=0)
panic("cannot create bpf device nodes: %d", error);
}

View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/i386/include

View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/i386/include

1
sys/rump/dev/lib/libbpf/x86 Symbolic link
View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/x86/include

View File

@ -0,0 +1,8 @@
# $NetBSD: CGD.ioconf,v 1.1 2015/08/20 11:51:12 christos Exp $
#
ioconf cgd
include "conf/files"
pseudo-device cgd

View File

@ -0,0 +1,15 @@
# $NetBSD: Makefile,v 1.5 2015/08/20 11:51:12 christos Exp $
#
.PATH: ${.CURDIR}/../../../../dev
LIB= rumpdev_cgd
IOCONF= CGD.ioconf
SRCS= cgd.c cgd_crypto.c
SRCS+= cgd_component.c
CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -0,0 +1,59 @@
/* $NetBSD: cgd_component.c,v 1.1 2014/03/13 01:50:51 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* 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 AUTHOR ``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 AUTHOR 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 <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cgd_component.c,v 1.1 2014/03/13 01:50:51 pooka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/stat.h>
#include "rump_private.h"
#include "rump_vfs_private.h"
RUMP_COMPONENT(RUMP_COMPONENT_DEV)
{
extern const struct bdevsw cgd_bdevsw;
extern const struct cdevsw cgd_cdevsw;
devmajor_t bmaj, cmaj;
int error;
/* go, mydevfs */
bmaj = cmaj = -1;
if ((error = devsw_attach("/dev/cgd0", &cgd_bdevsw, &bmaj,
&cgd_cdevsw, &cmaj)) != 0)
panic("cannot attach cgd: %d", error);
if ((error = rump_vfs_makedevnodes(S_IFBLK, "/dev/cgd0", 'a',
bmaj, 0, 7)) != 0)
panic("cannot create cooked cgd dev nodes: %d", error);
if ((error = rump_vfs_makedevnodes(S_IFCHR, "/dev/rcgd0", 'a',
cmaj, 0, 7)) != 0)
panic("cannot create raw cgd dev nodes: %d", error);
}

View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/i386/include

View File

@ -0,0 +1,32 @@
#include "ioconf.h"
/*
* MACHINE GENERATED: DO NOT EDIT
*
* ioconf.c, from "/home/boricj/Documents/Projets/minix/src/sys/rump/dev/lib/libcgd/CGD.ioconf"
*/
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/mount.h>
static struct cfdriver * const cfdriver_ioconf_cgd[] = {
NULL
};
#define NORM FSTATE_NOTFOUND
#define STAR FSTATE_STAR
static struct cfdata cfdata_ioconf_cgd[] = {
/* driver attachment unit state loc flags pspec */
{ NULL, NULL, 0, 0, NULL, 0, NULL }
};
static const struct cfattachinit cfattach_ioconf_cgd[] = {
{ NULL, NULL }
};

View File

@ -0,0 +1,4 @@
/* pseudo-devices */
/* driver structs */

View File

View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/i386/include

1
sys/rump/dev/lib/libcgd/x86 Symbolic link
View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/x86/include

View File

@ -0,0 +1,23 @@
# $NetBSD: Makefile,v 1.8 2015/05/16 13:59:00 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../kern \
${.CURDIR}/../../../../dev ${.CURDIR}/../../../../dev/dkwedge
LIB= rumpdev_disk
SRCS= disk_component.c
#
# We use subr_disk_mbr on all platforms. The current structure of
# code allows us to pick only one readdisklabel() routine. While
# this is not the native one for all platforms, it's probably the
# most common one in an image floating on the internetto.
SRCS+= subr_disk_mbr.c
# sys/kern
SRCS+= subr_disk.c subr_disk_open.c
# sys/dev
SRCS+= dksubr.c dk.c
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -0,0 +1,43 @@
/* $NetBSD: disk_component.c,v 1.1 2015/05/16 13:59:00 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* 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 AUTHOR ``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 AUTHOR 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 <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: disk_component.c,v 1.1 2015/05/16 13:59:00 pooka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/disk.h>
#include "rump_private.h"
#include "rump_dev_private.h"
RUMP_COMPONENT(RUMP_COMPONENT_DEV)
{
dkwedge_init();
}

View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/i386/include

View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/i386/include

View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/x86/include

View File

@ -0,0 +1,8 @@
# $NetBSD: DM.ioconf,v 1.1 2015/08/20 11:51:12 christos Exp $
#
ioconf dm
include "conf/files"
pseudo-device dm

View File

@ -0,0 +1,16 @@
# $NetBSD: Makefile,v 1.5 2015/08/20 11:51:12 christos Exp $
#
.PATH: ${.CURDIR}/../../../../dev/dm
LIB= rumpdev_dm
IOCONF= DM.ioconf
SRCS= device-mapper.c dm_dev.c dm_ioctl.c dm_pdev.c dm_table.c dm_target.c \
dm_target_linear.c dm_target_stripe.c
SRCS+= dm_component.c
CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -0,0 +1,64 @@
/* $NetBSD: dm_component.c,v 1.1 2014/03/13 01:54:22 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* 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 AUTHOR ``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 AUTHOR 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 <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dm_component.c,v 1.1 2014/03/13 01:54:22 pooka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/stat.h>
#include <sys/filedesc.h>
#include <sys/vfs_syscalls.h>
#include "rump_private.h"
#include "rump_dev_private.h"
#include "rump_vfs_private.h"
RUMP_COMPONENT(RUMP_COMPONENT_DEV)
{
extern const struct bdevsw dm_bdevsw;
extern const struct cdevsw dm_cdevsw;
devmajor_t bmaj, cmaj;
int error;
/* go, mydevfs */
bmaj = cmaj = -1;
if ((error = devsw_attach("dm", &dm_bdevsw, &bmaj,
&dm_cdevsw, &cmaj)) != 0)
panic("cannot attach dm: %d", error);
do_sys_mkdir("/dev/mapper", 0770, UIO_SYSSPACE);
if ((error = rump_vfs_makedevnodes(S_IFCHR, "/dev/mapper/control", 0,
cmaj, 0, 1)) != 0) {
panic("cannot create device-mapper control device: %d", error);
}
}

1
sys/rump/dev/lib/libdm/i386 Symbolic link
View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/i386/include

View File

@ -0,0 +1,32 @@
#include "ioconf.h"
/*
* MACHINE GENERATED: DO NOT EDIT
*
* ioconf.c, from "/home/boricj/Documents/Projets/minix/src/sys/rump/dev/lib/libdm/DM.ioconf"
*/
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/mount.h>
static struct cfdriver * const cfdriver_ioconf_dm[] = {
NULL
};
#define NORM FSTATE_NOTFOUND
#define STAR FSTATE_STAR
static struct cfdata cfdata_ioconf_dm[] = {
/* driver attachment unit state loc flags pspec */
{ NULL, NULL, 0, 0, NULL, 0, NULL }
};
static const struct cfattachinit cfattach_ioconf_dm[] = {
{ NULL, NULL }
};

View File

@ -0,0 +1,4 @@
/* pseudo-devices */
/* driver structs */

View File

View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/i386/include

1
sys/rump/dev/lib/libdm/x86 Symbolic link
View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/x86/include

View File

@ -0,0 +1,8 @@
# $NetBSD: DRVCTL.ioconf,v 1.1 2010/12/07 21:38:07 pooka Exp $
#
ioconf drvctl
include "conf/files"
pseudo-device drvctl

View File

@ -0,0 +1,13 @@
# $NetBSD: Makefile,v 1.2 2014/03/13 01:56:55 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../kern
LIB= rumpdev_drvctl
IOCONF= DRVCTL.ioconf
SRCS= kern_drvctl.c
SRCS+= drvctl_component.c
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -0,0 +1,55 @@
/* $NetBSD: drvctl_component.c,v 1.1 2014/03/13 01:56:55 pooka Exp $ */
/*
* Copyright (c) 2010 Antti Kantee. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* 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 AUTHOR ``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 AUTHOR 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 <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: drvctl_component.c,v 1.1 2014/03/13 01:56:55 pooka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/stat.h>
#include "ioconf.c"
#include "rump_private.h"
RUMP_COMPONENT(RUMP_COMPONENT_DEV)
{
extern const struct cdevsw drvctl_cdevsw;
devmajor_t bmaj, cmaj;
int error;
drvctl_init();
config_init_component(cfdriver_ioconf_drvctl,
cfattach_ioconf_drvctl, cfdata_ioconf_drvctl);
bmaj = cmaj = NODEVMAJOR;
if ((error = devsw_attach("drvctl", NULL, &bmaj,
&drvctl_cdevsw, &cmaj)) != 0)
panic("drvctl devsw attach failed: %d", error);
}

View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/i386/include

View File

@ -0,0 +1,32 @@
#include "ioconf.h"
/*
* MACHINE GENERATED: DO NOT EDIT
*
* ioconf.c, from "/home/boricj/Documents/Projets/minix/src/sys/rump/dev/lib/libdrvctl/DRVCTL.ioconf"
*/
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/mount.h>
static struct cfdriver * const cfdriver_ioconf_drvctl[] = {
NULL
};
#define NORM FSTATE_NOTFOUND
#define STAR FSTATE_STAR
static struct cfdata cfdata_ioconf_drvctl[] = {
/* driver attachment unit state loc flags pspec */
{ NULL, NULL, 0, 0, NULL, 0, NULL }
};
static const struct cfattachinit cfattach_ioconf_drvctl[] = {
{ NULL, NULL }
};

View File

@ -0,0 +1,4 @@
/* pseudo-devices */
/* driver structs */

View File

View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/i386/include

View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/x86/include

View File

@ -0,0 +1,8 @@
# $NetBSD: FSS.ioconf,v 1.1 2015/08/20 11:51:12 christos Exp $
#
ioconf fss
include "conf/files"
pseudo-device fss

View File

@ -0,0 +1,15 @@
# $NetBSD: Makefile,v 1.3 2015/08/20 11:51:12 christos Exp $
#
.PATH: ${.CURDIR}/../../../../dev
LIB= rumpdev_fss
IOCONF= FSS.ioconf
SRCS= fss.c
SRCS+= fss_component.c
CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -0,0 +1,59 @@
/* $NetBSD: fss_component.c,v 1.1 2014/03/13 01:59:05 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* 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 AUTHOR ``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 AUTHOR 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 <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fss_component.c,v 1.1 2014/03/13 01:59:05 pooka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/stat.h>
#include "rump_private.h"
#include "rump_vfs_private.h"
RUMP_COMPONENT(RUMP_COMPONENT_DEV)
{
extern const struct bdevsw fss_bdevsw;
extern const struct cdevsw fss_cdevsw;
devmajor_t bmaj, cmaj;
int error;
bmaj = bdevsw_lookup_major(&fss_bdevsw);
cmaj = cdevsw_lookup_major(&fss_cdevsw);
if ((error = devsw_attach("fss", &fss_bdevsw, &bmaj,
&fss_cdevsw, &cmaj)) != 0)
panic("cannot attach fss: %d", error);
if ((error = rump_vfs_makedevnodes(S_IFBLK, "/dev/fss", '0',
bmaj, 0, 4)) != 0)
panic("cannot create cooked fss dev nodes: %d", error);
if ((error = rump_vfs_makedevnodes(S_IFCHR, "/dev/rfss", '0',
cmaj, 0, 4)) != 0)
panic("cannot create raw fss dev nodes: %d", error);
}

View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/i386/include

View File

@ -0,0 +1,32 @@
#include "ioconf.h"
/*
* MACHINE GENERATED: DO NOT EDIT
*
* ioconf.c, from "/home/boricj/Documents/Projets/minix/src/sys/rump/dev/lib/libfss/FSS.ioconf"
*/
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/mount.h>
static struct cfdriver * const cfdriver_ioconf_fss[] = {
NULL
};
#define NORM FSTATE_NOTFOUND
#define STAR FSTATE_STAR
static struct cfdata cfdata_ioconf_fss[] = {
/* driver attachment unit state loc flags pspec */
{ NULL, NULL, 0, 0, NULL, 0, NULL }
};
static const struct cfattachinit cfattach_ioconf_fss[] = {
{ NULL, NULL }
};

View File

@ -0,0 +1,4 @@
/* pseudo-devices */
/* driver structs */

View File

View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/i386/include

1
sys/rump/dev/lib/libfss/x86 Symbolic link
View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/x86/include

View File

@ -0,0 +1,13 @@
# $NetBSD: Makefile,v 1.1 2014/11/19 00:18:58 pooka Exp $
#
RUMPTOP=${TOPRUMP}
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/sys/modules/hdafg/Makefile.inc"
LIB= rumpdev_hdaudio_hdafg
.include "${RUMPTOP}/Makefile.rump"
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -0,0 +1,8 @@
# $NetBSD: MD.ioconf,v 1.1 2010/11/22 21:20:32 pooka Exp $
#
ioconf md
include "conf/files"
pseudo-device md

View File

@ -0,0 +1,15 @@
# $NetBSD: Makefile,v 1.2 2014/03/17 11:30:40 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../dev
LIB= rumpdev_md
IOCONF= MD.ioconf
SRCS= md.c
SRCS+= md_component.c
CPPFLAGS+= -I${.CURDIR}/../../../librump/rumpvfs
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

1
sys/rump/dev/lib/libmd/i386 Symbolic link
View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/i386/include

View File

@ -0,0 +1,32 @@
#include "ioconf.h"
/*
* MACHINE GENERATED: DO NOT EDIT
*
* ioconf.c, from "/home/boricj/Documents/Projets/minix/src/sys/rump/dev/lib/libmd/MD.ioconf"
*/
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/mount.h>
static struct cfdriver * const cfdriver_ioconf_md[] = {
NULL
};
#define NORM FSTATE_NOTFOUND
#define STAR FSTATE_STAR
static struct cfdata cfdata_ioconf_md[] = {
/* driver attachment unit state loc flags pspec */
{ NULL, NULL, 0, 0, NULL, 0, NULL }
};
static const struct cfattachinit cfattach_ioconf_md[] = {
{ NULL, NULL }
};

View File

@ -0,0 +1,4 @@
/* pseudo-devices */
/* driver structs */

View File

View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/i386/include

View File

@ -0,0 +1,68 @@
/* $NetBSD: md_component.c,v 1.1 2014/03/17 11:30:40 pooka Exp $ */
/*
* Copyright (c) 2010 Antti Kantee. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* 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 AUTHOR ``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 AUTHOR 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 <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: md_component.c,v 1.1 2014/03/17 11:30:40 pooka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/mbuf.h>
#include <sys/stat.h>
#include "ioconf.c"
#include "rump_private.h"
#include "rump_dev_private.h"
#include "rump_vfs_private.h"
extern void mdattach(int); /* XXX */
RUMP_COMPONENT(RUMP_COMPONENT_DEV)
{
extern const struct bdevsw md_bdevsw;
extern const struct cdevsw md_cdevsw;
devmajor_t bmaj, cmaj;
int error;
config_init_component(cfdriver_ioconf_md,
cfattach_ioconf_md, cfdata_ioconf_md);
bmaj = cmaj = NODEVMAJOR;
if ((error = devsw_attach("md", &md_bdevsw, &bmaj,
&md_cdevsw, &cmaj)) != 0)
panic("md devsw attach failed: %d", error);
if ((error = rump_vfs_makedevnodes(S_IFBLK, "/dev/md0", 'a',
bmaj, 0, 7)) != 0)
panic("cannot create cooked md dev nodes: %d", error);
if ((error = rump_vfs_makedevnodes(S_IFCHR, "/dev/rmd0", 'a',
cmaj, 0, 7)) != 0)
panic("cannot create raw md dev nodes: %d", error);
rump_pdev_add(mdattach, 0);
}

1
sys/rump/dev/lib/libmd/x86 Symbolic link
View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/x86/include

View File

@ -0,0 +1,41 @@
# $NetBSD: MIIPHY.ioconf,v 1.1 2014/04/04 14:18:19 pooka Exp $
#
ioconf phy
include "conf/files"
pseudo-root mii*
acphy* at mii? phy ? # Altima AC101 and AMD Am79c874 PHYs
amhphy* at mii? phy ? # AMD 79c901 Ethernet PHYs
atphy* at mii? phy ? # Attansic/Atheros PHYs
bmtphy* at mii? phy ? # Broadcom BCM5201 and BCM5202 PHYs
brgphy* at mii? phy ? # Broadcom BCM5400-family PHYs
ciphy* at mii? phy ? # Cicada CS8201 Gig-E PHYs
dmphy* at mii? phy ? # Davicom DM9101 PHYs
etphy* at mii? phy ? # Agere/LSI ET1011 TruePHY Gig-E PHYs
exphy* at mii? phy ? # 3Com internal PHYs
gentbi* at mii? phy ? # Generic Ten-Bit 1000BASE-[CLS]X PHYs
glxtphy* at mii? phy ? # Level One LXT-1000 PHYs
gphyter* at mii? phy ? # NS83861 Gig-E PHY
icsphy* at mii? phy ? # Integrated Circuit Systems ICS189x
igphy* at mii? phy ? # Intel IGP01E1000
ihphy* at mii? phy ? # Intel 82577 PHYs
ikphy* at mii? phy ? # Intel 82563 PHYs
inphy* at mii? phy ? # Intel 82555 PHYs
iophy* at mii? phy ? # Intel 82553 PHYs
lxtphy* at mii? phy ? # Level One LXT-970 PHYs
makphy* at mii? phy ? # Marvell Semiconductor 88E1000 PHYs
nsphy* at mii? phy ? # NS83840 PHYs
nsphyter* at mii? phy ? # NS83843 PHYs
pnaphy* at mii? phy ? # generic HomePNA PHYs
qsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs
rdcphy* at mii? phy ? # RDC R6040 10/100 PHY
rgephy* at mii? phy ? # Realtek 8169S/8110S internal PHYs
rlphy* at mii? phy ? # Realtek 8139/8201L PHYs
sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs
tlphy* at mii? phy ? # ThunderLAN PHYs
tqphy* at mii? phy ? # TDK Semiconductor PHYs
ukphy* at mii? phy ? # generic unknown PHYs
urlphy* at mii? phy ? # Realtek RTL8150L internal PHYs

View File

@ -0,0 +1,23 @@
# $NetBSD: Makefile,v 1.3 2015/08/24 23:21:50 pooka Exp $
#
RUMPTOP=${TOPRUMP}
.PATH: ${RUMPTOP}/../dev/pci ${RUMPTOP}/../dev/mii
LIB= rumpdev_miiphy
IOCONF= MIIPHY.ioconf
SRCS= phy_at_mii.c
SRCS+= mii.c mii_ethersubr.c mii_physubr.c ukphy.c ukphy_subr.c
SRCS+= acphy.c amhphy.c atphy.c bmtphy.c brgphy.c ciphy.c dmphy.c etphy.c \
exphy.c gentbi.c glxtphy.c gphyter.c icsphy.c igphy.c ihphy.c ikphy.c \
inphy.c iophy.c lxtphy.c makphy.c nsphy.c nsphyter.c pnaphy.c \
qsphy.c rdcphy.c rgephy.c rlphy.c sqphy.c tlphy.c tqphy.c urlphy.c
CPPFLAGS+= -I${RUMPTOP}/librump/rumpkern
.include "${RUMPTOP}/Makefile.rump"
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -0,0 +1,45 @@
/* $NetBSD: phy_at_mii.c,v 1.1 2014/04/04 14:18:19 pooka Exp $ */
/*
* Copyright (c) 2010 Antti Kantee. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* 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 AUTHOR ``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 AUTHOR 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 <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: phy_at_mii.c,v 1.1 2014/04/04 14:18:19 pooka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/bus.h>
#include "rump_private.h"
#include "ioconf.c"
RUMP_COMPONENT(RUMP_COMPONENT_DEV)
{
config_init_component(cfdriver_ioconf_phy,
cfattach_ioconf_phy, cfdata_ioconf_phy);
}

View File

@ -0,0 +1,20 @@
# $NetBSD: Makefile,v 1.7 2015/08/20 14:27:15 christos Exp $
#
.PATH: ${.CURDIR}/../../../../netsmb
LIB= rumpdev_netsmb
IOCONF= NETSMB.ioconf
SRCS= iconv.c smb_conn.c smb_crypt.c smb_dev.c smb_iod.c smb_rq.c \
smb_smb.c smb_subr.c smb_trantcp.c smb_usr.c subr_mchain.c
SRCS+= netsmb_component.c
CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs
#CPPFLAGS+= -DSMB_SOCKET_DEBUG -DSMB_IOD_DEBUG
SRCS+= netsmb_iconv.c
RUMPCOMP_USER_SRCS= netsmb_user.c
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -0,0 +1,8 @@
# $NetBSD: NETSMB.ioconf,v 1.1 2015/08/20 11:51:12 christos Exp $
#
ioconf netsmb
include "conf/files"
pseudo-device nsmb

View File

@ -0,0 +1 @@
/home/boricj/Documents/Projets/minix/src/sys/arch/i386/include

View File

@ -0,0 +1,32 @@
#include "ioconf.h"
/*
* MACHINE GENERATED: DO NOT EDIT
*
* ioconf.c, from "/home/boricj/Documents/Projets/minix/src/sys/rump/dev/lib/libnetsmb/NETSMB.ioconf"
*/
#include <sys/param.h>
#include <sys/conf.h>
#include <sys/device.h>
#include <sys/mount.h>
static struct cfdriver * const cfdriver_ioconf_netsmb[] = {
NULL
};
#define NORM FSTATE_NOTFOUND
#define STAR FSTATE_STAR
static struct cfdata cfdata_ioconf_netsmb[] = {
/* driver attachment unit state loc flags pspec */
{ NULL, NULL, 0, 0, NULL, 0, NULL }
};
static const struct cfattachinit cfattach_ioconf_netsmb[] = {
{ NULL, NULL }
};

View File

@ -0,0 +1,4 @@
/* pseudo-devices */
/* driver structs */

View File

Some files were not shown because too many files have changed in this diff Show More