summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/mga_drv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/mga_drv.c b/sys/dev/pci/drm/mga_drv.c
index 0d8580edfc2..91cc7691219 100644
--- a/sys/dev/pci/drm/mga_drv.c
+++ b/sys/dev/pci/drm/mga_drv.c
@@ -168,6 +168,10 @@ mgadrm_attach(struct device *parent, struct device *self, void *aux)
return;
}
+ /* XXX pcie */
+ is_agp = pci_get_capability(pa->pa_pc, pa->pa_tag, PCI_CAP_AGP,
+ NULL, NULL);
+
dev_priv->drmdev = drm_attach_pci(&mga_driver, pa, is_agp, self);
}