Re: How to add interrupt support in TESTCAP sample ??
From: Max Paklin (mpaklin_at_hotmail.com)
Date: 06/25/04
- Next message: Gary Tait: "Re: I2C through PC parallel port, serial port and/or USB port - please help"
- Previous message: Manfred Wilner: "XP DDK 2600 vs XPSP1 DDK 2600.1106"
- In reply to: paullee: "How to add interrupt support in TESTCAP sample ??"
- Next in thread: paullee: "Re: How to add interrupt support in TESTCAP sample ??"
- Reply: paullee: "Re: How to add interrupt support in TESTCAP sample ??"
- Reply: paullee: "Re: How to add interrupt support in TESTCAP sample ??"
- Messages sorted by: [ date ] [ thread ]
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,
>
> 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
- Next message: Gary Tait: "Re: I2C through PC parallel port, serial port and/or USB port - please help"
- Previous message: Manfred Wilner: "XP DDK 2600 vs XPSP1 DDK 2600.1106"
- In reply to: paullee: "How to add interrupt support in TESTCAP sample ??"
- Next in thread: paullee: "Re: How to add interrupt support in TESTCAP sample ??"
- Reply: paullee: "Re: How to add interrupt support in TESTCAP sample ??"
- Reply: paullee: "Re: How to add interrupt support in TESTCAP sample ??"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|