Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/luna68k/stand/boot Make sure to enable DTR and RTS ...
details: https://anonhg.NetBSD.org/src/rev/a6fc6266c1af
branches: trunk
changeset: 783899:a6fc6266c1af
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Jan 12 07:04:57 2013 +0000
description:
Make sure to enable DTR and RTS on TX initialization for SIO console.
diffstat:
sys/arch/luna68k/stand/boot/sio.c | 4 ++--
sys/arch/luna68k/stand/boot/sioreg.h | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
diffs (43 lines):
diff -r 47c9f329a51e -r a6fc6266c1af sys/arch/luna68k/stand/boot/sio.c
--- a/sys/arch/luna68k/stand/boot/sio.c Sat Jan 12 03:16:43 2013 +0000
+++ b/sys/arch/luna68k/stand/boot/sio.c Sat Jan 12 07:04:57 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sio.c,v 1.1 2013/01/05 17:44:24 tsutsui Exp $ */
+/* $NetBSD: sio.c,v 1.2 2013/01/12 07:04:57 tsutsui Exp $ */
/*
* Copyright (c) 1992 OMRON Corporation.
@@ -220,7 +220,7 @@
sioreg(REG(0, WR0), WR0_RSTINT); /* Reset E/S Interrupt */
sioreg(REG(0, WR4), WR4_BAUD96 | WR4_STOP1 | WR4_NPARITY); /* Tx/Rx */
sioreg(REG(0, WR3), WR3_RX8BIT | WR3_RXENBL); /* Rx */
- sioreg(REG(0, WR5), WR5_TX8BIT | WR5_TXENBL); /* Tx */
+ sioreg(REG(0, WR5), WR5_TX8BIT | WR5_TXENBL | WR5_DTR | WR5_RTS); /* Tx */
sioreg(REG(0, WR0), WR0_RSTINT); /* Reset E/S Interrupt */
sioreg(REG(0, WR1), WR1_RXALLS); /* Interrupted All Char. */
diff -r 47c9f329a51e -r a6fc6266c1af sys/arch/luna68k/stand/boot/sioreg.h
--- a/sys/arch/luna68k/stand/boot/sioreg.h Sat Jan 12 03:16:43 2013 +0000
+++ b/sys/arch/luna68k/stand/boot/sioreg.h Sat Jan 12 07:04:57 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sioreg.h,v 1.1 2013/01/05 17:44:24 tsutsui Exp $ */
+/* $NetBSD: sioreg.h,v 1.2 2013/01/12 07:04:57 tsutsui Exp $ */
/*
* Copyright (c) 1992 OMRON Corporation.
@@ -153,13 +153,14 @@
#define WR4_BAUD24 0xc0 /* Clock Rate (2400 BAUD) */
#define WR5_TXCRC 0x01 /* Tx CRC Check */
-#define WR5_REQSND 0x02 /* Request To Send (LOW) */
+#define WR5_RTS 0x02 /* Request To Send [RTS] */
#define WR5_TXENBL 0x08 /* Transmit Enable */
#define WR5_BREAK 0x10 /* Send Break */
#define WR5_TX5BIT 0x00 /* Tx Bits/Character: 5 Bits */
#define WR5_TX7BIT 0x20 /* Tx Bits/Character: 7 Bits */
#define WR5_TX6BIT 0x40 /* Tx Bits/Character: 6 Bits */
#define WR5_TX8BIT 0x60 /* Tx Bits/Character: 8 Bits */
+#define WR5_DTR 0x80 /* Data Terminal Ready [DTR] */
#define RR0_RXAVAIL 0x01 /* Rx Character Available */
#define RR0_INTRPEND 0x02 /* Interrupt Pending (Channel-A Only) */
Home |
Main Index |
Thread Index |
Old Index