iPXE
iomap_pages.h
Go to the documentation of this file.
00001 #ifndef _IPXE_IOMAP_PAGES_H
00002 #define _IPXE_IOMAP_PAGES_H
00003 
00004 /** @file
00005  *
00006  * I/O mapping API using page tables
00007  *
00008  */
00009 
00010 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
00011 
00012 #ifdef IOMAP_PAGES
00013 #define IOMAP_PREFIX_pages
00014 #else
00015 #define IOMAP_PREFIX_pages __pages_
00016 #endif
00017 
00018 static inline __always_inline unsigned long
00019 IOMAP_INLINE ( pages, io_to_bus ) ( volatile const void *io_addr ) {
00020         /* Not easy to do; just return the CPU address for debugging purposes */
00021         return ( ( intptr_t ) io_addr );
00022 }
00023 
00024 #endif /* _IPXE_IOMAP_PAGES_H */