Re: How to add interrupt support in TESTCAP sample ??

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Max Paklin (mpaklin_at_hotmail.com)
Date: 06/25/04


Date: Fri, 25 Jun 2004 14:44:47 -0700

Hmm... how can you support the interrupt if there is no hardware present? Or
did you want to simulate it similar to the way AVStream sample is doing? In
that case you can fake it by firing an interrupt once in a while and calling
your ISR from there.

Setting TurnOffSynchronization to FALSE is a receipee for disaster for this
particular sample. Read about what that field means in the DDK. In short it
gaurantees that most of minidriver callbacks are executed at DIRQL to
simplify synchronization. Testcap specifically disables that feature to do
synchronization on its own. They use spinlocks to synchronize access to
queues, so you are doomed to crash there right away. Also IIRC they use APIs
that can not be run at DIRQL.

-- Max.

"paullee" <paullee@iei.com.tw> wrote in message
news:b308514d.0406242005.523d338d@posting.google.com...
> Hi all
>
> I want to add interrupt support in TESTCAP sample,
> I just setting
>
> HwInitData.HwInterrupt = (PHW_INTERRUPT)HwInterrupt;
> HwInitData.TurnOffSynchronization = FALSE;
>
> and remove all DEBUG_ASSERT(KeGetCurrentIrql() == PASSIVE_LEVEL)
statement&#65292;
>
> modify INF file to match hardwave PNPID
>
> when I install driver ,it will hang after HwInitialize routine finish
>
> why??
>
> Do I forget to change where??
>
> Thanks a lot



Relevant Pages

  • Re: Interrupt Synchronization - WDF driver
    ... that is a hardware interrupt and has nothing to do with software interrupts. ... schedule a DPC which will determine what code to execute to ... I am getting interrupt synchronization problems for my PCI device WDF ...
    (microsoft.public.development.device.drivers)
  • Re: How to add interrupt support in TESTCAP sample ??
    ... how can you support the interrupt if there is no hardware present? ... > that case you can fake it by firing an interrupt once in a while and calling ... > synchronization on its own. ... What is "IIRC" meaning ?? ...
    (microsoft.public.development.device.drivers)
  • Re: Shift em bits
    ... > Assuming the hardware doesn't support it directly, ... for some reason the interrupt are not allowed to be ...
    (comp.arch.embedded)
  • Too many rtc interrupts
    ... Stepping- SERR+ FastB2B- ... Interrupt: pin A routed to IRQ 11 ... # ACPI Support ...
    (Linux-Kernel)
  • Re: Polling loop good here???
    ... The "vertical retrace interrupt" was IRQ 2... ... In today's hardware - as has been mentioned - they've almost certainly ... it...make use of the drivers... ...
    (alt.lang.asm)