Changeset 1740 for Whitix/branches
- Timestamp:
- 01/03/09 16:25:53 (3 years ago)
- Files:
-
- 1 modified
-
Whitix/branches/netchannel/devices/net/pcnet.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/branches/netchannel/devices/net/pcnet.c
r1683 r1740 27 27 #include <print.h> 28 28 29 /* Defines */ 30 31 /* Resonable default values are 4 send buffers, and 16 receive uffers. */ 32 #define PCNET32_LOG_SEND_BUFFERS 4 33 #define PCNET32_LOG_RECV_BUFFERS 5 34 35 #define PCNET32_SEND_RING_SIZE (1 << (PCNET32_LOG_SEND_BUFFERS)) 36 #define PCNET32_RECV_RING_SIZE (1 << (PCNET32_LOG_RECV_BUFFERS)) 37 29 38 /* Structures */ 30 39 struct PcNetInitBlock … … 39 48 }; 40 49 50 /* Ring descriptors. Used by the card. */ 51 struct PcNetRecvHead 52 { 53 DWORD base; 54 WORD bufLen; 55 WORD status; 56 DWORD msgLen; 57 DWORD reserved; 58 }; 59 60 struct PcNetSendHead 61 { 62 DWORD base; 63 WORD length; /* Two's complement of length. */ 64 WORD status; 65 DWORD misc; 66 DWORD reserved; 67 }; 68 41 69 struct PcNetIoOps 42 70 { … … 136 164 memcpy(macAddr, promAddr, 6); 137 165 } 166 } 167 168 static int PcNetAllocRings(struct PcNetDevice* device) 169 { 170 /* Allocate the send and recv rings. */ 171 return 0; 138 172 } 139 173 … … 199 233 200 234 ret->initBlock->mode = 0x0003; 201 /* lens */235 ret->initBlock->lens = (4 << 12) | (5 << 4); 202 236 203 237 for (i = 0; i < 6; i++)
