* Re: 2.6 kernel & ide_ops
2004-12-08 12:14 2.6 kernel & ide_ops wlacey
@ 2004-12-08 12:00 ` Alan Cox
0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2004-12-08 12:00 UTC (permalink / raw)
To: wlacey; +Cc: linux-mips
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* 2.6 kernel & ide_ops
@ 2004-12-08 12:14 wlacey
2004-12-08 12:00 ` Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: wlacey @ 2004-12-08 12:14 UTC (permalink / raw)
To: linux-mips
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.
How should one go about specifiying an ide device in a 2.6 kernel
Thanks,
W
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-08 13:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-08 12:14 2.6 kernel & ide_ops wlacey
2004-12-08 12:00 ` Alan Cox
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.