Rev 1254 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1254 | Rev 1263 | ||
---|---|---|---|
Line 8... | Line 8... | ||
8 | ;; ;; |
8 | ;; ;; |
9 | ;; Status: under construction ;; |
9 | ;; Status: under construction ;; |
10 | ;; ;; |
10 | ;; ;; |
11 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
11 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 12... | Line 12... | ||
12 | 12 | ||
Line 13... | Line 13... | ||
13 | ; $Revision: 1254 $ |
13 | ; $Revision: 1263 $ |
Line 14... | Line 14... | ||
14 | 14 | ||
Line 632... | Line 632... | ||
632 | call GetPgAddr |
632 | call GetPgAddr |
633 | .rx_init: |
633 | .rx_init: |
634 | mov [edi + buf_head.base], eax |
634 | mov [edi + buf_head.base], eax |
635 | mov [edi + buf_head.length], PCNET_PKT_BUF_SZ_NEG |
635 | mov [edi + buf_head.length], PCNET_PKT_BUF_SZ_NEG |
636 | mov [edi + buf_head.status], 0x8000 |
636 | mov [edi + buf_head.status], 0x8000 |
- | 637 | and dword [edi + buf_head.msg_length], 0 |
|
- | 638 | and dword [edi + buf_head.reserved], 0 |
|
637 | add eax, PCNET_PKT_BUF_SZ |
639 | add eax, PCNET_PKT_BUF_SZ |
638 | ; inc eax |
640 | ; inc eax |
639 | add edi, buf_head.size |
641 | add edi, buf_head.size |
640 | loop .rx_init |
642 | loop .rx_init |
Line 643... | Line 645... | ||
643 | mov ecx, PCNET_TX_RING_SIZE |
645 | mov ecx, PCNET_TX_RING_SIZE |
644 | mov eax, [ebx + device.tx_buffer] |
646 | mov eax, [ebx + device.tx_buffer] |
645 | call GetPgAddr |
647 | call GetPgAddr |
646 | .tx_init: |
648 | .tx_init: |
647 | mov [edi + buf_head.base], eax |
649 | mov [edi + buf_head.base], eax |
- | 650 | and dword [edi + buf_head.length], 0 |
|
- | 651 | and dword [edi + buf_head.msg_length], 0 |
|
- | 652 | and dword [edi + buf_head.reserved], 0 |
|
648 | add eax, PCNET_PKT_BUF_SZ |
653 | add eax, PCNET_PKT_BUF_SZ |
649 | add edi, buf_head.size |
654 | add edi, buf_head.size |
650 | loop .tx_init |
655 | loop .tx_init |
Line 651... | Line 656... | ||
651 | 656 | ||
Line 1144... | Line 1149... | ||
1144 | ;; ;; |
1149 | ;; ;; |
1145 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1150 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 1146... | Line 1151... | ||
1146 | 1151 | ||
1147 | align 4 |
1152 | align 4 |
1148 | transmit: |
1153 | transmit: |
1149 | DEBUGF 1,"Transmitting packet, buffer:%x, size:%u\n",[esp],[esp+4] |
1154 | DEBUGF 1,"Transmitting packet, buffer:%x, size:%u\n",[esp+4],[esp+8] |
1150 | mov eax, [esp+4] |
1155 | mov eax, [esp+4] |
1151 | DEBUGF 1,"To: %x-%x-%x-%x-%x-%x From: %x-%x-%x-%x-%x-%x Type:%x%x\n",\ |
1156 | DEBUGF 1,"To: %x-%x-%x-%x-%x-%x From: %x-%x-%x-%x-%x-%x Type:%x%x\n",\ |
1152 | [eax+00]:2,[eax+01]:2,[eax+02]:2,[eax+03]:2,[eax+04]:2,[eax+05]:2,\ |
1157 | [eax+00]:2,[eax+01]:2,[eax+02]:2,[eax+03]:2,[eax+04]:2,[eax+05]:2,\ |
1153 | [eax+06]:2,[eax+07]:2,[eax+08]:2,[eax+09]:2,[eax+10]:2,[eax+11]:2,\ |
1158 | [eax+06]:2,[eax+07]:2,[eax+08]:2,[eax+09]:2,[eax+10]:2,[eax+11]:2,\ |