diff options
author | Dave Airlie <airlied@linux.ie> | 2005-09-11 08:51:23 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-09-11 08:51:23 +0000 |
commit | 5565a00916122bb131ce89a2ca8f7f81ddc9387c (patch) | |
tree | fd1b06f4a2b4d7f56130e8308789ec7368f70e92 /linux-core/drmP.h | |
parent | 29326c1a8990ffb512a891d8deecf4cd4046915c (diff) |
Add GART in FB support for ati pcigart, and PCIE support for r300
Diffstat (limited to 'linux-core/drmP.h')
-rw-r--r-- | linux-core/drmP.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h index 8b1728bb..81c542dc 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -523,6 +523,17 @@ typedef struct drm_vbl_sig { struct task_struct *task; } drm_vbl_sig_t; +/* location of GART table */ +#define DRM_ATI_GART_MAIN 1 +#define DRM_ATI_GART_FB 2 + +typedef struct ati_pcigart_info { + int gart_table_location; + int is_pcie; + unsigned long addr; + dma_addr_t bus_addr; +} drm_ati_pcigart_info; + /** * DRM driver structure. This structure represent the common code for * a family of cards. There will one drm_device for each card present @@ -978,10 +989,8 @@ extern int drm_sg_free(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg); /* ATI PCIGART support (ati_pcigart.h) */ -extern int drm_ati_pcigart_init(drm_device_t * dev, - unsigned long *addr, dma_addr_t * bus_addr, int is_pcie); -extern int drm_ati_pcigart_cleanup(drm_device_t * dev, - unsigned long addr, dma_addr_t bus_addr); +extern int drm_ati_pcigart_init(drm_device_t * dev, drm_ati_pcigart_info *gart_info); +extern int drm_ati_pcigart_cleanup(drm_device_t * dev, drm_ati_pcigart_info *gart_info); extern drm_dma_handle_t *drm_pci_alloc(drm_device_t * dev, size_t size, size_t align, dma_addr_t maxaddr); |