iPXE
arch
x86
include
ipxe
iomap_pages.h
Go to the documentation of this file.
1
#ifndef _IPXE_IOMAP_PAGES_H
2
#define _IPXE_IOMAP_PAGES_H
3
4
/** @file
5
*
6
* I/O mapping API using page tables
7
*
8
*/
9
10
FILE_LICENCE
( GPL2_OR_LATER_OR_UBDL );
11
12
#ifdef IOMAP_PAGES
13
#define IOMAP_PREFIX_pages
14
#else
15
#define IOMAP_PREFIX_pages __pages_
16
#endif
17
18
static
inline
__always_inline
unsigned
long
19
IOMAP_INLINE
( pages,
io_to_bus
) (
volatile
const
void
*io_addr ) {
20
/* Not easy to do; just return the CPU address for debugging purposes */
21
return
( (
intptr_t
) io_addr );
22
}
23
24
#endif
/* _IPXE_IOMAP_PAGES_H */
io_to_bus
unsigned long io_to_bus(volatile const void *io_addr)
Convert I/O address to bus address (for debug only)
intptr_t
unsigned long intptr_t
Definition:
stdint.h:21
__always_inline
#define __always_inline
Declare a function to be always inline.
Definition:
compiler.h:611
FILE_LICENCE
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
IOMAP_INLINE
static __always_inline unsigned long IOMAP_INLINE(pages, io_to_bus)(volatile const void *io_addr)
Definition:
iomap_pages.h:19
Generated by
1.8.15