Rev 3880 | Rev 4467 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3880 | Rev 4334 | ||
---|---|---|---|
Line 2226... | Line 2226... | ||
2226 | out dx, ax |
2226 | out dx, ax |
2227 | ; check for master operation in progress |
2227 | ; check for master operation in progress |
2228 | set_io REG_MASTER_STATUS |
2228 | set_io REG_MASTER_STATUS |
2229 | in ax, dx |
2229 | in ax, dx |
2230 | test ah, 0x80 |
2230 | test ah, 0x80 |
2231 | jnz .finish ; no DMA for sending |
2231 | jnz .fail ; no DMA for sending |
2232 | ; program frame address to be sent |
2232 | ; program frame address to be sent |
2233 | set_io REG_MASTER_ADDRESS |
2233 | set_io REG_MASTER_ADDRESS |
2234 | mov eax, [esp+4] |
2234 | mov eax, [esp+4] |
2235 | call GetPgAddr |
2235 | call GetPgAddr |
2236 | out dx, eax |
2236 | out dx, eax |
Line 2242... | Line 2242... | ||
2242 | ; start DMA Down |
2242 | ; start DMA Down |
2243 | set_io REG_COMMAND |
2243 | set_io REG_COMMAND |
2244 | mov ax, (10100b shl 11) + 1 ; StartDMADown |
2244 | mov ax, (10100b shl 11) + 1 ; StartDMADown |
2245 | out dx, ax |
2245 | out dx, ax |
2246 | .finish: |
2246 | .finish: |
2247 | call KernelFree |
- | |
2248 | add esp, 4 |
2247 | xor eax, eax |
2249 | ret |
2248 | ret 8 |
2250 | - | ||
Line -... | Line 2249... | ||
- | 2249 | ||
- | 2250 | .fail: |
|
- | 2251 | stdcall KernelFree, [esp+4] |
|
- | 2252 | or eax, -1 |
|
Line 2251... | Line 2253... | ||
2251 | 2253 | ret 8 |
|
2252 | 2254 | ||
2253 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2255 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2254 | ;; ;; |
2256 | ;; ;; |