diff options
author | Michael Brown <mcb30@ipxe.org> | 2016-02-26 15:33:40 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2016-02-26 15:33:40 +0000 |
commit | 5bd8427d3dad38993c1f8f175454f7fde0af34ca (patch) | |
tree | de75a672e177f36fef93b81ada93c96541761310 /src/include/ipxe/io.h | |
parent | 614305743031bdfc02cb4ce346e450cd1d476e17 (diff) | |
download | ipxe-5bd8427d3dad38993c1f8f175454f7fde0af34ca.tar.gz |
[ioapi] Split ioremap() out to a separate IOMAP API
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/io.h')
-rw-r--r-- | src/include/ipxe/io.h | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/src/include/ipxe/io.h b/src/include/ipxe/io.h index af767915d..fe1388191 100644 --- a/src/include/ipxe/io.h +++ b/src/include/ipxe/io.h @@ -20,8 +20,8 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #include <stdint.h> #include <ipxe/api.h> +#include <ipxe/iomap.h> #include <config/ioapi.h> -#include <ipxe/uaccess.h> /** Page size */ #define PAGE_SIZE ( 1 << PAGE_SHIFT ) @@ -197,30 +197,6 @@ static inline __always_inline void * bus_to_virt ( unsigned long bus_addr ) { } /** - * Map bus address as an I/O address - * - * @v bus_addr Bus address - * @v len Length of region - * @ret io_addr I/O address - */ -void * ioremap ( unsigned long bus_addr, size_t len ); - -/** - * Unmap I/O address - * - * @v io_addr I/O address - */ -void iounmap ( volatile const void *io_addr ); - -/** - * Convert I/O address to bus address (for debug only) - * - * @v io_addr I/O address - * @ret bus_addr Bus address - */ -unsigned long io_to_bus ( volatile const void *io_addr ); - -/** * Read byte from memory-mapped device * * @v io_addr I/O address |