| /* SPDX-License-Identifier: GPL-2.0 */ |
| #ifndef DRM_ATI_PCIGART_H |
| #define DRM_ATI_PCIGART_H |
| #include <drm/drm_legacy.h> |
| /* location of GART table */ |
| #define DRM_ATI_GART_MAIN 1 |
| #define DRM_ATI_GART_FB 2 |
| #define DRM_ATI_GART_PCI 1 |
| #define DRM_ATI_GART_PCIE 2 |
| #define DRM_ATI_GART_IGP 3 |
| struct drm_ati_pcigart_info { |
| struct drm_dma_handle *table_handle; |
| struct drm_local_map mapping; |
| extern int drm_ati_pcigart_init(struct drm_device *dev, |
| struct drm_ati_pcigart_info * gart_info); |
| extern int drm_ati_pcigart_cleanup(struct drm_device *dev, |
| struct drm_ati_pcigart_info * gart_info); |