Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sandpoint/sandpoint Quick fixes to make KURO-BOX/T4...
details: https://anonhg.NetBSD.org/src/rev/e7be1130baf0
branches: trunk
changeset: 778986:e7be1130baf0
user: nisimura <nisimura%NetBSD.org@localhost>
date: Tue Apr 24 10:09:06 2012 +0000
description:
Quick fixes to make KURO-BOX/T4 "miconv2" power management work.
The patch was supplied by mef@.
diffstat:
sys/arch/sandpoint/sandpoint/satmgr.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r 7239694b7d23 -r e7be1130baf0 sys/arch/sandpoint/sandpoint/satmgr.c
--- a/sys/arch/sandpoint/sandpoint/satmgr.c Tue Apr 24 09:53:41 2012 +0000
+++ b/sys/arch/sandpoint/sandpoint/satmgr.c Tue Apr 24 10:09:06 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: satmgr.c,v 1.19 2012/04/16 14:30:42 nisimura Exp $ */
+/* $NetBSD: satmgr.c,v 1.20 2012/04/24 10:09:06 nisimura Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -997,7 +997,9 @@
CSR_WRITE(sc, IER, 0);
send_sat_len(sc, cmd, len);
send_sat_len(sc, &pa, 1);
+ DELAY(2000); /* XXX */
recv_sat_len(sc, rep, n);
+ DELAY(2000); /* XXX */
CSR_WRITE(sc, IER, 0x7f);
}
@@ -1042,10 +1044,10 @@
{
/* notified after 3 seconds guard time */
struct satmgr_softc *sc = arg;
- char report[2];
+ char report[4];
- msattalk(sc, "\x80\x36", report, 2);
- if ((report[0] & 01) == 0) /* power button depressed */
+ msattalk(sc, "\x80\x36", report, 4);
+ if ((report[2] & 01) == 0) /* power button depressed */
sysmon_task_queue_sched(0, sched_sysmon_pbutton, sc);
return 1;
}
Home |
Main Index |
Thread Index |
Old Index