diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ide.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ide.h b/include/ide.h index 6a1b7ae..80a10f4 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 */ |