BPicture: Fix archive constructor.
[haiku.git] / src / add-ons / accelerants / skeleton / GetDeviceInfo.c
blobbc18184fbcd5e76bec98876b923305d9a1d5c772
1 /*
2 Author:
3 Rudolf Cornelissen 7/2004-11/2004
4 */
6 #define MODULE_BIT 0x04000000
8 #include "acc_std.h"
10 /* Get some info about the device */
11 status_t GET_ACCELERANT_DEVICE_INFO(accelerant_device_info * adi)
13 LOG(4,("GET_ACCELERANT_DEVICE_INFO: returning info\n"));
15 /* no info on version is provided, so presumably this is for my info */
16 adi->version = 1;
18 sprintf(adi->name, "nVidia chipset");
19 switch (si->ps.card_type)
21 case NV04:
22 sprintf(adi->chipset, "NV04");
23 break;
24 case NV05:
25 sprintf(adi->chipset, "NV05");
26 break;
27 case NV05M64:
28 sprintf(adi->chipset, "NV05 model 64");
29 break;
30 case NV06:
31 sprintf(adi->chipset, "NV06");
32 break;
33 case NV10:
34 sprintf(adi->chipset, "NV10");
35 break;
36 case NV11:
37 case NV11M:
38 sprintf(adi->chipset, "NV11");
39 break;
40 case NV15:
41 sprintf(adi->chipset, "NV15");
42 break;
43 case NV17:
44 case NV17M:
45 sprintf(adi->chipset, "NV17");
46 break;
47 case NV18:
48 case NV18M:
49 sprintf(adi->chipset, "NV18");
50 break;
51 case NV20:
52 sprintf(adi->chipset, "NV20");
53 break;
54 case NV25:
55 sprintf(adi->chipset, "NV25");
56 break;
57 case NV28:
58 sprintf(adi->chipset, "NV28");
59 break;
60 case NV30:
61 sprintf(adi->chipset, "NV30");
62 break;
63 case NV31:
64 sprintf(adi->chipset, "NV31");
65 break;
66 case NV34:
67 sprintf(adi->chipset, "NV34");
68 break;
69 case NV35:
70 sprintf(adi->chipset, "NV35");
71 break;
72 case NV36:
73 sprintf(adi->chipset, "NV36");
74 break;
75 case NV38:
76 sprintf(adi->chipset, "NV38");
77 break;
78 case NV40:
79 sprintf(adi->chipset, "NV40");
80 break;
81 case NV41:
82 sprintf(adi->chipset, "NV41");
83 break;
84 case NV43:
85 sprintf(adi->chipset, "NV43");
86 break;
87 case NV45:
88 sprintf(adi->chipset, "NV45");
89 break;
90 default:
91 sprintf(adi->chipset, "unknown");
92 break;
94 sprintf(adi->serial_no, "unknown");
95 adi->memory = si->ps.memory_size;
96 adi->dac_speed = si->ps.max_dac1_clock;
98 return B_OK;