mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-24 11:20:12 +01:00
Function pci_get_bus_and_slot needs 2.6.19 or later
This commit is contained in:
parent
8a4d7f34d9
commit
a122e7dabf
1 changed files with 5 additions and 0 deletions
|
|
@ -223,6 +223,7 @@ void nouveau_mem_close(struct drm_device *dev)
|
|||
static uint32_t
|
||||
nouveau_mem_fb_amount_igp(struct drm_device *dev)
|
||||
{
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
|
||||
struct drm_nouveau_private *dev_priv = dev->dev_private;
|
||||
struct pci_dev *bridge;
|
||||
uint32_t mem;
|
||||
|
|
@ -243,6 +244,10 @@ nouveau_mem_fb_amount_igp(struct drm_device *dev)
|
|||
}
|
||||
|
||||
DRM_ERROR("impossible!\n");
|
||||
#else
|
||||
DRM_ERROR("Linux kernel >= 2.6.19 required to check for igp memory amount\n");
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue