Linux 4.1.18
[linux/fpc-iii.git] / include / drm / ati_pcigart.h
blob5765648b5ef7fb0e32f71fbeb9f9814afa3f9be4
1 #ifndef DRM_ATI_PCIGART_H
2 #define DRM_ATI_PCIGART_H
4 #include <drm/drm_legacy.h>
6 /* location of GART table */
7 #define DRM_ATI_GART_MAIN 1
8 #define DRM_ATI_GART_FB 2
10 #define DRM_ATI_GART_PCI 1
11 #define DRM_ATI_GART_PCIE 2
12 #define DRM_ATI_GART_IGP 3
14 struct drm_ati_pcigart_info {
15 int gart_table_location;
16 int gart_reg_if;
17 void *addr;
18 dma_addr_t bus_addr;
19 dma_addr_t table_mask;
20 struct drm_dma_handle *table_handle;
21 struct drm_local_map mapping;
22 int table_size;
25 extern int drm_ati_pcigart_init(struct drm_device *dev,
26 struct drm_ati_pcigart_info * gart_info);
27 extern int drm_ati_pcigart_cleanup(struct drm_device *dev,
28 struct drm_ati_pcigart_info * gart_info);
30 #endif