summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-06-26 13:46:36 -0700
committerIan Romanick <idr@us.ibm.com>2007-06-26 13:46:36 -0700
commit8cee7dca95bc2114eb90640cf83ac87c29243683 (patch)
tree4d59b220f5eb96828bf1f18f2ef31b2e59811fb1
parentb9ef1467fed9e96c5e7bd453d01511f8ce98583c (diff)
Clean up warnings about unused variables and functions.
-rw-r--r--linux-core/xgi_drv.c11
-rw-r--r--linux-core/xgi_misc.c34
-rw-r--r--linux-core/xgi_pcie.c2
3 files changed, 4 insertions, 43 deletions
diff --git a/linux-core/xgi_drv.c b/linux-core/xgi_drv.c
index 0c37d00e..75204283 100644
--- a/linux-core/xgi_drv.c
+++ b/linux-core/xgi_drv.c
@@ -153,11 +153,6 @@ static inline void xgi_check_pci_config(xgi_info_t * info, int line)
pci_write_config_word(info->dev, PCI_COMMAND, cmd);
}
-static int xgi_post_vbios(xgi_ioctl_post_vbios_t * info)
-{
- return 1;
-}
-
/*
* struct pci_device_id {
* unsigned int vendor, device; // Vendor and device ID or PCI_ANY_ID
@@ -1484,14 +1479,8 @@ static int __init xgi_init_module(void)
void __exit xgi_exit_module(void)
{
int i;
- xgi_info_t *info, *max_devices;
#ifdef CONFIG_DEVFS_FS
- /*
- XGI_DEVFS_REMOVE_CONTROL();
- for (i = 0; i < XGI_MAX_DEVICES; i++)
- XGI_DEVFS_REMOVE_DEVICE(i);
- */
XGI_DEVFS_REMOVE_DEVICE(xgi_num_devices);
#endif
diff --git a/linux-core/xgi_misc.c b/linux-core/xgi_misc.c
index 06cf0160..8d0e81b6 100644
--- a/linux-core/xgi_misc.c
+++ b/linux-core/xgi_misc.c
@@ -131,7 +131,7 @@ BOOL xgi_ge_irq_handler(xgi_info_t * info)
BOOL is_wrong_signal = FALSE;
static U32 last_int_tick_low,
last_int_tick_high;
- static U32 new_int_tick_low, new_int_tick_high;
+ static U32 new_int_tick_low;
static U32 continoue_int_count = 0;
// OE II is busy.
while (old_ge_status & 0x001c0000) {
@@ -290,9 +290,6 @@ BOOL xgi_ge_irq_handler(xgi_info_t * info)
BOOL xgi_crt_irq_handler(xgi_info_t * info)
{
BOOL ret = FALSE;
- U8 *mmio_vbase = info->mmio.vbase;
- U32 device_status = 0;
- U32 hw_status = 0;
U8 save_3ce = bReadReg(0x3ce);
if (bIn3cf(0x37) & 0x01) // CRT1 interrupt just happened
@@ -303,15 +300,6 @@ BOOL xgi_crt_irq_handler(xgi_info_t * info)
// What happened?
op3cf_37 = bIn3cf(0x37);
-#if 0
- if (op3cf_37 & 0x04)
- device_status |= GDEVST_CONNECT;
- else
- device_status &= ~GDEVST_CONNECT;
-
- device_status |= GDEVST_DEVICE_CHANGED;
- hw_status |= HWST_DEVICE_CHANGED;
-#endif
// Clear CRT interrupt
op3cf_3d = bIn3cf(0x3d);
bOut3cf(0x3d, (op3cf_3d | 0x04));
@@ -326,9 +314,6 @@ BOOL xgi_crt_irq_handler(xgi_info_t * info)
BOOL xgi_dvi_irq_handler(xgi_info_t * info)
{
BOOL ret = FALSE;
- U8 *mmio_vbase = info->mmio.vbase;
- U32 device_status = 0;
- U32 hw_status = 0;
U8 save_3ce = bReadReg(0x3ce);
if (bIn3cf(0x38) & 0x20) // DVI interrupt just happened
@@ -340,28 +325,13 @@ BOOL xgi_dvi_irq_handler(xgi_info_t * info)
// What happened?
op3cf_37 = bIn3cf(0x37);
-#if 0
- //Also update our internal flag
- if (op3cf_37 & 0x10) // Second Monitor plugged In
- {
- device_status |= GDEVST_CONNECT;
- //Because currenly we cannot determine if DVI digital
- //or DVI analog is connected according to DVI interrupt
- //We should still call BIOS to check it when utility ask us
- device_status &= ~GDEVST_CHECKED;
- } else {
- device_status &= ~GDEVST_CONNECT;
- }
-#endif
+
//Notify BIOS that DVI plug/unplug happened
op3x5_5a = bIn3x5(0x5a);
bOut3x5(0x5a, op3x5_5a & 0xf7);
bWriteReg(0x3d4, save_3x4);
- //device_status |= GDEVST_DEVICE_CHANGED;
- //hw_status |= HWST_DEVICE_CHANGED;
-
// Clear DVI interrupt
op3cf_39 = bIn3cf(0x39);
bOut3c5(0x39, (op3cf_39 & ~0x01)); //Set 3cf.39 bit 0 to 0
diff --git a/linux-core/xgi_pcie.c b/linux-core/xgi_pcie.c
index 9457770a..8b024e4a 100644
--- a/linux-core/xgi_pcie.c
+++ b/linux-core/xgi_pcie.c
@@ -350,8 +350,10 @@ void xgi_pcie_heap_check(void)
struct list_head *useList, *temp;
xgi_pcie_block_t *block;
unsigned int ownerIndex;
+#ifdef XGI_DEBUG
char *ownerStr[6] =
{ "2D", "3D", "3D_CMD", "3D_SCR", "3D_TEX", "ELSE" };
+#endif
if (xgi_pcie_heap) {
useList = &xgi_pcie_heap->used_list;