blob: 5765648b5ef7fb0e32f71fbeb9f9814afa3f9be4 [file] [log] [blame]
Dave Airliefd7e0d72014-09-10 18:23:07 +10001#ifndef DRM_ATI_PCIGART_H
2#define DRM_ATI_PCIGART_H
3
Daniel Vetterba8286f2014-09-11 07:43:25 +02004#include <drm/drm_legacy.h>
5
Dave Airliefd7e0d72014-09-10 18:23:07 +10006/* location of GART table */
7#define DRM_ATI_GART_MAIN 1
8#define DRM_ATI_GART_FB 2
9
10#define DRM_ATI_GART_PCI 1
11#define DRM_ATI_GART_PCIE 2
12#define DRM_ATI_GART_IGP 3
13
14struct drm_ati_pcigart_info {
15 int gart_table_location;
16 int gart_reg_if;
17 void *addr;
18 dma_addr_t bus_addr;
19 dma_addr_t table_mask;
20 struct drm_dma_handle *table_handle;
21 struct drm_local_map mapping;
22 int table_size;
23};
24
25extern int drm_ati_pcigart_init(struct drm_device *dev,
26 struct drm_ati_pcigart_info * gart_info);
27extern int drm_ati_pcigart_cleanup(struct drm_device *dev,
28 struct drm_ati_pcigart_info * gart_info);
29
30#endif