From: Mark Lord <liml@rtr.ca>
To: Matt Gillette <Matt.Gillette@netcell.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: Libata Driver
Date: Mon, 23 Jan 2006 15:53:14 -0500 [thread overview]
Message-ID: <43D5423A.7010905@rtr.ca> (raw)
In-Reply-To: <D72EBE1F-1A6E-48FE-B519-D672CFF7E2B3@netcell.com>
Matt Gillette wrote:
> I'm still trying to understand what needs to be done, so please correct
> me if I'm wrong.
>
> The netcell card currently uses the ide-generic driver in the old ide
> layer. This is incompatible with libata so a new driver is needed.
>
> I don't see a driver in the scsi (libata) drivers that is as generic as
> the ide driver was (all we needed to add was our vendor and device id).
Yeah, no generic driver (yet). Probably because each chipset still seems
to invent it's own mechanism for programming the DMA/PIO timings (something
that ide-generic somewhat-unsafely relied on the BIOS to do). So you need
a really simple driver, with code to set up the timings if needed,
and just a bunch of binding of standard libata functions to do everything else.
It all ends up being quite simple once figured out.
> Because there is no generic driver, I need to write a driver compatible
> with libata. This new driver should be fairly simple since our card only
> needs the standard IDE taskfile registers set up. Does anyone have
> suggestions on which drivers that I should look at to help write our
> driver (a driver close to being generic)?
I'll leave it for somebody else to recommend something.
Alan Cox is currently reimplementing libata support for most of the
existing IDE driver chipsets -- he could probably provide a nice
simple almost generic driver for you to hack.
Alan?
> If I do write a libata driver, will there be conflicts with the generic
> ide driver? Do I need to remove our vendor id's from this?
Yes, and yes.
Cheers
prev parent reply other threads:[~2006-01-23 20:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <867ae21dff5bea23500e8489161916d3@Netcell.com>
2006-01-19 11:54 ` ATA passthrough questions Bartlomiej Zolnierkiewicz
2006-01-19 20:43 ` Matt Gillette
2006-01-19 20:51 ` Mark Lord
2006-01-23 20:40 ` Libata Driver Matt Gillette
2006-01-23 20:53 ` Mark Lord [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=43D5423A.7010905@rtr.ca \
--to=liml@rtr.ca \
--cc=Matt.Gillette@netcell.com \
--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).