Lines Matching refs:di

558 static bool probeDevice(device_info *di)
566 if (SupportedVendors[vendor].vendor_id != di->pcii.vendor_id)
572 if (device->device_id != di->pcii.device_id)
575 di->num_crtc = asic_properties[device->asic].has_crtc2 ? 2 : 1;
576 di->tv_chip = asic_properties[device->asic].tv_chip;
577 di->asic = device->asic;
578 di->is_mobility = (device->features & ISMOBILITY) ? true : false;
579 di->has_vip = asic_properties[device->asic].has_vip;
580 di->new_pll = asic_properties[device->asic].new_pll;
581 di->is_igp = (device->features & INTEGRATED) ? true : false;
593 di->has_no_i2c = true;
596 di->has_no_i2c = false;
647 di->acc_dma = false;
650 di->acc_dma = true;
654 if (Radeon_MapBIOS(&di->pcii, &di->rom) != B_OK)
658 if (Radeon_ReadBIOSData(di) != B_OK) {
659 Radeon_UnmapBIOS(&di->rom);
664 Radeon_UnmapBIOS(&di->rom);
669 sprintf(di->name, "graphics/%04X_%04X_%02X%02X%02X",
670 di->pcii.vendor_id, di->pcii.device_id,
671 di->pcii.bus, di->pcii.device, di->pcii.function);
672 SHOW_FLOW(3, "making /dev/%s", di->name);
678 sprintf(di->video_name, "video/radeon/%04X_%04X_%02X%02X%02X",
679 di->pcii.vendor_id, di->pcii.device_id,
680 di->pcii.bus, di->pcii.device, di->pcii.function);
682 di->is_open = 0;
683 di->shared_area = -1;
684 di->si = NULL;
702 device_info *di = devices->di;
705 memset(di, 0, sizeof(*di));
707 if ((*pci_bus->get_nth_pci_info)(pci_index, &(di->pcii)) != B_NO_ERROR)
710 if (probeDevice(di)) {
711 devices->device_names[2 * count] = di->name;
712 devices->device_names[2 * count + 1] = di->video_name;
713 di++;