* On SoC SATA controller driver implementation!!!
@ 2010-09-17 9:54 Murali N
2010-09-17 18:23 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Murali N @ 2010-09-17 9:54 UTC (permalink / raw)
To: linux-ide
Hi All,
I am implementing a SATA driver for my SATA controller which is part of SoC.
I had seen a generic AHCI controller driver in .35 (ahci_platform.c)
which is used by SATA controllers part of the SoC and interacting to
local bus.
My doubts is:
1. Can i make use of above framework to implement my own controller
driver? I know that i have to take care of the "init", "exit" and
power management routines specific to my controller. Will this work?
OR do i need to take care of any other additional considerations while
implementing?
I would like to see a reference drivers code which uses the platform
AHCI controller driver(ahci_platform.c). Can anyone point me to the
sources.
My aim is to leverage already existing code as much as possible to
make my controller works better.
Please provide me any suggestions.
--
Regards,
Murali N
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: On SoC SATA controller driver implementation!!!
2010-09-17 9:54 On SoC SATA controller driver implementation!!! Murali N
@ 2010-09-17 18:23 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2010-09-17 18:23 UTC (permalink / raw)
To: Murali N; +Cc: linux-ide
On 09/17/2010 05:54 AM, Murali N wrote:
> Hi All,
>
> I am implementing a SATA driver for my SATA controller which is part of SoC.
> I had seen a generic AHCI controller driver in .35 (ahci_platform.c)
> which is used by SATA controllers part of the SoC and interacting to
> local bus.
>
> My doubts is:
> 1. Can i make use of above framework to implement my own controller
> driver? I know that i have to take care of the "init", "exit" and
> power management routines specific to my controller. Will this work?
> OR do i need to take care of any other additional considerations while
> implementing?
ahci_platform is not a framework, it is an AHCI driver, which uses the
libata and libahci frameworks.
"will it work?" depends entirely on your controller's programming interface.
> I would like to see a reference drivers code which uses the platform
> AHCI controller driver(ahci_platform.c). Can anyone point me to the
> sources.
> My aim is to leverage already existing code as much as possible to
> make my controller works better.
ahci_platform.c and ahci.c use libahci.c framework.
Both use libata framework.
Jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-17 18:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-17 9:54 On SoC SATA controller driver implementation!!! Murali N
2010-09-17 18:23 ` Jeff Garzik
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.