7,13 → 7,6 |
#include <linux/dma-mapping.h> |
|
static inline void * |
pci_alloc_consistent(struct pci_dev *hwdev, size_t size, |
dma_addr_t *dma_handle) |
{ |
return dma_alloc_coherent(hwdev == NULL ? NULL : &hwdev->dev, size, dma_handle, GFP_ATOMIC); |
} |
|
static inline void * |
pci_zalloc_consistent(struct pci_dev *hwdev, size_t size, |
dma_addr_t *dma_handle) |
{ |
21,13 → 14,6 |
size, dma_handle, GFP_ATOMIC); |
} |
|
static inline void |
pci_free_consistent(struct pci_dev *hwdev, size_t size, |
void *vaddr, dma_addr_t dma_handle) |
{ |
dma_free_coherent(hwdev == NULL ? NULL : &hwdev->dev, size, vaddr, dma_handle); |
} |
|
static inline dma_addr_t |
pci_map_single(struct pci_dev *hwdev, void *ptr, size_t size, int direction) |
{ |