xref: /haiku/src/add-ons/accelerants/matrox/GetDeviceInfo.c (revision e81a954787e50e56a7f06f72705b7859b6ab06d1)
1 /*
2 	Author:
3 	Rudolf Cornelissen 1/2006
4 */
5 
6 #define MODULE_BIT 0x04000000
7 
8 #include "acc_std.h"
9 
10 /* Get some info about the device */
11 status_t GET_ACCELERANT_DEVICE_INFO(accelerant_device_info * adi)
12 {
13 	LOG(4,("GET_ACCELERANT_DEVICE_INFO: returning info\n"));
14 
15 	/* no info on version is provided, so presumably this is for my info */
16 	adi->version = 1;
17 
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;
23 
24 	return B_OK;
25 }
26