Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
32 lines
731 B
C
32 lines
731 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#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
|