Rev 2049 | Rev 2106 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2049 | Rev 2050 | ||
---|---|---|---|
Line 573... | Line 573... | ||
573 | 573 | ||
574 | mov eax, [user_data] |
574 | mov eax, [user_data] |
575 | mov [ecx+IRQH.handler], edx |
575 | mov [ecx+IRQH.handler], edx |
Line 576... | Line -... | ||
576 | mov [ecx+IRQH.data], eax |
- | |
577 | - | ||
578 | mov eax, [irqh_set] |
- | |
579 | bt [pci_irq_set], ebx ;check irq type |
- | |
580 | jc .pci_irq |
- | |
581 | - | ||
582 | .isa_irq: |
- | |
583 | bts eax, ebx ;check for installed handler |
- | |
584 | jc .fail |
- | |
585 | - | ||
586 | .set_handler: |
- | |
587 | mov [irqh_set], eax |
576 | mov [ecx+IRQH.data], eax |
588 | 577 | ||
Line 589... | Line 578... | ||
589 | lea edx, [irqh_tab+ebx*8] |
578 | lea edx, [irqh_tab+ebx*8] |
Line 596... | Line 585... | ||
596 | .err: |
585 | .err: |
597 | pop ebx |
586 | pop ebx |
598 | mov eax, [.irqh] |
587 | mov eax, [.irqh] |
599 | ret |
588 | ret |
Line 600... | Line -... | ||
600 | - | ||
601 | .pci_irq: |
- | |
602 | bts ecx, ebx ;check for installed handler |
- | |
603 | jmp .set_handler |
- | |
604 | 589 | ||
605 | endp><><<> |
- |