loader: allow attempting more than one method of PCI identification.
authorGary Wong <gtw@gnu.org>
Thu, 22 May 2014 02:39:15 +0000 (20:39 -0600)
committerGary Wong <gtw@gnu.org>
Fri, 30 May 2014 02:25:37 +0000 (20:25 -0600)
commit090c772b8ac50c99e293862b496344a7ab8d297e
tree4a66f72e7d40dd320270debb8744efae8e417f22
parentfebec731475a5b288cc50660b2d32780e395b950
loader: allow attempting more than one method of PCI identification.

loader_get_pci_id_for_fd() and loader_get_device_name_for_fd() now attempt
all available strategies to identify the hardware, instead of conditionally
compiling in a single test.  The existing libudev and DRM approaches have
been retained, attempting first libudev (if available) and then DRM (if
necessary).

Signed-off-by: Gary Wong <gtw@gnu.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/loader/loader.c