From 8a2a4c6b0ddf80f390d4a1ed025f0ca7a643c483 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 14 Nov 2005 21:51:56 +0000 Subject: Restore the disk blinkenlichten lost with the new scsi code, and hp300 users like me again. --- sys/arch/hp300/dev/spc.c | 14 +++++++++++--- 1 file 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 #include +#ifdef USELEDS +#include +#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 -- cgit v1.2.3