]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - include/drm/ati_pcigart.h
drm: split ati_pcigart.h out of drmP.h
[mirror_ubuntu-artful-kernel.git] / include / drm / ati_pcigart.h
CommitLineData
fd7e0d71
DA
1#ifndef DRM_ATI_PCIGART_H
2#define DRM_ATI_PCIGART_H
3
4/* location of GART table */
5#define DRM_ATI_GART_MAIN 1
6#define DRM_ATI_GART_FB 2
7
8#define DRM_ATI_GART_PCI 1
9#define DRM_ATI_GART_PCIE 2
10#define DRM_ATI_GART_IGP 3
11
12struct drm_ati_pcigart_info {
13 int gart_table_location;
14 int gart_reg_if;
15 void *addr;
16 dma_addr_t bus_addr;
17 dma_addr_t table_mask;
18 struct drm_dma_handle *table_handle;
19 struct drm_local_map mapping;
20 int table_size;
21};
22
23extern int drm_ati_pcigart_init(struct drm_device *dev,
24 struct drm_ati_pcigart_info * gart_info);
25extern int drm_ati_pcigart_cleanup(struct drm_device *dev,
26 struct drm_ati_pcigart_info * gart_info);
27
28#endif