summaryrefslogtreecommitdiff
path: root/sys/dev/softraidvar.h
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2007-05-30 13:55:48 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2007-05-30 13:55:48 +0000
commitba627c41a7bc412d55590a52ed12eab5be412606 (patch)
treed1eb09df6ab0605aedb6d61240201108ce8feca5 /sys/dev/softraidvar.h
parent8b64f91fffb62fb92d7a47fb490d35da189dfcfb (diff)
add basic support for a crypto(9) backed raid C discipline
ok marco
Diffstat (limited to 'sys/dev/softraidvar.h')
-rw-r--r--sys/dev/softraidvar.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/softraidvar.h b/sys/dev/softraidvar.h
index 85312c9cc80..ca55b2f41dc 100644
--- a/sys/dev/softraidvar.h
+++ b/sys/dev/softraidvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraidvar.h,v 1.24 2007/05/29 23:20:02 marco Exp $ */
+/* $OpenBSD: softraidvar.h,v 1.25 2007/05/30 13:55:47 tedu Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <sro@peereboom.us>
*
@@ -219,6 +219,12 @@ struct sr_raid1 {
u_int32_t sr1_counter;
};
+#define SR_RAIDC_NOWU 16
+struct sr_raidc {
+ u_int64_t src_sid;
+ char src_key[64];
+};
+
struct sr_discipline {
struct sr_softc *sd_sc; /* link back to sr softc */
u_int8_t sd_type; /* type of discipline */
@@ -226,12 +232,14 @@ struct sr_discipline {
#define SR_MD_RAID1 1
#define SR_MD_RAID5 2
#define SR_MD_CACHE 3
+#define SR_MD_RAIDC 4
char sd_name[10]; /* human readable dis name */
u_int8_t sd_scsibus; /* scsibus discipline uses */
struct scsi_link sd_link; /* link to midlayer */
union {
struct sr_raid1 mdd_raid1;
+ struct sr_raidc mdd_raidc;
} sd_dis_specific;/* dis specific members */
#define mds sd_dis_specific