ati_pcigart.h 692 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef DRM_ATI_PCIGART_H
  2. #define DRM_ATI_PCIGART_H
  3. #include <drm/drm_legacy.h>
  4. /* location of GART table */
  5. #define DRM_ATI_GART_MAIN 1
  6. #define DRM_ATI_GART_FB 2
  7. #define DRM_ATI_GART_PCI 1
  8. #define DRM_ATI_GART_PCIE 2
  9. #define DRM_ATI_GART_IGP 3
  10. struct drm_ati_pcigart_info {
  11. int gart_table_location;
  12. int gart_reg_if;
  13. void *addr;
  14. dma_addr_t bus_addr;
  15. dma_addr_t table_mask;
  16. struct drm_dma_handle *table_handle;
  17. struct drm_local_map mapping;
  18. int table_size;
  19. };
  20. extern int drm_ati_pcigart_init(struct drm_device *dev,
  21. struct drm_ati_pcigart_info * gart_info);
  22. extern int drm_ati_pcigart_cleanup(struct drm_device *dev,
  23. struct drm_ati_pcigart_info * gart_info);
  24. #endif