summaryrefslogtreecommitdiff
path: root/linux-core/xgi_pcie.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-07-16 20:58:43 -0700
committerIan Romanick <idr@us.ibm.com>2007-07-16 20:58:43 -0700
commit658ff2daf3d2a080da2d859f522a627aef841637 (patch)
tree505eb9f0cde7a5b5a06bf288693026cc54224732 /linux-core/xgi_pcie.c
parent4575d5b8f18fef8cd19e7884bf8dab5e8f71ec9e (diff)
Eliminate several useless ioctls and associated cruft.
The ioctlss XGI_ESC_DEVICE_INFO, XGI_ESC_MEM_COLLECT, XGI_ESC_PCIE_CHECK, XGI_ESC_GET_SCREEN_INFO, XGI_ESC_PUT_SCREEN_INFO, XGI_ESC_MMIO_INFO, and XGI_ESC_SAREA_INFO, are completely unnecessary. The will be doubly useless when the driver is converted to the DRM infrastructure.
Diffstat (limited to 'linux-core/xgi_pcie.c')
-rw-r--r--linux-core/xgi_pcie.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/linux-core/xgi_pcie.c b/linux-core/xgi_pcie.c
index 70459b2c..0d641ab8 100644
--- a/linux-core/xgi_pcie.c
+++ b/linux-core/xgi_pcie.c
@@ -344,35 +344,6 @@ int xgi_pcie_heap_init(struct xgi_info * info)
return 0;
}
-void xgi_pcie_heap_check(void)
-{
-#ifdef XGI_DEBUG
- struct xgi_pcie_block *block;
- unsigned int ownerIndex;
- static const char *const ownerStr[6] =
- { "2D", "3D", "3D_CMD", "3D_SCR", "3D_TEX", "ELSE" };
-
- if (!xgi_pcie_heap) {
- return;
- }
-
- XGI_INFO("pcie freemax = 0x%lx\n", xgi_pcie_heap->max_freesize);
- list_for_each_entry(block, &xgi_pcie_heap->used_list, list) {
- if (block->owner == PCIE_2D)
- ownerIndex = 0;
- else if (block->owner > PCIE_3D_TEXTURE
- || block->owner < PCIE_2D
- || block->owner < PCIE_3D)
- ownerIndex = 5;
- else
- ownerIndex = block->owner - PCIE_3D + 1;
-
- XGI_INFO("Allocated by %s, block offset: 0x%lx, size: 0x%lx \n",
- ownerStr[ownerIndex], block->offset, block->size);
- }
-#endif
-}
-
void xgi_pcie_heap_cleanup(struct xgi_info * info)
{
struct list_head *free_list;