Increase PCNet RX/TX buf count to 64.

This commit is contained in:
GutPuncher 2023-05-17 01:47:37 -04:00
parent 561f056c71
commit 6288c403e6
No known key found for this signature in database
GPG key ID: 38CE0A7B6841D1C7

View file

@ -73,8 +73,8 @@
#define PCNET_CTRL_IDON 8
#define PCNET_CTRL_RINT 10
#define PCNET_RX_BUFF_COUNT 32 // Linux & Shrine Driver use 32 and 8 for
#define PCNET_TX_BUFF_COUNT 8 // these, we could allow more if wanted.
#define PCNET_RX_BUFF_COUNT 64
#define PCNET_TX_BUFF_COUNT 64
#define PCNET_DESCRIPTORf_ENP 24
#define PCNET_DESCRIPTORf_STP 25
@ -417,8 +417,9 @@ U8 *PCNetInitBlockSetup()
U32 p_setup;
u_setup->mode = 0;
u_setup->rlen = 5 << 4;
u_setup->tlen = 3 << 4;
u_setup->rlen = ToI64(Log2(PCNET_RX_BUFF_COUNT)) << 4;
u_setup->tlen = ToI64(Log2(PCNET_TX_BUFF_COUNT)) << 4;
MemCopy(u_setup->mac, pcnet.mac_address, 6);
u_setup->reserved = 0;
MemSet(u_setup->ladr, 0, 8);