mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-25 04:50:11 +01:00
FreeBSD: Fill in domain field when supported.
This commit is contained in:
parent
fc7d4d19d3
commit
f0fd53f86b
1 changed files with 4 additions and 1 deletions
|
|
@ -516,8 +516,11 @@ static int drm_load(drm_device_t *dev)
|
|||
DRM_DEBUG( "\n" );
|
||||
|
||||
dev->irq = pci_get_irq(dev->device);
|
||||
/* XXX Fix domain number (alpha hoses) */
|
||||
#if defined(__FreeBSD__) && __FreeBSD_version >= 700053
|
||||
dev->pci_domain = pci_get_domain(dev->device);
|
||||
#else
|
||||
dev->pci_domain = 0;
|
||||
#endif
|
||||
dev->pci_bus = pci_get_bus(dev->device);
|
||||
dev->pci_slot = pci_get_slot(dev->device);
|
||||
dev->pci_func = pci_get_function(dev->device);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue