From a803512edbb04618916c596bab24715c8b1568dc Mon Sep 17 00:00:00 2001 From: arpi_esp Date: Tue, 13 Mar 2001 00:23:52 +0000 Subject: [PATCH] mga_ram_size=x works with hard-coded ramsize too (szabi) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@102 b3059339-0415-0410-9bf9-f77b7e298cf2 --- drivers/mga_vid.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mga_vid.c b/drivers/mga_vid.c index a4ad4a5971..7f0e3f470c 100644 --- a/drivers/mga_vid.c +++ b/drivers/mga_vid.c @@ -157,7 +157,6 @@ static uint32_t mga_ram_size = 0; // how much megabytes videoram we have MODULE_PARM(mga_ram_size, "i"); - static struct pci_dev *pci_dev; static mga_vid_config_t mga_config; @@ -733,15 +732,16 @@ static int mga_vid_find_card(void) // temp = (card_option >> 10) & 0x17; -#ifdef MGA_MEMORY_SIZE - mga_ram_size = MGA_MEMORY_SIZE; - printk(KERN_INFO "mga_vid: hard-coded RAMSIZE is %d MB\n", (unsigned int) mga_ram_size); - -#else if (mga_ram_size) { printk(KERN_INFO "mga_vid: RAMSIZE forced to %d MB\n", mga_ram_size); } else { +#ifdef MGA_MEMORY_SIZE + mga_ram_size = MGA_MEMORY_SIZE; + printk(KERN_INFO "mga_vid: hard-coded RAMSIZE is %d MB\n", (unsigned int) mga_ram_size); + +#else + if (is_g400){ switch((card_option>>10)&0x17){ // SDRAM: @@ -778,9 +778,9 @@ static int mga_vid_find_card(void) } #endif printk(KERN_INFO "mga_vid: detected RAMSIZE is %d MB\n", (unsigned int) mga_ram_size); +#endif } -#endif #ifdef MGA_ALLOW_IRQ if ( mga_irq != -1 ) {