Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef DRM_ATI_PCIGART_H
0003 #define DRM_ATI_PCIGART_H
0004 
0005 #include <drm/drm_legacy.h>
0006 
0007 /* location of GART table */
0008 #define DRM_ATI_GART_MAIN 1
0009 #define DRM_ATI_GART_FB   2
0010 
0011 #define DRM_ATI_GART_PCI 1
0012 #define DRM_ATI_GART_PCIE 2
0013 #define DRM_ATI_GART_IGP 3
0014 
0015 struct drm_ati_pcigart_info {
0016     int gart_table_location;
0017     int gart_reg_if;
0018     void *addr;
0019     dma_addr_t bus_addr;
0020     dma_addr_t table_mask;
0021     struct drm_dma_handle *table_handle;
0022     struct drm_local_map mapping;
0023     int table_size;
0024 };
0025 
0026 extern int drm_ati_pcigart_init(struct drm_device *dev,
0027                 struct drm_ati_pcigart_info * gart_info);
0028 extern int drm_ati_pcigart_cleanup(struct drm_device *dev,
0029                    struct drm_ati_pcigart_info * gart_info);
0030 
0031 #endif