~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/x86/include/asm/amd_iommu_proto.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#ifndef _ASM_X86_AMD_IOMMU_PROTO_H
20
20
#define _ASM_X86_AMD_IOMMU_PROTO_H
21
21
 
22
 
struct amd_iommu;
 
22
#include <asm/amd_iommu_types.h>
23
23
 
24
24
extern int amd_iommu_init_dma_ops(void);
25
25
extern int amd_iommu_init_passthrough(void);
 
26
extern irqreturn_t amd_iommu_int_thread(int irq, void *data);
26
27
extern irqreturn_t amd_iommu_int_handler(int irq, void *data);
27
 
extern void amd_iommu_flush_all_domains(void);
28
 
extern void amd_iommu_flush_all_devices(void);
29
28
extern void amd_iommu_apply_erratum_63(u16 devid);
30
29
extern void amd_iommu_reset_cmd_buffer(struct amd_iommu *iommu);
31
30
extern int amd_iommu_init_devices(void);
44
43
               (pdev->device == PCI_DEVICE_ID_RD890_IOMMU);
45
44
}
46
45
 
 
46
static inline bool iommu_feature(struct amd_iommu *iommu, u64 f)
 
47
{
 
48
        if (!(iommu->cap & (1 << IOMMU_CAP_EFR)))
 
49
                return false;
 
50
 
 
51
        return !!(iommu->features & f);
 
52
}
 
53
 
47
54
#endif /* _ASM_X86_AMD_IOMMU_PROTO_H  */