IDE driver in polling mode

Mark Lord liml at rtr.ca
Wed Apr 11 00:44:11 EST 2007


> Michael wrote:
> 
>> I'd like to know whether it is possible to use IDE driver (ide-disk)
>> in polling mode, instead of using IRQ.

This should be doable, with a small amount of hacking.
Mostly, you just need to use add_timer() to set up a polling
function that simply calls ide_intr() and then does add_timer()
again for the next poll.

For your purposes, it could be as simple as five lines of C.

Cheers



More information about the Linuxppc-embedded mailing list