summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2005-04-04 22:40:32 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2005-04-04 22:40:32 +0000
commitb8cf5a59c4b9c5133225a1632b01dd52d86f7fc1 (patch)
treeeb56f352a099868ab2f7dd37e613abd613467dc2 /sys/dev
parent546d85c42598140ce97631bf1aa8016e5bd2f625 (diff)
Add blink and unblink but tell userland it is responsible for actually doing it
because the ami firmware does not support it. In this case bioctl(8) will do it with SES passthrough commands.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/ami.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c
index 140acfae705..20ff61ce2aa 100644
--- a/sys/dev/ic/ami.c
+++ b/sys/dev/ic/ami.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ami.c,v 1.31 2005/04/01 20:14:40 marco Exp $ */
+/* $OpenBSD: ami.c,v 1.32 2005/04/04 22:40:31 marco Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -1480,7 +1480,7 @@ ami_ioctl(dev, cmd, addr)
case BIOCCAPABILITIES:
((bioc_capabilities *)addr)->ioctls =
BIOC_ALARM | BIOC_PING | BIOC_SCSICMD | BIOC_STARTSTOP |
- BIOC_STATUS;
+ BIOC_STATUS | BIOC_BLINK;
((bioc_capabilities *)addr)->raid_types =
BIOC_RAID0 | BIOC_RAID1 | BIOC_RAID5 |
@@ -1497,6 +1497,11 @@ ami_ioctl(dev, cmd, addr)
error = ami_ioctl_alarm(sc, (bioc_alarm *)addr);
break;
+ case BIOCBLINK:
+ error = EOPNOTSUPP; /* let userland land knows it must issue
+ * a cdb to handle blinking. */
+ break;
+
case BIOCSTARTSTOP:
AMI_DPRINTF(AMI_D_IOCTL, ("start stop unit\n"));
error = ami_ioctl_startstop(sc, (bioc_startstop *)addr);