Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
iommu_table.h File Reference
#include <asm/swiotlb.h>

Go to the source code of this file.

Data Structures

struct  iommu_table_entry
 

Macros

#define IOMMU_FINISH_IF_DETECTED   (1<<0)
 
#define IOMMU_DETECTED   (1<<1)
 
#define __IOMMU_INIT(_detect, _depend, _early_init, _late_init, _finish)
 
#define IOMMU_INIT_POST(_detect)   __IOMMU_INIT(_detect, pci_swiotlb_detect_4gb, NULL, NULL, 0)
 
#define IOMMU_INIT_POST_FINISH(detect)   __IOMMU_INIT(_detect, pci_swiotlb_detect_4gb, NULL, NULL, 1)
 
#define IOMMU_INIT_FINISH(_detect, _depend, _init, _late_init)   __IOMMU_INIT(_detect, _depend, _init, _late_init, 1)
 
#define IOMMU_INIT(_detect, _depend, _init, _late_init)   __IOMMU_INIT(_detect, _depend, _init, _late_init, 0)
 

Functions

void sort_iommu_table (struct iommu_table_entry *start, struct iommu_table_entry *finish)
 
void check_iommu_entries (struct iommu_table_entry *start, struct iommu_table_entry *finish)
 

Variables

struct iommu_table_entry __attribute__
 

Macro Definition Documentation

#define __IOMMU_INIT (   _detect,
  _depend,
  _early_init,
  _late_init,
  _finish 
)
Value:
static const struct iommu_table_entry \
__iommu_entry_##_detect __used \
__attribute__ ((unused, __section__(".iommu_table"), \
aligned((sizeof(void *))))) \
= {_detect, _depend, _early_init, _late_init, \
_finish ? IOMMU_FINISH_IF_DETECTED : 0}

Definition at line 50 of file iommu_table.h.

#define IOMMU_DETECTED   (1<<1)

Definition at line 39 of file iommu_table.h.

#define IOMMU_FINISH_IF_DETECTED   (1<<0)

Definition at line 38 of file iommu_table.h.

#define IOMMU_INIT (   _detect,
  _depend,
  _init,
  _late_init 
)    __IOMMU_INIT(_detect, _depend, _init, _late_init, 0)

Definition at line 91 of file iommu_table.h.

#define IOMMU_INIT_FINISH (   _detect,
  _depend,
  _init,
  _late_init 
)    __IOMMU_INIT(_detect, _depend, _init, _late_init, 1)

Definition at line 88 of file iommu_table.h.

#define IOMMU_INIT_POST (   _detect)    __IOMMU_INIT(_detect, pci_swiotlb_detect_4gb, NULL, NULL, 0)

Definition at line 65 of file iommu_table.h.

#define IOMMU_INIT_POST_FINISH (   detect)    __IOMMU_INIT(_detect, pci_swiotlb_detect_4gb, NULL, NULL, 1)

Definition at line 68 of file iommu_table.h.

Function Documentation

void check_iommu_entries ( struct iommu_table_entry start,
struct iommu_table_entry finish 
)

Definition at line 49 of file pci-iommu_table.c.

void sort_iommu_table ( struct iommu_table_entry start,
struct iommu_table_entry finish 
)

Definition at line 27 of file pci-iommu_table.c.

Variable Documentation