Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcmips/tx fix TX39IO port debug routine bug. (TX3912)
details: https://anonhg.NetBSD.org/src/rev/99e02eb64bff
branches: trunk
changeset: 480347:99e02eb64bff
user: uch <uch%NetBSD.org@localhost>
date: Sun Jan 09 18:56:37 2000 +0000
description:
fix TX39IO port debug routine bug. (TX3912)
diffstat:
sys/arch/hpcmips/tx/tx39io.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (39 lines):
diff -r 746340e0d069 -r 99e02eb64bff sys/arch/hpcmips/tx/tx39io.c
--- a/sys/arch/hpcmips/tx/tx39io.c Sun Jan 09 18:55:11 2000 +0000
+++ b/sys/arch/hpcmips/tx/tx39io.c Sun Jan 09 18:56:37 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tx39io.c,v 1.3 1999/12/23 16:58:07 uch Exp $ */
+/* $NetBSD: tx39io.c,v 1.4 2000/01/09 18:56:37 uch Exp $ */
/*
* Copyright (c) 1999, by UCHIYAMA Yasushi
@@ -300,22 +300,27 @@
if (ISSET(reg_dir, i)) {
#if defined TX39IO_MFIOOUTPORT_ON || defined TX39IO_MFIOOUTPORT_OFF
txreg_t reg;
+#ifdef TX392X
if (io) {
-#ifdef TX392X
reg = tx_conf_read(tc, TX39_IODATAINOUT_REG);
#ifdef TX39IO_MFIOOUTPORT_ON
reg |= (1 << (i + 16));
+ printf("on.");
#else
reg &= ~(1 << (i + 16));
+ printf("off.");
#endif
tx_conf_write(tc, TX39_IODATAINOUT_REG, reg);
+ } else
#endif /* TX392X */
- } else {
+ {
reg = tx_conf_read(tc, TX39_IOMFIODATAOUT_REG);
#ifdef TX39IO_MFIOOUTPORT_ON
reg |= (1 << i);
+ printf("on.");
#else
reg &= ~(1 << i);
+ printf("off.");
#endif
tx_conf_write(tc, TX39_IOMFIODATAOUT_REG, reg);
}
Home |
Main Index |
Thread Index |
Old Index