Checkpoint a bunch of work-in-progress: support for disk devices

and raidframe.  Raidframe works well enough to configure a raid in
the rump kernel, but the usage is "interesting" (pending some other
changes/cleanup from other parts in my tree).

These are not built by default yet.
This commit is contained in:
pooka 2009-06-09 16:16:14 +00:00
parent b43858307a
commit 4c54895067
9 changed files with 87 additions and 0 deletions

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,9 @@
# $NetBSD: Makefile.rumpdev,v 1.1 2009/06/09 16:16:15 pooka Exp $
#
RUMPDEVLIST= disk raidframe
.for var in ${RUMPDEVLIST}
RUMPDEVLIBS+=lib${var}
RUMPDEVLDADD+=-lrumpdev_${var}
.endfor

View File

@ -0,0 +1,8 @@
# $NetBSD: Makefile,v 1.1 2009/06/09 16:16:15 pooka Exp $
#
.include "${.CURDIR}/../Makefile.rumpdev"
SUBDIR+= ${RUMPDEVLIBS}
.include <bsd.subdir.mk>

View File

@ -0,0 +1,7 @@
# $NetBSD: Makefile.inc,v 1.1 2009/06/09 16:16:15 pooka Exp $
#
RUMPTOP= ${.CURDIR}/../../..
CPPFLAGS+= -I${RUMPTOP}/librump/rumpdev/opt
.include "${RUMPTOP}/Makefile.rump"

View File

@ -0,0 +1,18 @@
# $NetBSD: Makefile,v 1.1 2009/06/09 16:16:15 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../kern \
${.CURDIR}/../../../../dev ${.CURDIR}/../../../../dev/dkwedge
LIB= rumpdev_disk
# sys/kern
SRCS= kern_physio.c subr_disk.c subr_disk_mbr.c
# sys/dev
SRCS+= dksubr.c dk.c
CFLAGS+= -Wno-pointer-sign
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -0,0 +1,4 @@
# $NetBSD: shlib_version,v 1.1 2009/06/09 16:16:15 pooka Exp $
#
major=0
minor=0

View File

@ -0,0 +1,27 @@
# $NetBSD: Makefile,v 1.1 2009/06/09 16:16:15 pooka Exp $
#
.PATH: ${.CURDIR}/../../../../dev/raidframe
LIB= rumpdev_raidframe
SRCS= rf_acctrace.c rf_alloclist.c rf_aselect.c rf_callback.c \
rf_chaindecluster.c rf_copyback.c rf_cvscan.c rf_dagdegrd.c \
rf_dagdegwr.c rf_dagffrd.c rf_dagffwr.c rf_dagfuncs.c \
rf_dagutils.c rf_debugMem.c rf_debugprint.c rf_decluster.c \
rf_declusterPQ.c rf_diskqueue.c rf_disks.c rf_driver.c \
rf_engine.c rf_evenodd.c rf_evenodd_dagfuncs.c rf_evenodd_dags.c\
rf_fifo.c rf_interdecluster.c rf_invertq.c rf_layout.c \
rf_map.c rf_mcpair.c rf_netbsdkintf.c rf_nwayxor.c rf_options.c \
rf_paritylog.c rf_paritylogDiskMgr.c rf_paritylogging.c \
rf_parityloggingdags.c rf_parityscan.c rf_pq.c rf_pqdeg.c \
rf_pqdegdags.c rf_psstatus.c rf_raid0.c rf_raid1.c rf_raid4.c \
rf_raid5.c rf_raid5_rotatedspare.c rf_reconbuffer.c \
rf_reconmap.c rf_reconstruct.c rf_reconutil.c rf_revent.c \
rf_shutdown.c rf_sstf.c rf_states.c rf_stripelocks.c \
rf_strutils.c rf_utils.c rf_compat50.c
SRCS+= component.c
.include <bsd.lib.mk>
.include <bsd.klinks.mk>

View File

@ -0,0 +1,4 @@
#include <sys/param.h>
#include <sys/device.h>
CFDRIVER_DECL(raid, DV_DISK, NULL);

View File

@ -0,0 +1,4 @@
# $NetBSD: shlib_version,v 1.1 2009/06/09 16:16:15 pooka Exp $
#
major=0
minor=0