aboutsummaryrefslogtreecommitdiff
path: root/include/ide.h
diff options
context:
space:
mode:
authorMacpaul Lin <macpaul@andestech.com>2011-04-11 20:45:32 +0000
committerWolfgang Denk <wd@denx.de>2011-04-30 21:04:25 +0200
commit0abddf82d54c704cf066524235b6414333e8d087 (patch)
tree3ae31f30d1d61056be409afe1ea98a21646262ac /include/ide.h
parentdea6386b715827e080a9fa6e6d706f2bdf8a998e (diff)
cmd_ide: enhance new feature "CONFIG_IDE_AHB"
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. Signed-off-by: Macpaul Lin <macpaul@andestech.com>
Diffstat (limited to 'include/ide.h')
-rw-r--r--include/ide.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ide.h b/include/ide.h
index 6a1b7ae84..80a10f410 100644
--- a/include/ide.h
+++ b/include/ide.h
@@ -57,4 +57,11 @@ ulong ide_write(int device, lbaint_t blknr, ulong blkcnt, void *buffer);
#if defined(CONFIG_OF_IDE_FIXUP)
int ide_device_present(int dev);
#endif
+
+#if defined(CONFIG_IDE_AHB)
+unsigned char ide_read_register(int dev, unsigned int port);
+void ide_write_register(int dev, unsigned int port, unsigned char val);
+void ide_read_data(int dev, ulong *sect_buf, int words);
+void ide_write_data(int dev, ulong *sect_buf, int words);
+#endif
#endif /* _IDE_H */