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
;
19 dma_addr_t table_mask
;
20 struct drm_dma_handle
*table_handle
;
21 struct drm_local_map mapping
;
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
);