
Dear Macpaul Lin,
In message 1295873267-32570-1-git-send-email-macpaul@andestech.com you wrote:
Although most IDE controller is designed to be connected to PCI bridge, there are still some IDE controller support AHB interface for SoC design.
The driver implementation of these IDE-AHB controllers differ from other IDE-PCI controller, some additional registers and commands access is required during CMD/DATA I/O. Hence a configuration "CONFIG_IDE_AHB" in cmd_ide.c is required to be defined to support these kinds of SoC controllers. Such as Faraday's FTIDE020 series and Global Unichip's UINF-0301.
...
extern void ide_write_register(int, unsigned int, unsigned char);
...
- extern unsigned char ide_read_register(int, unsigned int);
Etc. Please move all such prototype decarations to an appropriate header file and get rid of these "extern"s here.
Thanks.
Best regards,
Wolfgang Denk