Home | History | Annotate | Line # | Download | only in r128
      1 /*	$NetBSD: ati_pcigart.h,v 1.2 2021/12/18 23:45:42 riastradh Exp $	*/
      2 
      3 /* SPDX-License-Identifier: GPL-2.0 */
      4 #ifndef DRM_ATI_PCIGART_H
      5 #define DRM_ATI_PCIGART_H
      6 
      7 #include <drm/drm_legacy.h>
      8 
      9 /* location of GART table */
     10 #define DRM_ATI_GART_MAIN 1
     11 #define DRM_ATI_GART_FB   2
     12 
     13 #define DRM_ATI_GART_PCI 1
     14 #define DRM_ATI_GART_PCIE 2
     15 #define DRM_ATI_GART_IGP 3
     16 
     17 struct drm_ati_pcigart_info {
     18 	int gart_table_location;
     19 	int gart_reg_if;
     20 	void *addr;
     21 	dma_addr_t bus_addr;
     22 	dma_addr_t table_mask;
     23 	struct drm_dma_handle *table_handle;
     24 	struct drm_local_map mapping;
     25 	int table_size;
     26 };
     27 
     28 extern int drm_ati_pcigart_init(struct drm_device *dev,
     29 				struct drm_ati_pcigart_info * gart_info);
     30 extern int drm_ati_pcigart_cleanup(struct drm_device *dev,
     31 				   struct drm_ati_pcigart_info * gart_info);
     32 
     33 #endif
     34