Rev 6102 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6102 | Rev 6588 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | 3 | ||
4 | #include |
4 | #include |
5 | #include |
5 | #include |
6 | #include |
6 | #include |
- | 7 | #include |
|
7 | #include |
8 | #include |
8 | #include |
9 | #include |
Line 9... | Line 10... | ||
9 | #include |
10 | #include |
10 | 11 | ||
Line 24... | Line 25... | ||
24 | 25 | ||
25 | static inline int is_device_dma_capable(struct device *dev) |
26 | static inline int is_device_dma_capable(struct device *dev) |
26 | { |
27 | { |
27 | return dev->dma_mask != NULL && *dev->dma_mask != DMA_MASK_NONE; |
28 | return dev->dma_mask != NULL && *dev->dma_mask != DMA_MASK_NONE; |
- | 29 | } |
|
- | 30 | ||
- | 31 | #ifdef CONFIG_HAS_DMA |
|
- | 32 | #include |
|
- | 33 | #else |
|
- | 34 | #include |
|
28 | } |
35 | #endif |
29 | #ifndef dma_max_pfn |
36 | #ifndef dma_max_pfn |
30 | static inline unsigned long dma_max_pfn(struct device *dev) |
37 | static inline unsigned long dma_max_pfn(struct device *dev) |
31 | { |
38 | { |
32 | return *dev->dma_mask >> PAGE_SHIFT; |
39 | return *dev->dma_mask >> PAGE_SHIFT; |