summaryrefslogtreecommitdiff
path: root/sys/dev/biovar.h
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2005-04-04 22:36:30 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2005-04-04 22:36:30 +0000
commit546d85c42598140ce97631bf1aa8016e5bd2f625 (patch)
tree23ad27e2157bd24eeea6ae386ab038fd9ef74f3e /sys/dev/biovar.h
parent43019ecd306d48da2cea424745dfc923fcaba10c (diff)
add blink and unblink.
Diffstat (limited to 'sys/dev/biovar.h')
-rw-r--r--sys/dev/biovar.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/dev/biovar.h b/sys/dev/biovar.h
index 111e0f3979a..14ef221ee1a 100644
--- a/sys/dev/biovar.h
+++ b/sys/dev/biovar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: biovar.h,v 1.3 2005/03/29 22:13:37 marco Exp $ */
+/* $OpenBSD: biovar.h,v 1.4 2005/04/04 22:36:29 marco Exp $ */
/*
* Copyright (c) 2002 Niklas Hallqvist. All rights reserved.
@@ -75,6 +75,7 @@ typedef struct _bioc_capabilities {
#define BIOC_STATUS 0x10
#define BIOC_SCSICMD 0x20
#define BIOC_STARTSTOP 0x40
+#define BIOC_BLINK 0x80
u_int32_t raid_types; /* bit field, 1 supported raid type */
#define BIOC_RAID0 0x01
#define BIOC_RAID1 0x02
@@ -179,3 +180,16 @@ typedef struct _bioc_status {
#define BIOC_BATTEMP 0x04 /* battery over/under temp*/
/* NOTYET: encloure status & temperature status */
} bioc_status;
+
+/* OPTIONAL */
+/* depending on the controller it is handled either in userland or in kernel */
+#define BIOCBLINK _IOWR('B', 38, bioc_blink)
+typedef struct _bioc_blink {
+ void *cookie;
+ u_int8_t opcode;
+#define BIOCSBLINK_BLINK 0x00
+#define BIOCSBLINK_UNBLINK 0x01
+ u_int8_t channel;
+ u_int8_t target;
+} bioc_blink;
+