Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Make the DEFPA run under the macppc port (tested on a B&...



details:   https://anonhg.NetBSD.org/src/rev/2255db6661cf
branches:  trunk
changeset: 476545:2255db6661cf
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Sep 19 22:02:37 1999 +0000

description:
Make the DEFPA run under the macppc port (tested on a B&W G3).  Add it to
the GENERIC config file.

diffstat:

 sys/arch/macppc/conf/GENERIC |  3 ++-
 sys/dev/ic/pdq.c             |  6 +++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r 2cf0d72d8fec -r 2255db6661cf sys/arch/macppc/conf/GENERIC
--- a/sys/arch/macppc/conf/GENERIC      Sun Sep 19 21:50:05 1999 +0000
+++ b/sys/arch/macppc/conf/GENERIC      Sun Sep 19 22:02:37 1999 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: GENERIC,v 1.36 1999/09/09 12:33:46 augustss Exp $
+#      $NetBSD: GENERIC,v 1.37 1999/09/19 22:02:38 matt Exp $
 #
 # POWERMAC config file
 #
@@ -111,6 +111,7 @@
 ppb*   at pci? dev ? function ?        # PCI-PCI bridges
 
 de*    at pci? dev ? function ?        # DEC 21x4x-based Ethernet
+fpa*   at pci? dev ? function ?        # DEC PCI FDDI (DEFPA) Controller
 ep*    at pci? dev ? function ?        # 3Com 3c59x
 ne*    at pci? dev ? function ?        # NE2000-compatible Ethernet
 adv*   at pci? dev ? function ?        # AdvanSys 1200[A,B], 9xx[U,UA] SCSI
diff -r 2cf0d72d8fec -r 2255db6661cf sys/dev/ic/pdq.c
--- a/sys/dev/ic/pdq.c  Sun Sep 19 21:50:05 1999 +0000
+++ b/sys/dev/ic/pdq.c  Sun Sep 19 22:02:37 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pdq.c,v 1.24 1998/09/28 20:37:12 matt Exp $    */
+/*     $NetBSD: pdq.c,v 1.25 1999/09/19 22:02:37 matt Exp $    */
 
 /*-
  * Copyright (c) 1995,1996 Matt Thomas <matt%3am-software.com@localhost>
@@ -1244,7 +1244,11 @@
     pdq_do_port_control(csrs, PDQ_PCTL_CONSUMER_BLOCK);
 
     PDQ_CSR_WRITE(csrs, csr_port_data_b, 0);
+#if !defined(BYTE_ORDER) || BYTE_ORDER == LITTLE_ENDIAN
     PDQ_CSR_WRITE(csrs, csr_port_data_a, pdq->pdq_pa_descriptor_block | PDQ_DMA_INIT_LW_BSWAP_DATA);
+#else
+    PDQ_CSR_WRITE(csrs, csr_port_data_a, pdq->pdq_pa_descriptor_block | PDQ_DMA_INIT_LW_BSWAP_LITERAL);
+#endif
     pdq_do_port_control(csrs, PDQ_PCTL_DMA_INIT);
 
     for (cnt = 0; cnt < 1000; cnt++) {



Home | Main Index | Thread Index | Old Index