network: Implement memory wrapping in dp8390 based on the total memory size. Fixes malformed / blank packets on netware.

This commit is contained in:
cold-brewed
2023-06-06 12:33:58 -04:00
parent ef2b84ed63
commit 1df19383d3
2 changed files with 8 additions and 4 deletions

View File

@@ -178,7 +178,10 @@ typedef struct {
0xFF. */
id1; /* 0x70 for the RTL8019AS, 0x43 for the
RTL8029AS, otherwise 0xFF. */
int mem_size, mem_start, mem_end;
uint32_t mem_size;
uint32_t mem_start;
uint32_t mem_end;
uint32_t mem_wrap;
int tx_timer_index;
int tx_timer_active;