1 /* 2 Authors: 3 Mark Watson - 21/6/00, 4 Apsed 5 */ 6 7 #define MODULE_BIT 0x04000000 8 9 #include "acc_std.h" 10 11 /* Get some info about the device */ 12 status_t GET_ACCELERANT_DEVICE_INFO(accelerant_device_info * adi) 13 { 14 /*no info on version is provided, so presumably this is for my info*/ 15 LOG(4,("DEVICE_INFO: version 0x%08x\n", adi->version)); 16 17 switch ((si->ps.secondary_head << 4)|si->ps.card_type) 18 { 19 case 0x01: 20 sprintf(adi->name,"Matrox G400 Plain"); 21 break; 22 case 0x02: 23 sprintf(adi->name,"Matrox G400 MAX"); 24 break; 25 case 0x11: 26 sprintf(adi->name,"Matrox Dualhead G400 Plain"); 27 break; 28 case 0x12: 29 sprintf(adi->name,"Matrox Dualhead G400 MAX"); 30 break; 31 } 32 33 sprintf(adi->chipset,"NVG400"); 34 35 sprintf(adi->serial_no,"01134"); /*FIXME*/ 36 37 adi->memory=si->ps.memory_size * 1024 * 1024; 38 39 adi->dac_speed=si->ps.max_dac1_clock; 40 41 // apsed, TODO ?? GET_ACCELERANT_DEVICE_INFO never called and kind of cards 42 LOG(2,("GET_ACCELERANT_DEVICE_INFO %20s 0x%08x %d\n", "version", adi->version, adi->version)); 43 LOG(2,("GET_ACCELERANT_DEVICE_INFO %20s %s\n", "name", adi->name)); 44 LOG(2,("GET_ACCELERANT_DEVICE_INFO %20s %s\n", "chipset", adi->chipset)); 45 LOG(2,("GET_ACCELERANT_DEVICE_INFO %20s %s\n", "serial_no", adi->serial_no)); 46 LOG(2,("GET_ACCELERANT_DEVICE_INFO %20s 0x%08x %d\n", "memory", adi->memory, adi->memory)); 47 LOG(2,("GET_ACCELERANT_DEVICE_INFO %20s %d\n", "dac_speed", adi->dac_speed)); 48 49 50 return B_OK; 51 } 52