Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
msm_iommu.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/errno.h>
#include <linux/io.h>
#include <linux/interrupt.h>
#include <linux/list.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/iommu.h>
#include <linux/clk.h>
#include <asm/cacheflush.h>
#include <asm/sizes.h>
#include <mach/iommu_hw-8xxx.h>
#include <mach/iommu.h>

Go to the source code of this file.

Data Structures

struct  msm_priv
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define MRC(reg, processor, op1, crn, crm, op2)
 
#define RCP15_PRRR(reg)   MRC(reg, p15, 0, c10, c2, 0)
 
#define RCP15_NMRR(reg)   MRC(reg, p15, 0, c10, c2, 1)
 
#define MSM_IOMMU_PGSIZES   (SZ_4K | SZ_64K | SZ_1M | SZ_16M)
 

Functions

 DEFINE_SPINLOCK (msm_iommu_lock)
 
irqreturn_t msm_iommu_fault_handler (int irq, void *dev_id)
 
 subsys_initcall (msm_iommu_init)
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_AUTHOR ("Stepan Moskovchenko <[email protected]>")
 

Macro Definition Documentation

#define MRC (   reg,
  processor,
  op1,
  crn,
  crm,
  op2 
)
Value:
__asm__ __volatile__ ( \
" mrc " #processor "," #op1 ", %0," #crn "," #crm "," #op2 "\n" \
: "=r" (reg))

Definition at line 37 of file msm_iommu.c.

#define MSM_IOMMU_PGSIZES   (SZ_4K | SZ_64K | SZ_1M | SZ_16M)

Definition at line 46 of file msm_iommu.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 18 of file msm_iommu.c.

#define RCP15_NMRR (   reg)    MRC(reg, p15, 0, c10, c2, 1)

Definition at line 43 of file msm_iommu.c.

#define RCP15_PRRR (   reg)    MRC(reg, p15, 0, c10, c2, 0)

Definition at line 42 of file msm_iommu.c.

Function Documentation

DEFINE_SPINLOCK ( msm_iommu_lock  )
MODULE_AUTHOR ( "Stepan Moskovchenko <[email protected]>"  )
MODULE_LICENSE ( "GPL v2 )
irqreturn_t msm_iommu_fault_handler ( int  irq,
void dev_id 
)

Definition at line 639 of file msm_iommu.c.

subsys_initcall ( msm_iommu_init  )