summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Delgass <ldelgass@users.sourceforge.net>2003-04-29 06:25:54 +0000
committerLeif Delgass <ldelgass@users.sourceforge.net>2003-04-29 06:25:54 +0000
commit09ca62c26c4d31fdd69b47a883a4456bf22a85e1 (patch)
treecb3f8e4f4b1cabfaf558baa12183989ff1c93724
parent537fb508db04b208cb59bdfb44b7445a04a0cd1f (diff)
Prototypes for DRM(pci_alloc/free)
-rw-r--r--linux-core/drmP.h7
-rw-r--r--linux/drmP.h7
2 files changed, 14 insertions, 0 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index 43d3776f..95067342 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -864,6 +864,13 @@ extern int DRM(sg_free)(struct inode *inode, struct file *filp,
unsigned int cmd, unsigned long arg);
#endif
+#if __HAVE_PCI_DMA
+ /* Consistent PCI DMA support (drm_pci.h) */
+extern void *DRM(pci_alloc)(drm_device_t *dev, size_t size, size_t align,
+ dma_addr_t maxaddr, dma_addr_t *busaddr);
+extern void DRM(pci_free)(drm_device_t *dev, size_t size, void *vaddr, dma_addr_t busaddr);
+#endif
+
/* ATI PCIGART support (ati_pcigart.h) */
extern int DRM(ati_pcigart_init)(drm_device_t *dev,
unsigned long *addr,
diff --git a/linux/drmP.h b/linux/drmP.h
index 43d3776f..95067342 100644
--- a/linux/drmP.h
+++ b/linux/drmP.h
@@ -864,6 +864,13 @@ extern int DRM(sg_free)(struct inode *inode, struct file *filp,
unsigned int cmd, unsigned long arg);
#endif
+#if __HAVE_PCI_DMA
+ /* Consistent PCI DMA support (drm_pci.h) */
+extern void *DRM(pci_alloc)(drm_device_t *dev, size_t size, size_t align,
+ dma_addr_t maxaddr, dma_addr_t *busaddr);
+extern void DRM(pci_free)(drm_device_t *dev, size_t size, void *vaddr, dma_addr_t busaddr);
+#endif
+
/* ATI PCIGART support (ati_pcigart.h) */
extern int DRM(ati_pcigart_init)(drm_device_t *dev,
unsigned long *addr,