From: Wolfgang Denk Date: Mon, 11 Apr 2011 22:26:40 +0200 Subject: [U-Boot] [PATCH 1/2] cmd_ide: enhance new feature "CONFIG_IDE_AHB" In-Reply-To: <1295873267-32570-1-git-send-email-macpaul@andestech.com> References: <1295873267-32570-1-git-send-email-macpaul@andestech.com> Message-ID: <20110411202640.60BF1151F83@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de All a hacker needs is a tight PUSHJ, a loose pair of UUOs, and a warm place to shift.