summaryrefslogtreecommitdiff
path: root/sys/dev/biovar.h
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2010-03-26 16:51:00 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2010-03-26 16:51:00 +0000
commit0eed1f02202c01ba55015b01f6998293613e7d6d (patch)
tree7ab45f683f864896ace7c1a9abbbd66a4f0f1dfc /sys/dev/biovar.h
parent5c0668aeb3664e3654a9fa92c8bd300d21ec81e3 (diff)
Add an ioctl to softraid to allow the boot block and boot loader to be
installed on a softraid volume. This is work in progress but can continue in tree. ok marco@
Diffstat (limited to 'sys/dev/biovar.h')
-rw-r--r--sys/dev/biovar.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/dev/biovar.h b/sys/dev/biovar.h
index 2448903a74d..e5ff86850aa 100644
--- a/sys/dev/biovar.h
+++ b/sys/dev/biovar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: biovar.h,v 1.37 2009/12/31 14:00:45 jsing Exp $ */
+/* $OpenBSD: biovar.h,v 1.38 2010/03/26 16:50:59 jsing Exp $ */
/*
* Copyright (c) 2002 Niklas Hallqvist. All rights reserved.
@@ -184,6 +184,7 @@ struct bioc_createraid {
#define BIOC_SCFORCE 0x01 /* do not assemble, force create */
#define BIOC_SCDEVT 0x02 /* dev_t array or string in dev_list */
#define BIOC_SCNOAUTOASSEMBLE 0x04 /* do not assemble during autoconf */
+#define BIOC_SCBOOTABLE 0x08 /* device is bootable */
u_int32_t bc_opaque_size;
u_int32_t bc_opaque_flags;
#define BIOC_SOINVALID 0x00 /* no opaque pointer */
@@ -212,6 +213,16 @@ struct bioc_discipline {
void *bd_data;
};
+#define BIOCINSTALLBOOT _IOWR('B', 40, struct bioc_installboot)
+struct bioc_installboot {
+ void *bb_cookie;
+ char bb_dev[16];
+ void *bb_bootblk;
+ void *bb_bootldr;
+ u_int32_t bb_bootblk_size;
+ u_int32_t bb_bootldr_size;
+};
+
/* kernel and userspace defines */
#define BIOC_INQ 0x0001
#define BIOC_DISK 0x0002
@@ -222,6 +233,7 @@ struct bioc_discipline {
#define BIOC_CREATERAID 0x0040
#define BIOC_DELETERAID 0x0080
#define BIOC_DISCIPLINE 0x0100
+#define BIOC_INSTALLBOOT 0x0200
/* user space defines */
#define BIOC_DEVLIST 0x10000