aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/drmP.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/drm/drmP.h')
-rw-r--r--drivers/char/drm/drmP.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h
index 804e622436a9..7e633a9ce933 100644
--- a/drivers/char/drm/drmP.h
+++ b/drivers/char/drm/drmP.h
@@ -527,6 +527,12 @@ typedef struct drm_sigdata {
527 drm_hw_lock_t *lock; 527 drm_hw_lock_t *lock;
528} drm_sigdata_t; 528} drm_sigdata_t;
529 529
530typedef struct drm_dma_handle {
531 dma_addr_t busaddr;
532 void *vaddr;
533 size_t size;
534} drm_dma_handle_t;
535
530/** 536/**
531 * Mappings list 537 * Mappings list
532 */ 538 */
@@ -978,12 +984,10 @@ extern int drm_ati_pcigart_cleanup(drm_device_t *dev,
978 unsigned long addr, 984 unsigned long addr,
979 dma_addr_t bus_addr); 985 dma_addr_t bus_addr);
980 986
981extern void *drm_pci_alloc(drm_device_t * dev, size_t size, 987extern drm_dma_handle_t *drm_pci_alloc(drm_device_t *dev, size_t size,
982 size_t align, dma_addr_t maxaddr, 988 size_t align, dma_addr_t maxaddr);
983 dma_addr_t * busaddr); 989extern void __drm_pci_free(drm_device_t *dev, drm_dma_handle_t *dmah);
984 990extern void drm_pci_free(drm_device_t *dev, drm_dma_handle_t *dmah);
985extern void drm_pci_free(drm_device_t * dev, size_t size,
986 void *vaddr, dma_addr_t busaddr);
987 991
988 /* sysfs support (drm_sysfs.c) */ 992 /* sysfs support (drm_sysfs.c) */
989struct drm_sysfs_class; 993struct drm_sysfs_class;