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 -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html