aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov2015-08-16 22:09:06 -0500
committerEmil Velikov2015-08-24 11:36:28 -0500
commitb556ea127e004b734b2a7bf8e67cdcf56312171d (patch)
tree8bf1bf5d926d0e8d8c4593f2b0c55efbedff3073 /Makefile.am
parent5c42b5e36a4a02e579ec5dcdc3a95ce58538224c (diff)
downloadexternal-libdrm-b556ea127e004b734b2a7bf8e67cdcf56312171d.tar.gz
external-libdrm-b556ea127e004b734b2a7bf8e67cdcf56312171d.tar.xz
external-libdrm-b556ea127e004b734b2a7bf8e67cdcf56312171d.zip
drm: add interface to get drm devices on the system v3
For mutiple GPU support, the devices on the system should be enumerated to get necessary information about each device, and the drmGetDevices interface is added for this. Currently only PCI devices are supported for the enumeration. Typical usage: int count; drmDevicePtr *foo; count = drmGetDevices(NULL, 0); foo = calloc(count, sizeof(drmDevicePtr)); count = drmGetDevices(foo, count); /* find proper device, open correct device node, etc */ drmFreeDevices(foo, count); free(foo); v2: [Jammy Zhou] - return a list of devices, rather than nodes v3: [Jammy Zhou] - fix the signed extension for PCI device info Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions