Rev 3545 | Rev 3855 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3545 | Rev 3557 | ||
---|---|---|---|
Line 369... | Line 369... | ||
369 | cmp [state], 1 |
369 | cmp [state], 1 |
370 | jne .exit |
370 | jne .exit |
Line 371... | Line 371... | ||
371 | 371 | ||
Line 372... | Line 372... | ||
372 | .entry: |
372 | .entry: |
373 | 373 | ||
374 | DEBUGF 1,"Loading %s driver\n", my_service |
374 | DEBUGF 2,"Loading %s driver\n", my_service |
Line 375... | Line 375... | ||
375 | stdcall RegService, my_service, service_proc |
375 | stdcall RegService, my_service, service_proc |
376 | ret |
376 | ret |
Line 1037... | Line 1037... | ||
1037 | call [device.write_csr] |
1037 | call [device.write_csr] |
Line 1038... | Line 1038... | ||
1038 | 1038 | ||
1039 | ; get next descriptor 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, ... |
1039 | ; get next descriptor 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, ... |
1040 | inc [device.cur_tx] |
1040 | inc [device.cur_tx] |
1041 | and [device.cur_tx], TX_RING_SIZE - 1 |
1041 | and [device.cur_tx], TX_RING_SIZE - 1 |
Line 1042... | Line 1042... | ||
1042 | DEBUGF 2," - Packet Sent! " |
1042 | DEBUGF 1," - Packet Sent! " |
1043 | 1043 | ||
1044 | ; Update stats |
1044 | ; Update stats |
1045 | inc [device.packets_tx] |
1045 | inc [device.packets_tx] |
1046 | mov eax, [esp+8] |
1046 | mov eax, [esp+8] |
Line 1047... | Line 1047... | ||
1047 | add dword [device.bytes_tx], eax |
1047 | add dword [device.bytes_tx], eax |
1048 | adc dword [device.bytes_tx + 4], 0 |
1048 | adc dword [device.bytes_tx + 4], 0 |
1049 | 1049 | ||
1050 | .finish: |
1050 | .finish: |
Line 1051... | Line 1051... | ||
1051 | DEBUGF 2," - Done!\n" |
1051 | DEBUGF 1," - Done!\n" |
1052 | xor eax, eax |
1052 | xor eax, eax |