ati_pcigart.h 731 B

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