Subversion Repositories Kolibri OS

Rev

Rev 6125 | Rev 6934 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6125 Rev 6588
Line 5... Line 5...
5
#define _ASM_GENERIC_PCI_DMA_COMPAT_H
5
#define _ASM_GENERIC_PCI_DMA_COMPAT_H
Line 6... Line 6...
6
 
6
 
Line 7... Line 7...
7
#include 
7
#include 
-
 
8
 
-
 
9
static inline void *
-
 
10
pci_alloc_consistent(struct pci_dev *hwdev, size_t size,
-
 
11
		     dma_addr_t *dma_handle)
-
 
12
{
-
 
13
	return dma_alloc_coherent(hwdev == NULL ? NULL : &hwdev->dev, size, dma_handle, GFP_ATOMIC);
-
 
14
}
8
 
15
 
9
static inline void *
16
static inline void *
10
pci_zalloc_consistent(struct pci_dev *hwdev, size_t size,
17
pci_zalloc_consistent(struct pci_dev *hwdev, size_t size,
11
		      dma_addr_t *dma_handle)
18
		      dma_addr_t *dma_handle)
12
{
19
{
13
	return dma_zalloc_coherent(hwdev == NULL ? NULL : &hwdev->dev,
20
	return dma_zalloc_coherent(hwdev == NULL ? NULL : &hwdev->dev,
Line -... Line 21...
-
 
21
				   size, dma_handle, GFP_ATOMIC);
-
 
22
}
-
 
23
 
-
 
24
static inline void
-
 
25
pci_free_consistent(struct pci_dev *hwdev, size_t size,
-
 
26
		    void *vaddr, dma_addr_t dma_handle)
-
 
27
{
14
				   size, dma_handle, GFP_ATOMIC);
28
	dma_free_coherent(hwdev == NULL ? NULL : &hwdev->dev, size, vaddr, dma_handle);
15
}
29
}
16
 
30
 
17
static inline dma_addr_t
31
static inline dma_addr_t
18
pci_map_single(struct pci_dev *hwdev, void *ptr, size_t size, int direction)
32
pci_map_single(struct pci_dev *hwdev, void *ptr, size_t size, int direction)