From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: wlacey <wlacey@goldenhindresearch.com>
Cc: linux-mips@linux-mips.org
Subject: Re: 2.6 kernel & ide_ops
Date: Wed, 08 Dec 2004 12:00:46 +0000 [thread overview]
Message-ID: <1102507245.23635.12.camel@localhost.localdomain> (raw)
In-Reply-To: <20041208121422.18641.qmail@server212.com>
On Mer, 2004-12-08 at 12:14, wlacey wrote:
> Forgive the stupid question but on the 2.6 kernel I cannot find an ide_ops.h header file and obviously the extern ide_ops structure.
>
The ide ops are part of the hwif (hardware interface) object.
> How should one go about specifiying an ide device in a 2.6 kernel
Assuming the device has standard behaviour and is just basic legacy IDE
then
ide_hwif_t *hwif;
hw_reg_t hw;
memset(hw, 0, sizeof(*hw));
ide_std_init_ports(&hw, IDE_PORT, CTRL__PORT);
hw.irq = whatever;
hw.dma = NO_DMA;
ide_register_hw(&hw, NULL);
For DMA devices you need either to use the PCI layer functions or
register DMA handlers. Take a look at something simple like
drivers/ide/pci/triflex.c
prev parent reply other threads:[~2004-12-08 13:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-08 12:14 2.6 kernel & ide_ops wlacey
2004-12-08 12:00 ` Alan Cox [this message]
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=1102507245.23635.12.camel@localhost.localdomain \
--to=alan@lxorguk.ukuu.org.uk \
--cc=linux-mips@linux-mips.org \
--cc=wlacey@goldenhindresearch.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.