summaryrefslogtreecommitdiffstats
path: root/kernel/include/drm/ati_pcigart.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/drm/ati_pcigart.h')
-rw-r--r--kernel/include/drm/ati_pcigart.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/kernel/include/drm/ati_pcigart.h b/kernel/include/drm/ati_pcigart.h
new file mode 100644
index 000000000..5765648b5
--- /dev/null
+++ b/kernel/include/drm/ati_pcigart.h
@@ -0,0 +1,30 @@
+#ifndef DRM_ATI_PCIGART_H
+#define DRM_ATI_PCIGART_H
+
+#include <drm/drm_legacy.h>
+
+/* location of GART table */
+#define DRM_ATI_GART_MAIN 1
+#define DRM_ATI_GART_FB 2
+
+#define DRM_ATI_GART_PCI 1
+#define DRM_ATI_GART_PCIE 2
+#define DRM_ATI_GART_IGP 3
+
+struct drm_ati_pcigart_info {
+ int gart_table_location;
+ int gart_reg_if;
+ void *addr;
+ dma_addr_t bus_addr;
+ dma_addr_t table_mask;
+ struct drm_dma_handle *table_handle;
+ struct drm_local_map mapping;
+ int table_size;
+};
+
+extern int drm_ati_pcigart_init(struct drm_device *dev,
+ struct drm_ati_pcigart_info * gart_info);
+extern int drm_ati_pcigart_cleanup(struct drm_device *dev,
+ struct drm_ati_pcigart_info * gart_info);
+
+#endif