mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 16:33:02 +00:00
new RAMSIZE detection code... test it\!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@65 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f4936e3362
commit
95e9112d02
@ -715,11 +715,22 @@ static int mga_vid_find_card(void)
|
||||
|
||||
#else
|
||||
if (is_g400){
|
||||
mga_ram_size = 16;
|
||||
switch((card_option>>10)&7){
|
||||
case 0: mga_ram_size = ((card_option>>14)&1)? 32:16; break;
|
||||
case 1:
|
||||
case 2: mga_ram_size = 16; break; // SGRAM
|
||||
case 3:
|
||||
case 5: mga_ram_size = 64; break; // SDRAM
|
||||
case 4: mga_ram_size = 32; break; // SGRAM
|
||||
default: mga_ram_size = 16;
|
||||
}
|
||||
}else{
|
||||
mga_ram_size = 8;
|
||||
switch((card_option>>11)&3){
|
||||
case 0: mga_ram_size = 8; break;
|
||||
default: mga_ram_size = 16;
|
||||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
// printk("List resources -----------\n");
|
||||
for(temp=0;temp<DEVICE_COUNT_RESOURCE;temp++){
|
||||
struct resource *res=&pci_dev->resource[temp];
|
||||
@ -731,6 +742,7 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user