Lines Matching refs:device
33 print_device_info(drmDevicePtr device, int i)
35 printf("device[%i]\n", i);
36 printf("\tavailable_nodes %04x\n", device->available_nodes);
39 if (device->available_nodes & 1 << j)
40 printf("\t\tnodes[%d] %s\n", j, device->nodes[j]);
42 printf("\tbustype %04x\n", device->bustype);
44 if (device->bustype == DRM_BUS_PCI) {
46 printf("\t\t\tdomain\t%04x\n",device->businfo.pci->domain);
47 printf("\t\t\tbu\t%02x\n", device->businfo.pci->bus);
48 printf("\t\t\tde\t%02x\n", device->businfo.pci->dev);
49 printf("\t\t\tfunc\t%1u\n", device->businfo.pci->func);
53 printf("\t\t\tvendor_id\t%04x\n", device->deviceinfo.pci->vendor_id);
54 printf("\t\t\tdevice_id\t%04x\n", device->deviceinfo.pci->device_id);
55 printf("\t\t\tsubvendor_id\t%04x\n", device->deviceinfo.pci->subvendor_id);
56 printf("\t\t\tsubdevice_id\t%04x\n", device->deviceinfo.pci->subdevice_id);
57 printf("\t\t\trevision_id\t%02x\n", device->deviceinfo.pci->revision_id);
68 drmDevicePtr device;
100 if (drmGetDevice(fd, &device) == 0) {
101 print_device_info(device, -1);
102 drmFreeDevice(&device);