summaryrefslogtreecommitdiff
path: root/sys/arch/hp300
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-11-14 21:51:56 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-11-14 21:51:56 +0000
commit8a2a4c6b0ddf80f390d4a1ed025f0ca7a643c483 (patch)
tree10feb9a18fda691f812a5c712aebe3d6c0d330cb /sys/arch/hp300
parent576146635f381760027774f7b812a22908bccff5 (diff)
Restore the disk blinkenlichten lost with the new scsi code, and hp300 users
like me again.
Diffstat (limited to 'sys/arch/hp300')
-rw-r--r--sys/arch/hp300/dev/spc.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/arch/hp300/dev/spc.c b/sys/arch/hp300/dev/spc.c
index 431943be036..5a3c87c9ae7 100644
--- a/sys/arch/hp300/dev/spc.c
+++ b/sys/arch/hp300/dev/spc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spc.c,v 1.11 2004/12/22 21:11:12 miod Exp $ */
+/* $OpenBSD: spc.c,v 1.12 2005/11/14 21:51:55 miod Exp $ */
/* $NetBSD: spc.c,v 1.2 2003/11/17 14:37:59 tsutsui Exp $ */
/*
@@ -52,6 +52,10 @@
#include <hp300/dev/dmareg.h>
#include <hp300/dev/dmavar.h>
+#ifdef USELEDS
+#include <hp300/hp300/leds.h>
+#endif
+
int spc_dio_match(struct device *, void *, void *);
void spc_dio_attach(struct device *, struct device *, void *);
int spc_dio_dmastart(struct spc_softc *, void *, size_t, int);
@@ -307,9 +311,13 @@ spc_dio_intr(void *arg)
/* if we are sharing the ipl level, this interrupt may not be for us. */
if ((hpspc_read(HPSCSI_CSR) & (CSR_IE | CSR_IR)) != (CSR_IE | CSR_IR))
- return 0;
+ return (0);
+
+#ifdef USELEDS
+ ledcontrol(0, 0, LED_DISK);
+#endif
- return spc_intr(arg);
+ return (spc_intr(arg));
}
void