mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
![Daniel Vetter](/assets/img/avatar_default.png)
A few odd cases: - mgag200 someho had a totally unused drm_dma_handle_t. Remove it. - i915 still uses the legacy pci dma alloc api, so grows an include. Everything else fairly standard. v2: Include "drm_legacy.h" in drm.ko source files for consistency. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
30 lines
692 B
C
30 lines
692 B
C
#ifndef DRM_ATI_PCIGART_H
|
|
#define DRM_ATI_PCIGART_H
|
|
|
|
#include <drm/drm_legacy.h>
|
|
|
|
/* location of GART table */
|
|
#define DRM_ATI_GART_MAIN 1
|
|
#define DRM_ATI_GART_FB 2
|
|
|
|
#define DRM_ATI_GART_PCI 1
|
|
#define DRM_ATI_GART_PCIE 2
|
|
#define DRM_ATI_GART_IGP 3
|
|
|
|
struct drm_ati_pcigart_info {
|
|
int gart_table_location;
|
|
int gart_reg_if;
|
|
void *addr;
|
|
dma_addr_t bus_addr;
|
|
dma_addr_t table_mask;
|
|
struct drm_dma_handle *table_handle;
|
|
struct drm_local_map mapping;
|
|
int table_size;
|
|
};
|
|
|
|
extern int drm_ati_pcigart_init(struct drm_device *dev,
|
|
struct drm_ati_pcigart_info * gart_info);
|
|
extern int drm_ati_pcigart_cleanup(struct drm_device *dev,
|
|
struct drm_ati_pcigart_info * gart_info);
|
|
|
|
#endif
|