mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Any guides for adding new IDE chipset drivers?
@ 2004-02-17 14:27 Alex Bennee
  2004-02-17 15:41 ` Randy.Dunlap
  2004-02-17 19:10 ` Bartlomiej Zolnierkiewicz
  0 siblings, 2 replies; 6+ messages in thread
From: Alex Bennee @ 2004-02-17 14:27 UTC (permalink / raw)
  To: Linux Mailing List; +Cc: B.Zolnierkiewicz, linux-ide

On Monday 16 of Febuary 2004 09:40:21 PST, Bart wrote:
>On Monday 16 of February 2004 18:04, Alex Bennee wrote:
>
>> Is there a driver that can be held of as an example of good taste and
>> the "right" way to implement a chipset driver?
>
>Yep.  Please take a look at drivers/ide/arm/icside.c.
>It is well written, quite simple and has DMA support.

Thanks. I'll base my driver on this one as it does seem quite easy
to follow. However I'm wondering what the point of the begin/end functions
are. The dma_read/write functions just seem to call dma_count which starts the
dma requests going.

Am I missing something here? Is all that required from the higher level a single
call to dma_read/write or should I be expecting a series of calls to setup a transfer?


>If you have any questions/issues feel free to ask
>on linux-ide@vger.kernel.org mailing list.

Hmmm, vger seems to be ignoring my subscribe requests. 

Is the list archived anywhere? None are listed on VGER.


-- 
Alex, homepage: http://www.bennee.com/~alex/
It is a hard matter, my fellow citizens, to argue with the belly,
since it has no ears.
		-- Marcus Porcius Cato


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Any guides for adding new IDE chipset drivers?
@ 2004-02-16 17:04 Alex Bennee
  2004-02-16 17:39 ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 6+ messages in thread
From: Alex Bennee @ 2004-02-16 17:04 UTC (permalink / raw)
  To: Linux Mailing List

Hi,

We currently have implemented a simple (PIO) IDE interface on our
embedded SH based board. The "driver" is just a simple call from
ide_setup() that twiddles the various values in ide_hwifs to set the
correct port addresses.

All this is all well and good and works fine. However I'm looking at
adding DMA support to the driver to make better use of the hardware.
I've been looking around the other arch IDE drivers (e.g. the ppc pmac
driver) which seem to hook into the probe_for_hwifs() and then update
the hwifs table itself. This makes me wonder am I initialising my driver
the "correct" way.

As far as implementing the DMA features is concerned as far as I can
tell I just need to code up routines for all the various
hwifs[x].ide_dma* functions and be done with it. Am I missing anything?

So my questions boil down to:

Are there any guides for driver writers for what needs doing to add new
IDE chipset drivers?

Is there a driver that can be held of as an example of good taste and
the "right" way to implement a chipset driver?

Regards,


-- 
Alex, homepage: http://www.bennee.com/~alex/
"I am not sure what this is, but an `F' would only dignify it."
		-- English Professor


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-02-18 10:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-17 14:27 Any guides for adding new IDE chipset drivers? Alex Bennee
2004-02-17 15:41 ` Randy.Dunlap
2004-02-17 19:10 ` Bartlomiej Zolnierkiewicz
2004-02-18 10:41   ` Alex Bennee
  -- strict thread matches above, loose matches on Subject: below --
2004-02-16 17:04 Alex Bennee
2004-02-16 17:39 ` Bartlomiej Zolnierkiewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®