Rev 1536 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1536 | Rev 1733 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | ;; GNU GENERAL PUBLIC LICENSE ;; |
12 | ;; GNU GENERAL PUBLIC LICENSE ;; |
13 | ;; Version 2, June 1991 ;; |
13 | ;; Version 2, June 1991 ;; |
14 | ;; ;; |
14 | ;; ;; |
15 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
15 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 16... | Line 16... | ||
16 | 16 | ||
Line 17... | Line 17... | ||
17 | $Revision: 1536 $ |
17 | $Revision: 1733 $ |
18 | 18 | ||
19 | struct ETH_FRAME |
19 | struct ETH_FRAME |
20 | .DstMAC dp ? ; destination MAC-address |
20 | .DstMAC dp ? ; destination MAC-address |
Line 203... | Line 203... | ||
203 | cmp bh, MAX_NET_DEVICES |
203 | cmp bh, MAX_NET_DEVICES |
204 | jg .error |
204 | jg .error |
205 | movzx eax, bh |
205 | movzx eax, bh |
206 | shl eax, 2 |
206 | shl eax, 2 |
Line 207... | Line -... | ||
207 | - | ||
208 | cmp bl, 7 |
- | |
209 | jz .out_queue |
- | |
210 | cmp bl, 6 |
- | |
211 | jz .in_queue |
- | |
212 | 207 | ||
213 | mov eax, dword [NET_DRV_LIST + eax] |
208 | mov eax, dword [NET_DRV_LIST + eax] |
214 | cmp [eax + NET_DEVICE.type], NET_TYPE_ETH |
209 | cmp [eax + NET_DEVICE.type], NET_TYPE_ETH |
Line 215... | Line 210... | ||
215 | jne .error |
210 | jne .error |
Line 264... | Line 259... | ||
264 | push ecx |
259 | push ecx |
265 | push dx |
260 | push dx |
266 | call [eax + ETH_DEVICE.set_MAC] |
261 | call [eax + ETH_DEVICE.set_MAC] |
267 | ret |
262 | ret><>><>><>><> |
Line 268... | Line -... | ||
268 | - | ||
269 | .in_queue: |
- | |
270 | if ETH_QUEUE |
- | |
271 | add eax, ETH_IN_QUEUE |
- | |
272 | mov eax, [eax + queue.size] |
- | |
273 | else |
- | |
274 | or eax, -1 |
- | |
275 | end if |
- | |
276 | ret |
- | |
277 | - | ||
278 | .out_queue: |
- | |
279 | if ETH_QUEUE |
- | |
280 | add eax, ETH_OUT_QUEUE |
- | |
281 | mov eax, [eax + queue.size] |
- | |
282 | else |
- | |
283 | or eax, -1 |
- | |
284 | end if |
- | |
285 | ret><>><>><>><> |
263 |