• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef DRM_ATI_PCIGART_H
2 #define DRM_ATI_PCIGART_H
3 
4 #include <drm/drm_legacy.h>
5 
6 /* location of GART table */
7 #define DRM_ATI_GART_MAIN 1
8 #define DRM_ATI_GART_FB   2
9 
10 #define DRM_ATI_GART_PCI 1
11 #define DRM_ATI_GART_PCIE 2
12 #define DRM_ATI_GART_IGP 3
13 
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;
23 };
24 
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);
29 
30 #endif
31