X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=include%2Fide.h;h=59ea9758a7d90e0d43033a81ab3a74a0eee77cf6;hb=04735e9c5578dd4f3584be5454b9779e8e5c2af9;hp=158e1beaf9510385353dde29dfbf33c7665125d5;hpb=3e4d27b06d7484040355e22eec2cbce7335d6dab;p=karo-tx-uboot.git diff --git a/include/ide.h b/include/ide.h index 158e1beaf9..59ea9758a7 100644 --- a/include/ide.h +++ b/include/ide.h @@ -44,9 +44,11 @@ extern ulong ide_bus_offset[]; #ifdef CONFIG_SYS_64BIT_LBA typedef uint64_t lbaint_t; #define LBAF "%llx" +#define LBAFU "%llu" #else typedef ulong lbaint_t; #define LBAF "%lx" +#define LBAFU "%lu" #endif /* @@ -54,8 +56,9 @@ typedef ulong lbaint_t; */ void ide_init(void); -ulong ide_read(int device, ulong blknr, lbaint_t blkcnt, void *buffer); -ulong ide_write(int device, ulong blknr, lbaint_t blkcnt, const void *buffer); +ulong ide_read(int device, lbaint_t blknr, lbaint_t blkcnt, void *buffer); +ulong ide_write(int device, lbaint_t blknr, lbaint_t blkcnt, + const void *buffer); #ifdef CONFIG_IDE_PREINIT int ide_preinit(void); @@ -85,4 +88,11 @@ void ide_output_data(int dev, const ulong *sect_buf, int words); void ide_input_data_shorts(int dev, ushort *sect_buf, int shorts); void ide_output_data_shorts(int dev, ushort *sect_buf, int shorts); +/** + * board_start_ide() - Start up the board IDE interfac + * + * @return 0 if ok + */ +int board_start_ide(void); + #endif /* _IDE_H */