Lines Matching refs:device
36 print_device_info(drmDevicePtr device, int i, bool print_revision) in print_device_info() argument
39 printf("\tavailable_nodes %04x\n", device->available_nodes); in print_device_info()
42 if (device->available_nodes & 1 << j) in print_device_info()
43 printf("\t\tnodes[%d] %s\n", j, device->nodes[j]); in print_device_info()
45 printf("\tbustype %04x\n", device->bustype); in print_device_info()
47 if (device->bustype == DRM_BUS_PCI) { in print_device_info()
49 printf("\t\t\tdomain\t%04x\n",device->businfo.pci->domain); in print_device_info()
50 printf("\t\t\tbus\t%02x\n", device->businfo.pci->bus); in print_device_info()
51 printf("\t\t\tdev\t%02x\n", device->businfo.pci->dev); in print_device_info()
52 printf("\t\t\tfunc\t%1u\n", device->businfo.pci->func); in print_device_info()
56 printf("\t\t\tvendor_id\t%04x\n", device->deviceinfo.pci->vendor_id); in print_device_info()
57 printf("\t\t\tdevice_id\t%04x\n", device->deviceinfo.pci->device_id); in print_device_info()
58 printf("\t\t\tsubvendor_id\t%04x\n", device->deviceinfo.pci->subvendor_id); in print_device_info()
59 printf("\t\t\tsubdevice_id\t%04x\n", device->deviceinfo.pci->subdevice_id); in print_device_info()
61 printf("\t\t\trevision_id\t%02x\n", device->deviceinfo.pci->revision_id); in print_device_info()
65 } else if (device->bustype == DRM_BUS_USB) { in print_device_info()
67 printf("\t\t\tbus\t%03u\n", device->businfo.usb->bus); in print_device_info()
68 printf("\t\t\tdev\t%03u\n", device->businfo.usb->dev); in print_device_info()
72 printf("\t\t\tvendor\t%04x\n", device->deviceinfo.usb->vendor); in print_device_info()
73 printf("\t\t\tproduct\t%04x\n", device->deviceinfo.usb->product); in print_device_info()
74 } else if (device->bustype == DRM_BUS_PLATFORM) { in print_device_info()
75 char **compatible = device->deviceinfo.platform->compatible; in print_device_info()
78 printf("\t\t\tfullname\t%s\n", device->businfo.platform->fullname); in print_device_info()
88 } else if (device->bustype == DRM_BUS_HOST1X) { in print_device_info()
89 char **compatible = device->deviceinfo.platform->compatible; in print_device_info()
92 printf("\t\t\tfullname\t%s\n", device->businfo.host1x->fullname); in print_device_info()
112 drmDevicePtr device; in main() local
147 if (drmGetDevice2(fd, DRM_DEVICE_GET_PCI_REVISION, &device) == 0) { in main()
148 print_device_info(device, i, true); in main()
149 drmFreeDevice(&device); in main()