summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-14 16:55:50 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-14 16:55:50 +0000
commite013fe3cd07bd9e1025d10c7d3d3034f8439446d (patch)
tree98c04942333395171f8ee8527c4d34fb019ed541
parent7ba7108101eb14151ea1aed54365c7d376a92493 (diff)
downloadrtems-e013fe3cd07bd9e1025d10c7d3d3034f8439446d.tar.bz2
If 0 out the code which touches the chip in questionable ways for processing
a giant packet.
-rw-r--r--c/src/lib/libbsp/powerpc/dmv177/sonic/sonic.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/dmv177/sonic/sonic.c b/c/src/lib/libbsp/powerpc/dmv177/sonic/sonic.c
index 3e2c398c89..e6006298aa 100644
--- a/c/src/lib/libbsp/powerpc/dmv177/sonic/sonic.c
+++ b/c/src/lib/libbsp/powerpc/dmv177/sonic/sonic.c
@@ -752,8 +752,10 @@ SONIC_STATIC void sonic_rda_wait(
/*
* Check my interpretation of the SONIC manual.
*/
+#if 0
if (sonic_read_register( rp, SONIC_REG_CR ) & CR_RXEN)
rtems_panic ("SONIC RBAE/RXEN");
+#endif
/*
* Update statistics
@@ -771,6 +773,7 @@ SONIC_STATIC void sonic_rda_wait(
* driver has to move the RRP back *two* entries to
* reuse the receive buffer holding the giant packet.
*/
+#if 0
for (i = 0 ; i < 2 ; i++) {
if (sonic_read_register( rp, SONIC_REG_RRP ) ==
sonic_read_register( rp, SONIC_REG_RSA ))
@@ -785,12 +788,15 @@ SONIC_STATIC void sonic_rda_wait(
sonic_read_register(rp, SONIC_REG_RRP) - sizeof(ReceiveResource_t)
);
}
+#endif
/*
* Restart reception
*/
sonic_write_register( rp, SONIC_REG_ISR, ISR_RBAE );
+#if 0
sonic_write_register( rp, SONIC_REG_CR, CR_RXEN );
+#endif
}
/*