tcp: Add APICall trace entry and move TRACEs into locked parts.
[haiku.git] / src / add-ons / accelerants / matrox / GetDeviceInfo.c
blob1d94a8c8ed31ca35dfd8c9e78c0e1c52971a8519
1 /*
2 Author:
3 Rudolf Cornelissen 1/2006
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, si->adi.name);
19 sprintf(adi->chipset, si->adi.chipset);
20 sprintf(adi->serial_no, "unknown");
21 adi->memory = (si->ps.memory_size * 1024 * 1024);
22 adi->dac_speed = si->ps.max_dac1_clock;
24 return B_OK;