Last change
on this file since 522 was 441, checked in by Paul Smedley, 16 years ago |
Move functions out of config.h into appropriate linux header
|
File size:
823 bytes
|
Line | |
---|
1 | #ifndef _ASM_LINUX_DMA_MAPPING_H
|
---|
2 | #define _ASM_LINUX_DMA_MAPPING_H
|
---|
3 |
|
---|
4 | /* These definitions mirror those in pci.h, so they can be used
|
---|
5 | * interchangeably with their PCI_ counterparts */
|
---|
6 | enum dma_data_direction {
|
---|
7 | DMA_BIDIRECTIONAL = 0,
|
---|
8 | DMA_TO_DEVICE = 1,
|
---|
9 | DMA_FROM_DEVICE = 2,
|
---|
10 | DMA_NONE = 3,
|
---|
11 | };
|
---|
12 |
|
---|
13 | #define DMA_64BIT_MASK 0xffffffffffffffffULL
|
---|
14 | //#define DMA_32BIT_MASK 0x00000000ffffffffULL
|
---|
15 |
|
---|
16 | #ifndef DMA_32BIT_MASK
|
---|
17 | #define DMA_32BIT_MASK 0xffffffff
|
---|
18 | #endif
|
---|
19 | #ifndef DMA_31BIT_MASK
|
---|
20 | #define DMA_31BIT_MASK 0x000000007fffffffULL
|
---|
21 | #endif
|
---|
22 | #ifndef DMA_30BIT_MASK
|
---|
23 | #define DMA_30BIT_MASK 0x000000003fffffffULL
|
---|
24 | #endif
|
---|
25 | #ifndef DMA_28BIT_MASK
|
---|
26 | #define DMA_28BIT_MASK 0x000000000fffffffULL
|
---|
27 | #endif
|
---|
28 | #ifndef DMA_24BIT_MASK
|
---|
29 | #define DMA_24BIT_MASK 0x0000000000ffffffULL
|
---|
30 | #endif
|
---|
31 | #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
|
---|
32 | #endif
|
---|
33 |
|
---|
34 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.