iPXE
Defines | Functions
iomap.h File Reference

iPXE I/O mapping API More...

#include <stdint.h>
#include <ipxe/api.h>
#include <config/ioapi.h>
#include <ipxe/uaccess.h>
#include <ipxe/iomap_virt.h>
#include <bits/iomap.h>

Go to the source code of this file.

Defines

#define IOMAP_INLINE(_subsys, _api_func)   SINGLE_API_INLINE ( IOMAP_PREFIX_ ## _subsys, _api_func )
 Calculate static inline I/O mapping API function name.
#define PROVIDE_IOMAP(_subsys, _api_func, _func)   PROVIDE_SINGLE_API ( IOMAP_PREFIX_ ## _subsys, _api_func, _func )
 Provide an I/O mapping API implementation.
#define PROVIDE_IOMAP_INLINE(_subsys, _api_func)   PROVIDE_SINGLE_API_INLINE ( IOMAP_PREFIX_ ## _subsys, _api_func )
 Provide a static inline I/O mapping API implementation.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
void * ioremap (unsigned long bus_addr, size_t len)
 Map bus address as an I/O address.
void iounmap (volatile const void *io_addr)
 Unmap I/O address.
unsigned long io_to_bus (volatile const void *io_addr)
 Convert I/O address to bus address (for debug only)

Detailed Description

iPXE I/O mapping API

The I/O mapping API provides methods for mapping and unmapping I/O devices.

Definition in file iomap.h.


Define Documentation

#define IOMAP_INLINE (   _subsys,
  _api_func 
)    SINGLE_API_INLINE ( IOMAP_PREFIX_ ## _subsys, _api_func )

Calculate static inline I/O mapping API function name.

Parameters:
_prefixSubsystem prefix
_api_funcAPI function
Return values:
_subsys_funcSubsystem API function

Definition at line 26 of file iomap.h.

#define PROVIDE_IOMAP (   _subsys,
  _api_func,
  _func 
)    PROVIDE_SINGLE_API ( IOMAP_PREFIX_ ## _subsys, _api_func, _func )

Provide an I/O mapping API implementation.

Parameters:
_prefixSubsystem prefix
_api_funcAPI function
_funcImplementing function

Definition at line 36 of file iomap.h.

#define PROVIDE_IOMAP_INLINE (   _subsys,
  _api_func 
)    PROVIDE_SINGLE_API_INLINE ( IOMAP_PREFIX_ ## _subsys, _api_func )

Provide a static inline I/O mapping API implementation.

Parameters:
_prefixSubsystem prefix
_api_funcAPI function

Definition at line 45 of file iomap.h.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
void* ioremap ( unsigned long  bus_addr,
size_t  len 
)
void iounmap ( volatile const void *  io_addr)
unsigned long io_to_bus ( volatile const void *  io_addr)

Convert I/O address to bus address (for debug only)

Parameters:
io_addrI/O address
Return values:
bus_addrBus address