Author: cgutman
Date: Fri Jul 5 08:34:05 2013
New Revision: 59430
URL:
http://svn.reactos.org/svn/reactos?rev=59430&view=rev
Log:
[RTL8139]
- Switch back to a 32K receive window, because WRAP doesn't work with a 64K window and
our receive code depends on that functionality
Modified:
trunk/reactos/drivers/network/dd/rtl8139/nic.h
Modified: trunk/reactos/drivers/network/dd/rtl8139/nic.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/dd/rtl8139…
==============================================================================
--- trunk/reactos/drivers/network/dd/rtl8139/nic.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/dd/rtl8139/nic.h [iso-8859-1] Fri Jul 5 08:34:05 2013
@@ -12,8 +12,10 @@
#define RESOURCE_LIST_TAG 'Rltr'
#define MAX_RESET_ATTEMPTS 25
-#define RECEIVE_BUFFER_SIZE (65536)
-#define FULL_RECEIVE_BUFFER_SIZE (65536 + 16 + 2048)
+#define RECEIVE_BUFFER_SIZE (32768)
+// The full receive window requires 16 bytes of padding
+// plus 2048 for receive overflows (because of WRAP)
+#define FULL_RECEIVE_BUFFER_SIZE (32768 + 16 + 2048)
#define RECV_CRC_LENGTH 4
#define MINIMUM_FRAME_SIZE 60
@@ -21,8 +23,8 @@
#define DRIVER_VERSION 1
-// 1/2 packet early RX, 512 byte FIFO threshold, 64K RX buffer, unlimited DMA bursts,
WRAP
-#define RC_VAL (0x800BF80)
+// 1/2 packet early RX, 512 byte FIFO threshold, 32K RX buffer, unlimited DMA bursts,
WRAP
+#define RC_VAL (0x800B780)
// 2048 byte DMA bursts
#define TC_VAL (0x700)