Rev 1164 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1164 | Rev 1192 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | jg @f |
42 | jg @f |
Line 43... | Line 43... | ||
43 | 43 | ||
44 | cmp ah, 4 |
44 | cmp ah, 4 |
Line -... | Line 45... | ||
- | 45 | je hook |
|
- | 46 | ||
- | 47 | cmp ah, 5 |
|
- | 48 | je reset |
|
- | 49 | ||
- | 50 | cmp ah, 6 |
|
45 | je hook |
51 | je unload |
46 | 52 | ||
47 | jmp still |
53 | jmp still |
48 | @@: |
- | |
49 | shr eax, 16 |
- | |
50 | mov dword[MAC],0 |
54 | @@: |
Line 51... | Line 55... | ||
51 | mov word [MAC+4],0 |
55 | shr eax, 16 |
52 | mov word [selected], ax |
56 | mov word [selected], ax |
Line 95... | Line 99... | ||
95 | 99 | ||
Line 96... | Line 100... | ||
96 | mcall 68, 17, IOCTL |
100 | mcall 68, 17, IOCTL |
Line -... | Line 101... | ||
- | 101 | ||
- | 102 | mov byte[drivernumber], al |
|
97 | 103 | ||
Line 98... | Line 104... | ||
98 | mov byte[drivernumber], al |
104 | reset: |
Line -... | Line 105... | ||
- | 105 | movzx ebx, byte[drivernumber] |
|
- | 106 | mcall 73,,2 |
|
99 | 107 | ||
- | 108 | ret |
|
- | 109 | ||
Line 100... | Line 110... | ||
100 | printhdwaddr: |
110 | unload: |
101 | 111 | movzx ebx, byte[drivernumber] |
|
102 | call draw_window |
112 | mcall 73,,3 |
Line 103... | Line 113... | ||
103 | 113 | ||
104 | jmp still |
114 | ret |
105 | 115 | ||
Line 106... | Line 116... | ||
106 | draw_window: |
116 | draw_window: |
Line 107... | Line 117... | ||
107 | mcall 12, 1 ; start of draw |
117 | mcall 12, 1 ; start of draw |
108 | mcall 0, dword [Form], dword [Form + 4], 0x13ffffff, 0x805080d0, title |
118 | mcall 0, dword [Form], dword [Form + 4], 0x13ffffff, 0x805080d0, title |
Line 109... | Line 119... | ||
109 | 119 | ||
Line 110... | Line -... | ||
110 | mcall 73, 0 |
- | |
111 | mov ecx, eax |
120 | ; mcall 73, 1, |
112 | mcall 47, 1 shl 18, , 50 shl 16 + 10, 0x00000000 |
- | |
113 | 121 | ; mov ecx, eax |
|
114 | call Get_PCI_Info ; get pci version and last bus, scan for and draw each pci device |
122 | ; mcall 47, 1 shl 18, , 50 shl 16 + 10, 0x00000000 |
Line 115... | Line 123... | ||
115 | 123 | ||
116 | cmp edx, 20 shl 16 + 110 |
124 | call Get_PCI_Info ; get pci version and last bus, scan for and draw each pci device |
117 | je .nonefound |
- | |
118 | - | ||
119 | mcall 4, 20 shl 16 + 100, 1 shl 31 + 0x00000000 , caption |
- | |
120 | 125 | ||
Line 121... | Line 126... | ||
121 | mcall 8, 122 shl 16 + 100, 50 shl 16 + 18, 0x00000004, 0x00007f00 |
126 | cmp edx, 20 shl 16 + 110 |
122 | mcall ,, 70 shl 16 + 18, 0x00000005, 0x007f0000 |
- | |
123 | 127 | je .nonefound |
|
124 | mcall 4, 137 shl 16 + 57, 1 shl 31 + 0x00ffffff , btn_start |
- | |
125 | mcall , 140 shl 16 + 77, , btn_stop |
128 | |
126 | - | ||
127 | mcall , 240 shl 16 + 77, 1 shl 31 + 0x00000000 , lbl_hdw_addr |
- | |
128 | mcall , 312 shl 16 + 57, , lbl_type |
- | |
129 | add ebx, 38 shl 16 |
- | |
130 | cmp byte [type],type_ethernet |
- | |
131 | jne @f |
- | |
132 | mcall , , 1 shl 31 + 0x00000000, lbl_ethernet |
- | |
133 | - | ||
134 | mcall 8,345 shl 16 + 17, 73 shl 16 + 14, 0x00000006, 0x00aaaa00 |
- | |
135 | mcall ,365 shl 16 + 17, , 0x00000007 |
- | |
136 | mcall ,385 shl 16 + 17, , 0x00000008 |
- | |
137 | mcall ,405 shl 16 + 17, , 0x00000009 |
- | |
138 | mcall ,425 shl 16 + 17, , 0x0000000a |
- | |
139 | mcall ,445 shl 16 + 17, , 0x0000000b |
- | |
140 | movzx ecx,byte[MAC] |
- | |
141 | mcall 47, 1 shl 17 + 1 shl 8,,349 shl 16 + 77, 0x000022cc |
- | |
142 | movzx ecx,byte[MAC+1] |
- | |
143 | add edx, 20 shl 16 |
- | |
Line 144... | Line 129... | ||
144 | mcall |
129 | mcall 4, 20 shl 16 + 100, 1 shl 31 + 0x00000000 , caption |
Line 145... | Line -... | ||
145 | movzx ecx,byte[MAC+2] |
- | |
146 | add edx, 20 shl 16 |
- | |
147 | mcall |
130 | |
Line 148... | Line 131... | ||
148 | movzx ecx,byte[MAC+3] |
131 | mov ax , [selected] |
149 | add edx, 20 shl 16 |
132 | test ax, ax |
150 | mcall |
133 | jz .done |
Line 409... | Line 392... | ||
409 | dw 100 ; window y start |
392 | dw 100 ; window y start |
Line 410... | Line 393... | ||
410 | 393 | ||
Line 411... | Line 394... | ||
411 | title db 'Network Driver Control Center', 0 |
394 | title db 'Network Driver Control Center', 0 |
412 | 395 | ||
413 | caption db 'Vendor Device Bus Dev Rev IRQ Company Description DRIVER',0 |
396 | caption db 'Vendor Device Bus Dev Rev IRQ Company Description DRIVER',0 |
414 | lbl_1 db 'Hardware control',0 |
397 | ;lbl_1 db 'Hardware control',0 |
- | 398 | nonefound db 'No compatible devices were found!',0 |
|
415 | nonefound db 'No compatible devices were found!',0 |
399 | btn_start db 'Start device',0 |
416 | btn_start db 'Start driver',0 |
400 | btn_reset db 'Reset device',0 |
417 | btn_stop db 'Stop driver',0 |
401 | btn_stop db 'Stop device',0 |
418 | lbl_hdw_addr db 'hardware address:',0 |
402 | ;lbl_hdw_addr db 'hardware address:',0 |
419 | lbl_type db 'type:',0 |
403 | ;lbl_type db 'type:',0 |
420 | lbl_none db 'none',0 |
404 | lbl_none db 'none',0 |
- | 405 | ;lbl_unknown db 'unknown',0 |
|
- | 406 | ;lbl_ethernet db 'ethernet',0 |
|
- | 407 | ||
- | 408 | devicename db 'test' |
|
Line 421... | Line 409... | ||
421 | lbl_unknown db 'unknown',0 |
409 | rb 64 |
422 | lbl_ethernet db 'ethernet',0 |
410 | db 0 |
423 | 411 |