Lines Matching defs:device
36 print_device_info(drmDevicePtr device, int i, bool print_revision)
38 printf("device[%i]\n", i);
39 printf("+-> available_nodes %#04x\n", device->available_nodes);
42 if (device->available_nodes & 1 << j)
43 printf("| +-> nodes[%d] %s\n", j, device->nodes[j]);
45 printf("+-> bustype %04x\n", device->bustype);
46 if (device->bustype == DRM_BUS_PCI) {
48 printf("| +-> domain %04x\n",device->businfo.pci->domain);
49 printf("| +-> bus %02x\n", device->businfo.pci->bus);
50 printf("| +-> dev %02x\n", device->businfo.pci->dev);
51 printf("| +-> func %1u\n", device->businfo.pci->func);
55 printf(" +-> vendor_id %04x\n", device->deviceinfo.pci->vendor_id);
56 printf(" +-> device_id %04x\n", device->deviceinfo.pci->device_id);
57 printf(" +-> subvendor_id %04x\n", device->deviceinfo.pci->subvendor_id);
58 printf(" +-> subdevice_id %04x\n", device->deviceinfo.pci->subdevice_id);
60 printf(" +-> revision_id %02x\n", device->deviceinfo.pci->revision_id);
64 } else if (device->bustype == DRM_BUS_USB) {
66 printf("| +-> bus %03u\n", device->businfo.usb->bus);
67 printf("| +-> dev %03u\n", device->businfo.usb->dev);
71 printf(" +-> vendor %04x\n", device->deviceinfo.usb->vendor);
72 printf(" +-> product %04x\n", device->deviceinfo.usb->product);
73 } else if (device->bustype == DRM_BUS_PLATFORM) {
74 char **compatible = device->deviceinfo.platform->compatible;
77 printf("| +-> fullname\t%s\n", device->businfo.platform->fullname);
87 } else if (device->bustype == DRM_BUS_HOST1X) {
88 char **compatible = device->deviceinfo.host1x->compatible;
91 printf("| +-> fullname\t%s\n", device->businfo.host1x->fullname);
111 drmDevicePtr device;
114 printf("--- Checking the number of DRM device available ---\n");
131 printf("--- Retrieving devices information (PCI device revision is ignored) ---\n");
144 printf("--- Opening device node %s ---\n", devices[i]->nodes[j]);
151 printf("--- Retrieving device info, for node %s ---\n", devices[i]->nodes[j]);
152 if (drmGetDevice2(fd, DRM_DEVICE_GET_PCI_REVISION, &device) == 0) {
153 print_device_info(device, i, true);
154 drmFreeDevice(&device);