patch-2.3.49 linux/include/asm-arm/pci.h
Next file: linux/include/asm-arm/pgtable.h
Previous file: linux/include/asm-arm/parport.h
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Mon Feb 28 14:16:37 2000
- Orig file:
v2.3.48/linux/include/asm-arm/pci.h
- Orig date:
Sun Feb 20 21:12:39 2000
diff -u --recursive --new-file v2.3.48/linux/include/asm-arm/pci.h linux/include/asm-arm/pci.h
@@ -20,19 +20,7 @@
* sets *dma_addrp to the pci side dma address as well, else *dma_addrp
* is undefined.
*/
-#define pci_alloc_consistent(hwdev,size,handle) \
- ({ \
- void *__ret; \
- int __gfp = GFP_KERNEL; \
- \
- if ((hwdev) == NULL || \
- (hwdev)->dma_mask != 0xffffffff) \
- __gfp |= GFP_DMA; \
- \
- __ret = consistent_alloc(__gfp, (size), \
- (handle)); \
- __ret; \
- })
+extern void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size, dma_addr_t *handle);
/* Free and unmap a consistent DMA buffer.
* cpu_addr is what was returned from pci_alloc_consistent,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)