linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Lord <liml@rtr.ca>
To: Michael <michaelzwrk@gmail.com>
Cc: linux-ide@vger.kernel.org, linuxppc-embedded@ozlabs.org
Subject: Re: IDE driver in polling mode
Date: Tue, 10 Apr 2007 10:44:11 -0400	[thread overview]
Message-ID: <461BA2BB.6040101@rtr.ca> (raw)
In-Reply-To: <461B9D04.2000109@ru.mvista.com>

> 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

  reply	other threads:[~2007-04-10 14:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1ea6be8e0704100635ydbf1538i782e796c99891e5d@mail.gmail.com>
2007-04-10 14:19 ` IDE driver in polling mode Sergei Shtylyov
2007-04-10 14:44   ` Mark Lord [this message]
2007-04-10 15:31     ` Michael
2007-04-10 16:11   ` Alan Cox
2007-04-10 16:18     ` Jeff Garzik
2007-04-10 16:29       ` Alan Cox
2007-04-11  8:39         ` Michael
2007-04-11  8:47           ` Alan Cox
2007-04-11 15:10             ` Michael
2007-04-11 15:23               ` Alan Cox
2007-04-12 13:39               ` Mark Lord
2007-04-12 13:40                 ` Mark Lord
2007-04-12 13:43             ` Mark Lord

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=461BA2BB.6040101@rtr.ca \
    --to=liml@rtr.ca \
    --cc=linux-ide@vger.kernel.org \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=michaelzwrk@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).