Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
amd_iommu_proto.h File Reference
#include "amd_iommu_types.h"

Go to the source code of this file.

Macros

#define PPR_SUCCESS   0x0
 
#define PPR_INVALID   0x1
 
#define PPR_FAILURE   0xf
 

Functions

int amd_iommu_init_dma_ops (void)
 
int amd_iommu_init_passthrough (void)
 
irqreturn_t amd_iommu_int_thread (int irq, void *data)
 
irqreturn_t amd_iommu_int_handler (int irq, void *data)
 
void amd_iommu_apply_erratum_63 (u16 devid)
 
void amd_iommu_reset_cmd_buffer (struct amd_iommu *iommu)
 
int amd_iommu_init_devices (void)
 
void amd_iommu_uninit_devices (void)
 
void amd_iommu_init_notifier (void)
 
void amd_iommu_init_api (void)
 
int amd_iommu_supported (void)
 
int amd_iommu_prepare (void)
 
int amd_iommu_enable (void)
 
void amd_iommu_disable (void)
 
int amd_iommu_reenable (int)
 
int amd_iommu_enable_faulting (void)
 
bool amd_iommu_v2_supported (void)
 
int amd_iommu_register_ppr_notifier (struct notifier_block *nb)
 
int amd_iommu_unregister_ppr_notifier (struct notifier_block *nb)
 
void amd_iommu_domain_direct_map (struct iommu_domain *dom)
 
int amd_iommu_domain_enable_v2 (struct iommu_domain *dom, int pasids)
 
int amd_iommu_flush_page (struct iommu_domain *dom, int pasid, u64 address)
 
int amd_iommu_flush_tlb (struct iommu_domain *dom, int pasid)
 
int amd_iommu_domain_set_gcr3 (struct iommu_domain *dom, int pasid, unsigned long cr3)
 
int amd_iommu_domain_clear_gcr3 (struct iommu_domain *dom, int pasid)
 
struct iommu_domainamd_iommu_get_v2_domain (struct pci_dev *pdev)
 
int amd_iommu_complete_ppr (struct pci_dev *pdev, int pasid, int status, int tag)
 

Macro Definition Documentation

#define PPR_FAILURE   0xf

Definition at line 61 of file amd_iommu_proto.h.

#define PPR_INVALID   0x1

Definition at line 60 of file amd_iommu_proto.h.

#define PPR_SUCCESS   0x0

Definition at line 59 of file amd_iommu_proto.h.

Function Documentation

void amd_iommu_apply_erratum_63 ( u16  devid)

Definition at line 662 of file amd_iommu_init.c.

int amd_iommu_complete_ppr ( struct pci_dev pdev,
int  pasid,
int  status,
int  tag 
)

Definition at line 3698 of file amd_iommu.c.

void amd_iommu_disable ( void  )
int amd_iommu_domain_clear_gcr3 ( struct iommu_domain dom,
int  pasid 
)

Definition at line 3684 of file amd_iommu.c.

void amd_iommu_domain_direct_map ( struct iommu_domain dom)

Definition at line 3435 of file amd_iommu.c.

int amd_iommu_domain_enable_v2 ( struct iommu_domain dom,
int  pasids 
)

Definition at line 3456 of file amd_iommu.c.

int amd_iommu_domain_set_gcr3 ( struct iommu_domain dom,
int  pasid,
unsigned long  cr3 
)

Definition at line 3669 of file amd_iommu.c.

int amd_iommu_enable ( void  )
int amd_iommu_enable_faulting ( void  )
int amd_iommu_flush_page ( struct iommu_domain dom,
int  pasid,
u64  address 
)

Definition at line 3567 of file amd_iommu.c.

int amd_iommu_flush_tlb ( struct iommu_domain dom,
int  pasid 
)

Definition at line 3590 of file amd_iommu.c.

struct iommu_domain* amd_iommu_get_v2_domain ( struct pci_dev pdev)
read

Definition at line 3717 of file amd_iommu.c.

void amd_iommu_init_api ( void  )

Definition at line 3048 of file amd_iommu.c.

int amd_iommu_init_devices ( void  )

Definition at line 419 of file amd_iommu.c.

int amd_iommu_init_dma_ops ( void  )

Definition at line 3053 of file amd_iommu.c.

void amd_iommu_init_notifier ( void  )

Definition at line 2413 of file amd_iommu.c.

int amd_iommu_init_passthrough ( void  )

Definition at line 3387 of file amd_iommu.c.

irqreturn_t amd_iommu_int_handler ( int  irq,
void data 
)

Definition at line 730 of file amd_iommu.c.

irqreturn_t amd_iommu_int_thread ( int  irq,
void data 
)

Definition at line 718 of file amd_iommu.c.

int amd_iommu_prepare ( void  )
int amd_iommu_reenable ( int  )
int amd_iommu_register_ppr_notifier ( struct notifier_block nb)

Definition at line 3423 of file amd_iommu.c.

void amd_iommu_reset_cmd_buffer ( struct amd_iommu iommu)

Definition at line 523 of file amd_iommu_init.c.

int amd_iommu_supported ( void  )
void amd_iommu_uninit_devices ( void  )

Definition at line 401 of file amd_iommu.c.

int amd_iommu_unregister_ppr_notifier ( struct notifier_block nb)

Definition at line 3429 of file amd_iommu.c.

bool amd_iommu_v2_supported ( void  )

Definition at line 2074 of file amd_iommu_init.c.