linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gernot Fink <g.fink@gmx.net>
To: linux-ide@vger.kernel.org
Subject: how replace direct use of ide_hwifs  2.6.27 from FC10
Date: Thu, 11 Dec 2008 19:09:18 +0100	[thread overview]
Message-ID: <4941574E.6040702@gmx.net> (raw)

Hallo,

im working on a Kernelmodul which drives the IDE-Flasher.
This is a device to programm flashchips like bios. ctflasher.sf.net

Now i read not use ide_hwifs direvt anymore. ide_hwifs is not exported.
Google is full of the Patch itself, but no solution.

How do i now find the io-addresses of the unused IDE-ports to check them.

greetings
Gernot

old, now not working anymore code was this:

     for (i = 0; i < MAX_HWIFS; ++i)
     {
         ide_hwif_t *iface = 0;

         iface = &ide_hwifs[i];

         if (iface->io_ports[IDE_DATA_OFFSET] != 0)
         {
             base = iface->io_ports[IDE_DATA_OFFSET];
             if (request_region(base, 8, MODULE_NAME)!=NULL) 
                      	    {
                 if (check_hardware_ide(base))
                 {
                     printk(KERN_DEBUG "%s: ide-flasher found at 0x%lx 
(%s from i
de kernel module).\n",
                     MODULE_NAME, base, iface->name);
                     return base;
                 }
                 release_region(base, 8);
             }
         }
     }

                 reply	other threads:[~2008-12-11 18:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4941574E.6040702@gmx.net \
    --to=g.fink@gmx.net \
    --cc=linux-ide@vger.kernel.org \
    /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).