libdrm: Use DRM_IOCTL_GET_PCIINFO on DragonFly

It is a cleaner and less fragile way to get PCI IDs than the one
currently used by local DPorts patches.

Signed-off-by: François Tigeot <ftigeot@wolfpond.org>
main
François Tigeot 2018-12-12 20:48:36 +01:00 committed by Ilia Mirkin
parent 200e9e98a2
commit 8f2e09251e
1 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@
#define DRM_MAJOR 226 /* Linux */
#endif
#ifdef __OpenBSD__
#if defined(__OpenBSD__) || defined(__DragonFly__)
struct drm_pciinfo {
uint16_t domain;
uint8_t bus;
@ -3063,7 +3063,7 @@ static int drmParsePciBusInfo(int maj, int min, drmPciBusInfoPtr info)
info->func = func;
return 0;
#elif defined(__OpenBSD__)
#elif defined(__OpenBSD__) || defined(__DragonFly__)
struct drm_pciinfo pinfo;
int fd, type;
@ -3229,7 +3229,7 @@ static int drmParsePciDeviceInfo(int maj, int min,
return parse_config_sysfs_file(maj, min, device);
return 0;
#elif defined(__OpenBSD__)
#elif defined(__OpenBSD__) || defined(__DragonFly__)
struct drm_pciinfo pinfo;
int fd, type;