Rev 9049 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9049 | Rev 9917 | ||
---|---|---|---|
Line 19... | Line 19... | ||
19 | ;; GNU GENERAL PUBLIC LICENSE ;; |
19 | ;; GNU GENERAL PUBLIC LICENSE ;; |
20 | ;; Version 2, June 1991 ;; |
20 | ;; Version 2, June 1991 ;; |
21 | ;; ;; |
21 | ;; ;; |
22 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
22 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 23... | Line 23... | ||
23 | 23 | ||
Line 24... | Line 24... | ||
24 | $Revision: 9049 $ |
24 | $Revision: 9917 $ |
25 | 25 | ||
26 | uglobal |
26 | uglobal |
27 | net_10ms dd ? |
27 | net_10ms dd ? |
Line 777... | Line 777... | ||
777 | 777 | ||
778 | cmp bl, 255 |
778 | cmp bl, 255 |
Line 779... | Line 779... | ||
779 | jne @f |
779 | jne @f |
780 | 780 | ||
781 | mov eax, [net_device_count] |
781 | mov eax, [net_device_count] |
Line 782... | Line 782... | ||
782 | mov [esp+32], eax |
782 | mov [esp + SYSCALL_STACK.eax], eax |
783 | ret |
783 | ret |
784 | 784 | ||
Line 822... | Line 822... | ||
822 | 822 | ||
Line 823... | Line 823... | ||
823 | .number = ($ - .table) / 4 - 1 |
823 | .number = ($ - .table) / 4 - 1 |
824 | 824 | ||
825 | .get_type: |
825 | .get_type: |
826 | mov eax, [eax + NET_DEVICE.device_type] |
826 | mov eax, [eax + NET_DEVICE.device_type] |
Line 827... | Line 827... | ||
827 | mov [esp+32], eax |
827 | mov [esp + SYSCALL_STACK.eax], eax |
828 | ret |
828 | ret |
829 | 829 | ||
Line 835... | Line 835... | ||
835 | 835 | ||
836 | mov ecx, 64/4 ; max length |
836 | mov ecx, 64/4 ; max length |
Line 837... | Line 837... | ||
837 | rep movsd |
837 | rep movsd |
838 | 838 | ||
839 | xor eax, eax |
839 | xor eax, eax |
Line 840... | Line 840... | ||
840 | mov [esp+32], eax |
840 | mov [esp + SYSCALL_STACK.eax], eax |
841 | ret |
841 | ret |
842 | 842 | ||
843 | .reset: |
843 | .reset: |
Line 844... | Line 844... | ||
844 | call [eax + NET_DEVICE.reset] |
844 | call [eax + NET_DEVICE.reset] |
845 | mov [esp+32], eax |
845 | mov [esp + SYSCALL_STACK.eax], eax |
846 | ret |
846 | ret |
847 | 847 | ||
Line 848... | Line 848... | ||
848 | .stop: |
848 | .stop: |
849 | call [eax + NET_DEVICE.unload] |
849 | call [eax + NET_DEVICE.unload] |
850 | mov [esp+32], eax |
850 | mov [esp + SYSCALL_STACK.eax], eax |
Line 851... | Line 851... | ||
851 | ret |
851 | ret |
852 | 852 | ||
853 | 853 | ||
854 | .get_ptr: |
854 | .get_ptr: |
Line 855... | Line 855... | ||
855 | mov [esp+32], eax |
855 | mov [esp + SYSCALL_STACK.eax], eax |
856 | ret |
856 | ret |
857 | 857 | ||
858 | 858 | ||
Line 859... | Line 859... | ||
859 | .get_drv_name: |
859 | .get_drv_name: |
860 | xor eax, eax |
860 | xor eax, eax |
861 | mov [esp+32], eax |
861 | mov [esp + SYSCALL_STACK.eax], eax |
862 | ret |
862 | ret |
Line 863... | Line 863... | ||
863 | 863 | ||
864 | .packets_tx: |
864 | .packets_tx: |
865 | mov eax, [eax + NET_DEVICE.packets_tx] |
865 | mov eax, [eax + NET_DEVICE.packets_tx] |
866 | mov [esp+32], eax |
866 | mov [esp + SYSCALL_STACK.eax], eax |
867 | ret |
867 | ret |
868 | 868 | ||
Line 869... | Line 869... | ||
869 | .packets_rx: |
869 | .packets_rx: |
870 | mov eax, [eax + NET_DEVICE.packets_rx] |
870 | mov eax, [eax + NET_DEVICE.packets_rx] |
871 | mov [esp+32], eax |
871 | mov [esp + SYSCALL_STACK.eax], eax |
872 | ret |
872 | ret |
873 | 873 | ||
874 | .bytes_tx: |
874 | .bytes_tx: |
Line 875... | Line 875... | ||
875 | mov ebx, dword[eax + NET_DEVICE.bytes_tx + 4] |
875 | mov ebx, dword[eax + NET_DEVICE.bytes_tx + 4] |
876 | mov [esp+20], ebx |
876 | mov [esp + SYSCALL_STACK.ebx], ebx |
877 | mov eax, dword[eax + NET_DEVICE.bytes_tx] |
877 | mov eax, dword[eax + NET_DEVICE.bytes_tx] |
878 | mov [esp+32], eax |
878 | mov [esp + SYSCALL_STACK.eax], eax |
Line 879... | Line 879... | ||
879 | ret |
879 | ret |
880 | 880 | ||
881 | .bytes_rx: |
881 | .bytes_rx: |
882 | mov ebx, dword[eax + NET_DEVICE.bytes_rx + 4] |
882 | mov ebx, dword[eax + NET_DEVICE.bytes_rx + 4] |
Line 883... | Line 883... | ||
883 | mov [esp+20], ebx |
883 | mov [esp + SYSCALL_STACK.ebx], ebx |
884 | mov eax, dword[eax + NET_DEVICE.bytes_rx] |
884 | mov eax, dword[eax + NET_DEVICE.bytes_rx] |
885 | mov [esp+32], eax |
885 | mov [esp + SYSCALL_STACK.eax], eax |
886 | ret |
886 | ret |
Line 887... | Line 887... | ||
887 | 887 | ||
888 | .packets_tx_err: |
888 | .packets_tx_err: |
889 | mov eax, [eax + NET_DEVICE.packets_tx_err] |
889 | mov eax, [eax + NET_DEVICE.packets_tx_err] |
890 | mov [esp+32], eax |
890 | mov [esp + SYSCALL_STACK.eax], eax |
Line 891... | Line 891... | ||
891 | ret |
891 | ret |
892 | 892 | ||
893 | .packets_tx_drop: |
893 | .packets_tx_drop: |
894 | mov eax, [eax + NET_DEVICE.packets_tx_drop] |
894 | mov eax, [eax + NET_DEVICE.packets_tx_drop] |
Line 895... | Line 895... | ||
895 | mov [esp+32], eax |
895 | mov [esp + SYSCALL_STACK.eax], eax |
896 | ret |
896 | ret |
897 | 897 | ||
898 | .packets_tx_ovr: |
898 | .packets_tx_ovr: |
Line 899... | Line 899... | ||
899 | mov eax, [eax + NET_DEVICE.packets_tx_ovr] |
899 | mov eax, [eax + NET_DEVICE.packets_tx_ovr] |
900 | mov [esp+32], eax |
900 | mov [esp + SYSCALL_STACK.eax], eax |
901 | ret |
901 | ret |
902 | 902 | ||
Line 903... | Line 903... | ||
903 | .packets_rx_err: |
903 | .packets_rx_err: |
904 | mov eax, [eax + NET_DEVICE.packets_rx_err] |
904 | mov eax, [eax + NET_DEVICE.packets_rx_err] |
905 | mov [esp+32], eax |
905 | mov [esp + SYSCALL_STACK.eax], eax |
906 | ret |
906 | ret |
Line 907... | Line 907... | ||
907 | 907 | ||
Line 977... | Line 977... | ||
977 | 977 | ||
978 | .doesnt_exist: |
978 | .doesnt_exist: |
Line 979... | Line 979... | ||
979 | mov eax, -1 |
979 | mov eax, -1 |
980 | 980 | ||
981 | .return: |
981 | .return: |