added 'accelerant_device_info struct to shared_info, now containing much more detailed info about the card in use. This info is returned via hook GET_ACCELERANT_DEVICE_INFO in case someone uses that :).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15893 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
797d1a66fa
commit
bd3f19ae33
@ -1,6 +1,6 @@
|
||||
/*
|
||||
Author:
|
||||
Rudolf Cornelissen 7/2004-11/2004
|
||||
Rudolf Cornelissen 7/2004-01/2006
|
||||
*/
|
||||
|
||||
#define MODULE_BIT 0x04000000
|
||||
@ -15,85 +15,8 @@ status_t GET_ACCELERANT_DEVICE_INFO(accelerant_device_info * adi)
|
||||
/* no info on version is provided, so presumably this is for my info */
|
||||
adi->version = 1;
|
||||
|
||||
sprintf(adi->name, "nVidia chipset");
|
||||
switch (si->ps.card_type)
|
||||
{
|
||||
case NV04:
|
||||
sprintf(adi->chipset, "NV04");
|
||||
break;
|
||||
case NV05:
|
||||
sprintf(adi->chipset, "NV05");
|
||||
break;
|
||||
case NV05M64:
|
||||
sprintf(adi->chipset, "NV05 model 64");
|
||||
break;
|
||||
case NV06:
|
||||
sprintf(adi->chipset, "NV06");
|
||||
break;
|
||||
case NV10:
|
||||
sprintf(adi->chipset, "NV10");
|
||||
break;
|
||||
case NV11:
|
||||
case NV11M:
|
||||
sprintf(adi->chipset, "NV11");
|
||||
break;
|
||||
case NV15:
|
||||
sprintf(adi->chipset, "NV15");
|
||||
break;
|
||||
case NV17:
|
||||
case NV17M:
|
||||
sprintf(adi->chipset, "NV17");
|
||||
break;
|
||||
case NV18:
|
||||
case NV18M:
|
||||
sprintf(adi->chipset, "NV18");
|
||||
break;
|
||||
case NV20:
|
||||
sprintf(adi->chipset, "NV20");
|
||||
break;
|
||||
case NV25:
|
||||
sprintf(adi->chipset, "NV25");
|
||||
break;
|
||||
case NV28:
|
||||
sprintf(adi->chipset, "NV28");
|
||||
break;
|
||||
case NV30:
|
||||
sprintf(adi->chipset, "NV30");
|
||||
break;
|
||||
case NV31:
|
||||
sprintf(adi->chipset, "NV31");
|
||||
break;
|
||||
case NV34:
|
||||
sprintf(adi->chipset, "NV34");
|
||||
break;
|
||||
case NV35:
|
||||
sprintf(adi->chipset, "NV35");
|
||||
break;
|
||||
case NV36:
|
||||
sprintf(adi->chipset, "NV36");
|
||||
break;
|
||||
case NV38:
|
||||
sprintf(adi->chipset, "NV38");
|
||||
break;
|
||||
case NV40:
|
||||
sprintf(adi->chipset, "NV40");
|
||||
break;
|
||||
case NV41:
|
||||
sprintf(adi->chipset, "NV41");
|
||||
break;
|
||||
case NV43:
|
||||
sprintf(adi->chipset, "NV43");
|
||||
break;
|
||||
case NV45:
|
||||
sprintf(adi->chipset, "NV45");
|
||||
break;
|
||||
case NV47:
|
||||
sprintf(adi->chipset, "NV47");
|
||||
break;
|
||||
default:
|
||||
sprintf(adi->chipset, "unknown");
|
||||
break;
|
||||
}
|
||||
sprintf(adi->name, si->adi.name);
|
||||
sprintf(adi->chipset, si->adi.chipset);
|
||||
sprintf(adi->serial_no, "unknown");
|
||||
adi->memory = si->ps.memory_size;
|
||||
adi->dac_speed = si->ps.max_dac1_clock;
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user