iPXE
Macros | Functions | Variables
iomap_virt.h File Reference

iPXE I/O mapping API using phys_to_virt() More...

Go to the source code of this file.

Macros

#define IOMAP_PREFIX_virt   __virt_
 

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
static __always_inline void * IOMAP_INLINE (virt, ioremap)(unsigned long bus_addr
 
static __always_inline void IOMAP_INLINE (virt, iounmap)(volatile const void *io_addr __unused)
 
static __always_inline unsigned long IOMAP_INLINE (virt, io_to_bus)(volatile const void *io_addr)
 

Variables

static __always_inline void size_t len __unused
 

Detailed Description

iPXE I/O mapping API using phys_to_virt()

Definition in file iomap_virt.h.

Macro Definition Documentation

◆ IOMAP_PREFIX_virt

#define IOMAP_PREFIX_virt   __virt_

Definition at line 15 of file iomap_virt.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ IOMAP_INLINE() [1/3]

static __always_inline void* IOMAP_INLINE ( virt  ,
ioremap   
)
inlinestatic

◆ IOMAP_INLINE() [2/3]

static __always_inline void IOMAP_INLINE ( virt  ,
iounmap   
) const volatile
inlinestatic

Definition at line 24 of file iomap_virt.h.

24  {
25  /* Nothing to do */
26 }

◆ IOMAP_INLINE() [3/3]

static __always_inline unsigned long IOMAP_INLINE ( virt  ,
io_to_bus   
) const volatile
inlinestatic

Definition at line 29 of file iomap_virt.h.

29  {
30  return virt_to_phys ( io_addr );
31 }
static __always_inline unsigned long virt_to_phys(volatile const void *addr)
Convert virtual address to a physical address.
Definition: uaccess.h:287

References virt_to_phys().

Variable Documentation

◆ __unused

__always_inline void size_t len __unused
Initial value:
{
return ( bus_addr ? phys_to_virt ( bus_addr ) : NULL )
static __always_inline void * phys_to_virt(unsigned long phys_addr)
Convert physical address to a virtual address.
Definition: uaccess.h:299
#define NULL
NULL pointer (VOID *)
Definition: Base.h:362

Definition at line 19 of file iomap_virt.h.