aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/initrd.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2006-11-05 22:10:04 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-11-05 22:10:04 -0500
commitd1ed6a3ea10aa7b199c434f6ffd1b6761896567a (patch)
treead65f11ace691a630885607604e1da0aa16db820 /include/linux/initrd.h
parent59359ff87700f5e742c96a55da9cf0819984c128 (diff)
parent38c94377a36f70e86665231c9f477e445c806618 (diff)
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: [NETLABEL]: Fix build failure. [IPV6]: Give sit driver an appropriate module alias. [IPV6]: Add ndisc_netdev_notifier unregister. [NET]: __alloc_pages() failures reported due to fragmentation [PKTGEN]: TCI endianness fixes [TG3]: Fix 2nd ifup failure on 5752M. [NETFILTER] bug: skb->protocol is already net-endian [NETFILTER] bug: nfulnl_msg_config_mode ->copy_range is 32bit [NETFILTER] bug: NFULA_CFG_QTHRESH uses 32bit [IPV6]: Fix ECN bug on big-endian [IPX]: Annotate and fix IPX checksum [IPX]: Trivial parts of endianness annotations
Diffstat (limited to 'include/linux/initrd.h')
0 files changed, 0 insertions, 0 deletions
ghua.yu@intel.com> 2009-04-24 20:30:20 -0400 committer David Woodhouse <David.Woodhouse@intel.com> 2009-04-29 01:54:34 -0400 Intel IOMMU Pass Through Support' href='/cgit/cgit.cgi/litmus-rt-ext-res.git/commit/include/linux/dma_remapping.h?id=4ed0d3e6c64cfd9ba4ceb2099b10d1cf8ece4320'>4ed0d3e6c64c
318fe7df9d84


f5d1b97bcdd8
8bc1f85c02a2
c66b9906f863
e61d98d8dad0
2ae21010694e
e61d98d8dad0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52



                        
                                                                  
   



                                                                              
 


                                                               

                         
                                   
                             
 
                                 
                                 

                                 
                   

                   
 
 
                         
                                                       
                                                           
                                                                
                         
                               




                                                                 



                                                                      


                                                             
                           
                               
      
 
 
      
#ifndef _DMA_REMAPPING_H
#define _DMA_REMAPPING_H

/*
 * VT-d hardware uses 4KiB page size regardless of host page size.
 */
#define VTD_PAGE_SHIFT		(12)
#define VTD_PAGE_SIZE		(1UL << VTD_PAGE_SHIFT)
#define VTD_PAGE_MASK		(((u64)-1) << VTD_PAGE_SHIFT)
#define VTD_PAGE_ALIGN(addr)	(((addr) + VTD_PAGE_SIZE - 1) & VTD_PAGE_MASK)

#define VTD_STRIDE_SHIFT        (9)
#define VTD_STRIDE_MASK         (((u64)-1) << VTD_STRIDE_SHIFT)

#define DMA_PTE_READ (1)
#define DMA_PTE_WRITE (2)
#define DMA_PTE_LARGE_PAGE (1 << 7)
#define DMA_PTE_SNP (1 << 11)

#define CONTEXT_TT_MULTI_LEVEL	0
#define CONTEXT_TT_DEV_IOTLB	1
#define CONTEXT_TT_PASS_THROUGH 2

struct intel_iommu;
struct dmar_domain;
struct root_entry;


#ifdef CONFIG_INTEL_IOMMU
extern void free_dmar_iommu(struct intel_iommu *iommu);
extern int iommu_calculate_agaw(struct intel_iommu *iommu);
extern int iommu_calculate_max_sagaw(struct intel_iommu *iommu);
extern int dmar_disabled;
extern int intel_iommu_enabled;
#else
static inline int iommu_calculate_agaw(struct intel_iommu *iommu)
{
	return 0;
}
static inline int iommu_calculate_max_sagaw(struct intel_iommu *iommu)
{
	return 0;
}
static inline void free_dmar_iommu(struct intel_iommu *iommu)
{
}
#define dmar_disabled	(1)
#define intel_iommu_enabled (0)
#endif


#endif