mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 23:10:32 +00:00
Increase PCNet RX/TX buf count to 64.
This commit is contained in:
parent
561f056c71
commit
6288c403e6
1 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue