diff options
author | Jeroen Hofstee <jeroen@myspectrum.nl> | 2014-07-12 15:07:19 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-07-22 07:44:26 -0400 |
commit | 288afdc9b97f00fa8422ea065e135f8423441cd7 (patch) | |
tree | 595015f2b4330d3284125308a37b6d6fbdd588c2 /include/ide.h | |
parent | 2bb8eb8ec61026ed371481ac8490c3a1fcf82131 (diff) | |
download | u-boot-288afdc9b97f00fa8422ea065e135f8423441cd7.tar.gz |
common: cmd_ide: use __weak and add prototypes
clang chokes about the concept of having an alias to an
always_inlined function. gcc likely just ignores the always
inlined since binary sizes are equal before and after this
patch. Convert the aliases to weak functions and provide
missing prototypes.
cc: Pavel Herrmann <morpheus.ibis@gmail.com>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Diffstat (limited to 'include/ide.h')
-rw-r--r-- | include/ide.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ide.h b/include/ide.h index 0424d045a1..c2a48e0b37 100644 --- a/include/ide.h +++ b/include/ide.h @@ -66,12 +66,16 @@ void ide_write_data(int dev, const ulong *sect_buf, int words); /* * I/O function overrides */ +unsigned char ide_inb(int dev, int port); +void ide_outb(int dev, int port, unsigned char val); void ide_input_swap_data(int dev, ulong *sect_buf, int words); void ide_input_data(int dev, ulong *sect_buf, int words); 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); +void ide_led(uchar led, uchar status); + /** * board_start_ide() - Start up the board IDE interfac * |