Rev 3788 | Rev 4334 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3788 | Rev 3855 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | 23 | ||
Line 24... | Line 24... | ||
24 | MAX_DEVICES = 16 |
24 | MAX_DEVICES = 16 |
25 | 25 | ||
26 | DEBUG = 1 |
26 | DEBUG = 1 |
Line 27... | Line 27... | ||
27 | __DEBUG__ = 1 |
27 | __DEBUG__ = 1 |
Line 28... | Line 28... | ||
28 | __DEBUG_LEVEL__ = 2 |
28 | __DEBUG_LEVEL__ = 2 ; 1 = verbose, 2 = errors only |
Line 289... | Line 289... | ||
289 | cmp [state], 1 |
289 | cmp [state], 1 |
290 | jne .exit |
290 | jne .exit |
Line 291... | Line 291... | ||
291 | 291 | ||
Line 292... | Line 292... | ||
292 | .entry: |
292 | .entry: |
293 | 293 | ||
294 | DEBUGF 2,"Loading %s driver\n", my_service |
294 | DEBUGF 1,"Loading driver\n" |
Line 295... | Line 295... | ||
295 | stdcall RegService, my_service, service_proc |
295 | stdcall RegService, my_service, service_proc |
296 | ret |
296 | ret |
Line 491... | Line 491... | ||
491 | movzx eax, [device.irq_line] |
491 | movzx eax, [device.irq_line] |
492 | DEBUGF 1,"Attaching int handler to irq %x\n", eax:1 |
492 | DEBUGF 1,"Attaching int handler to irq %x\n", eax:1 |
493 | stdcall AttachIntHandler, eax, int_handler, dword 0 |
493 | stdcall AttachIntHandler, eax, int_handler, dword 0 |
494 | test eax, eax |
494 | test eax, eax |
495 | jnz @f |
495 | jnz @f |
496 | DEBUGF 1,"\nCould not attach int handler!\n" |
496 | DEBUGF 2,"Could not attach int handler!\n" |
497 | ; or eax, -1 |
497 | ; or eax, -1 |
498 | ; ret |
498 | ; ret |
499 | @@: |
499 | @@: |
Line 696... | Line 696... | ||
696 | align 4 |
696 | align 4 |
697 | int_handler: |
697 | int_handler: |
Line 698... | Line 698... | ||
698 | 698 | ||
Line 699... | Line 699... | ||
699 | push ebx esi edi |
699 | push ebx esi edi |
700 | 700 | ||
701 | DEBUGF 1,"\n%s int\n", my_service |
701 | DEBUGF 1,"INT\n" |
Line 702... | Line 702... | ||
702 | ;------------------------------------------- |
702 | ;------------------------------------------- |
703 | ; Find pointer of device wich made IRQ occur |
703 | ; Find pointer of device wich made IRQ occur |