summaryrefslogtreecommitdiff
path: root/linux-core/drmP.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2008-07-26 08:56:23 +1000
committerDave Airlie <airlied@linux.ie>2008-07-26 08:56:23 +1000
commitdf9871064e8b564d9ae2e56d561b64434fd004af (patch)
tree828b84ad7b50d78815ba53c0d833217ac0580e2b /linux-core/drmP.h
parent31da9492a4129f5255e949836c51e9dfbfb270c4 (diff)
radeon: add initial atombios modesetting and GEM -> TTM translation layer.
This is an initial import of the atom bios parser with modesetting support for r500 hw using atombios. It also includes a simple memory manager layer that translates a radeon GEM style interface onto TTM internally. So far this memory manager has only been used for pinned object allocation for the DDX to test modesetting.
Diffstat (limited to 'linux-core/drmP.h')
-rw-r--r--linux-core/drmP.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index 708b4fa0..e3a08e79 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -1046,8 +1046,7 @@ struct drm_agp_ttm_backend {
int populated;
};
#endif
-
-typedef struct ati_pcigart_ttm_backend {
+struct ati_pcigart_ttm_backend {
struct drm_ttm_backend backend;
int populated;
void (*gart_flush_fn)(struct drm_device *dev);
@@ -1057,7 +1056,8 @@ typedef struct ati_pcigart_ttm_backend {
int num_pages;
int bound;
struct drm_device *dev;
-} ati_pcigart_ttm_backend_t;
+};
+extern struct drm_ttm_backend *ati_pcigart_init_ttm(struct drm_device *dev, struct drm_ati_pcigart_info *info, void (*gart_flush_fn)(struct drm_device *dev));
static __inline__ int drm_core_check_feature(struct drm_device *dev,
int feature)
@@ -1396,6 +1396,8 @@ extern int drm_sg_free(struct drm_device *dev, void *data,
/* ATI PCIGART support (ati_pcigart.h) */
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);
+extern int drm_ati_alloc_pcigart_table(struct drm_device *dev,
+ struct drm_ati_pcigart_info *gart_info);
extern drm_dma_handle_t *drm_pci_alloc(struct drm_device *dev, size_t size,
size_t align, dma_addr_t maxaddr);