Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Dave Airlie | fd7e0d7 | 2014-09-10 18:23:07 +1000 | [diff] [blame] | 2 | #ifndef DRM_ATI_PCIGART_H |
| 3 | #define DRM_ATI_PCIGART_H |
| 4 | |
Daniel Vetter | ba8286f | 2014-09-11 07:43:25 +0200 | [diff] [blame] | 5 | #include <drm/drm_legacy.h> |
| 6 | |
Dave Airlie | fd7e0d7 | 2014-09-10 18:23:07 +1000 | [diff] [blame] | 7 | /* location of GART table */ |
| 8 | #define DRM_ATI_GART_MAIN 1 |
| 9 | #define DRM_ATI_GART_FB 2 |
| 10 | |
| 11 | #define DRM_ATI_GART_PCI 1 |
| 12 | #define DRM_ATI_GART_PCIE 2 |
| 13 | #define DRM_ATI_GART_IGP 3 |
| 14 | |
| 15 | struct drm_ati_pcigart_info { |
| 16 | int gart_table_location; |
| 17 | int gart_reg_if; |
| 18 | void *addr; |
| 19 | dma_addr_t bus_addr; |
| 20 | dma_addr_t table_mask; |
| 21 | struct drm_dma_handle *table_handle; |
| 22 | struct drm_local_map mapping; |
| 23 | int table_size; |
| 24 | }; |
| 25 | |
| 26 | extern int drm_ati_pcigart_init(struct drm_device *dev, |
| 27 | struct drm_ati_pcigart_info * gart_info); |
| 28 | extern int drm_ati_pcigart_cleanup(struct drm_device *dev, |
| 29 | struct drm_ati_pcigart_info * gart_info); |
| 30 | |
| 31 | #endif |