Rev 1254 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1254 | Rev 1377 | ||
---|---|---|---|
Line 21... | Line 21... | ||
21 | ;; Updates: ;; |
21 | ;; Updates: ;; |
22 | ;; Revision Look up table and SIS635 Mac Address by Jarek Pelczar ;; |
22 | ;; Revision Look up table and SIS635 Mac Address by Jarek Pelczar ;; |
23 | ;; ;; |
23 | ;; ;; |
24 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
24 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 25... | Line 25... | ||
25 | 25 | ||
Line 26... | Line 26... | ||
26 | ; $Revision: 1254 $ |
26 | ; $Revision: 1377 $ |
Line 27... | Line 27... | ||
27 | 27 | ||
Line 131... | Line 131... | ||
131 | service_proc: |
131 | service_proc: |
132 | ; 1. Get parameter from the stack: [esp+4] is the first parameter, |
132 | ; 1. Get parameter from the stack: [esp+4] is the first parameter, |
133 | ; pointer to IOCTL structure. |
133 | ; pointer to IOCTL structure. |
134 | mov edx, [esp+4] ; edx -> IOCTL |
134 | mov edx, [esp+4] ; edx -> IOCTL |
135 | ; 2. Get request code and select a handler for the code. |
135 | ; 2. Get request code and select a handler for the code. |
136 | mov eax, [ebx+IOCTL.io_code] |
136 | mov eax, [edx+IOCTL.io_code] |
137 | test eax, eax ; check for SRV_GETVERSION |
137 | test eax, eax ; check for SRV_GETVERSION |
138 | jnz @f |
138 | jnz @f |
139 | ; 3. This is SRV_GETVERSION request, no input, 4 bytes output, API_VERSION. |
139 | ; 3. This is SRV_GETVERSION request, no input, 4 bytes output, API_VERSION. |
140 | ; 3a. Output size must be at least 4 bytes. |
140 | ; 3a. Output size must be at least 4 bytes. |
141 | cmp [edx+IOCTL.out_size], 4 |
141 | cmp [edx+IOCTL.out_size], 4 |