diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-11-24 04:25:29 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-11-24 04:25:29 +0000 |
commit | 8b63df143ff968fc031574de5d5f6bc1e427bf60 (patch) | |
tree | 013338df9ee0e19d57a19d12daf24309c16c7d94 /sys/dev/pci | |
parent | 70726140b5f5aeb5d0261c046b8541c97ac47d29 (diff) |
This got lost somehow.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/drm/mga_drv.c | 4 |
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); } |