Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic kluge to make this work with NEC M403 (arc/magnum).
details: https://anonhg.NetBSD.org/src/rev/9b4a5b205f57
branches: trunk
changeset: 481138:9b4a5b205f57
user: soda <soda%NetBSD.org@localhost>
date: Sun Jan 23 21:06:01 2000 +0000
description:
kluge to make this work with NEC M403 (arc/magnum).
diffstat:
sys/dev/ic/com.c | 6 +++++-
sys/dev/ic/comvar.h | 6 ++----
2 files changed, 7 insertions(+), 5 deletions(-)
diffs (47 lines):
diff -r 4e30cde6dfa2 -r 9b4a5b205f57 sys/dev/ic/com.c
--- a/sys/dev/ic/com.c Sun Jan 23 21:05:02 2000 +0000
+++ b/sys/dev/ic/com.c Sun Jan 23 21:06:01 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.165 1999/12/21 11:04:36 drochner Exp $ */
+/* $NetBSD: com.c,v 1.166 2000/01/23 21:06:01 soda Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -484,6 +484,10 @@
else
printf(": ns8250 or ns16450, no fifo\n");
bus_space_write_1(iot, ioh, com_fifo, 0);
+ if (ISSET(sc->sc_hwflags, COM_HW_TXFIFO_DISABLE)) {
+ sc->sc_fifolen = 1;
+ printf("%s: txfifo disabled\n", sc->sc_dev.dv_xname);
+ }
#ifdef COM_HAYESP
}
#endif
diff -r 4e30cde6dfa2 -r 9b4a5b205f57 sys/dev/ic/comvar.h
--- a/sys/dev/ic/comvar.h Sun Jan 23 21:05:02 2000 +0000
+++ b/sys/dev/ic/comvar.h Sun Jan 23 21:06:01 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: comvar.h,v 1.30 1999/02/03 23:20:33 mycroft Exp $ */
+/* $NetBSD: comvar.h,v 1.31 2000/01/23 21:06:01 soda Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@@ -53,6 +53,7 @@
#define COM_HW_DEV_OK 0x20
#define COM_HW_CONSOLE 0x40
#define COM_HW_KGDB 0x80
+#define COM_HW_TXFIFO_DISABLE 0x100
/* Buffer size for character buffer */
#define COM_RING_SIZE 2048
@@ -137,9 +138,6 @@
int com_activate __P((struct device *, enum devact));
#ifndef __GENERIC_SOFT_INTERRUPTS
-#if defined(arc)
-#define __NO_SOFT_SERIAL_INTERRUPT
-#endif
#ifdef __NO_SOFT_SERIAL_INTERRUPT
#define IPL_SERIAL IPL_TTY
#define splserial() spltty()
Home |
Main Index |
Thread Index |
Old Index