mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 23:47:24 +00:00
ide: Move ATA_CURR_BASE to C file
This is not used outside one C file. Move it out of the header to reduce its visbility. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
caf0a88d9f
commit
14a4f52b0d
2 changed files with 3 additions and 3 deletions
|
@ -36,6 +36,9 @@ ulong ide_bus_offset[CONFIG_SYS_IDE_MAXBUS] = {
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define ATA_CURR_BASE(dev) (CONFIG_SYS_ATA_BASE_ADDR + \
|
||||||
|
ide_bus_offset[IDE_BUS(dev)])
|
||||||
|
|
||||||
static int ide_bus_ok[CONFIG_SYS_IDE_MAXBUS];
|
static int ide_bus_ok[CONFIG_SYS_IDE_MAXBUS];
|
||||||
|
|
||||||
struct blk_desc ide_dev_desc[CONFIG_SYS_IDE_MAXDEVICE];
|
struct blk_desc ide_dev_desc[CONFIG_SYS_IDE_MAXDEVICE];
|
||||||
|
|
|
@ -11,9 +11,6 @@
|
||||||
|
|
||||||
#define IDE_BUS(dev) (dev / (CONFIG_SYS_IDE_MAXDEVICE / CONFIG_SYS_IDE_MAXBUS))
|
#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)])
|
|
||||||
extern ulong ide_bus_offset[];
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Function Prototypes
|
* Function Prototypes
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue