summaryrefslogtreecommitdiff
path: root/include/ide.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-02-29 15:25:39 -0700
committerSimon Glass <sjg@chromium.org>2016-03-14 15:34:50 -0600
commit1a73661bc7a7ad2d741f7d7519872ca18231598c (patch)
treeba8fe6e6310397ec39c523220a6095d6ebba8033 /include/ide.h
parent481922f14a4801bd5abfb90705ebcaf76bd90df8 (diff)
downloadu-boot-imx-1a73661bc7a7ad2d741f7d7519872ca18231598c.zip
u-boot-imx-1a73661bc7a7ad2d741f7d7519872ca18231598c.tar.gz
u-boot-imx-1a73661bc7a7ad2d741f7d7519872ca18231598c.tar.bz2
dm: Add a new header for block devices
At present block devices are tied up with partitions. But not all block devices have partitions within them. They are in fact separate concepts. Create a separate blk.h header file for block devices. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'include/ide.h')
-rw-r--r--include/ide.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/include/ide.h b/include/ide.h
index 2407393..a4e65cf 100644
--- a/include/ide.h
+++ b/include/ide.h
@@ -8,6 +8,8 @@
#ifndef _IDE_H
#define _IDE_H
+#include <blk.h>
+
#define IDE_BUS(dev) (dev / (CONFIG_SYS_IDE_MAXDEVICE / CONFIG_SYS_IDE_MAXBUS))
#define ATA_CURR_BASE(dev) (CONFIG_SYS_ATA_BASE_ADDR+ide_bus_offset[IDE_BUS(dev)])
@@ -26,16 +28,6 @@ extern ulong ide_bus_offset[];
void ide_led(uchar led, uchar status);
#endif /* CONFIG_IDE_LED */
-#ifdef CONFIG_SYS_64BIT_LBA
-typedef uint64_t lbaint_t;
-#define LBAFlength "ll"
-#else
-typedef ulong lbaint_t;
-#define LBAFlength "l"
-#endif
-#define LBAF "%" LBAFlength "x"
-#define LBAFU "%" LBAFlength "u"
-
/*
* Function Prototypes
*/