summaryrefslogtreecommitdiffstats
path: root/include/drm/ati_pcigart.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2014-09-10 18:23:07 +1000
committerDave Airlie <airlied@redhat.com>2014-09-12 14:11:14 +1000
commitfd7e0d719260259f6e4e7711bd63a4175557d559 (patch)
treec962b80f0ece6a61d2566c8596ebe68c8aeab4f5 /include/drm/ati_pcigart.h
parent10d123b2f2b5bf54f59a884f12018d24a97d5a63 (diff)
downloadlinux-fd7e0d719260259f6e4e7711bd63a4175557d559.tar.bz2
drm: split ati_pcigart.h out of drmP.h
Just move this into a separate header file, and make the two users use it. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/ati_pcigart.h')
-rw-r--r--include/drm/ati_pcigart.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/drm/ati_pcigart.h b/include/drm/ati_pcigart.h
new file mode 100644
index 000000000000..da4bfcd81a37
--- /dev/null
+++ b/include/drm/ati_pcigart.h
@@ -0,0 +1,28 @@
+#ifndef DRM_ATI_PCIGART_H
+#define DRM_ATI_PCIGART_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