diff options
author | 2008-12-08 19:16:00 +0000 | |
---|---|---|
committer | 2008-12-08 19:16:00 +0000 | |
commit | 00fc3c75c6403ba7f4a7a64f1f06910759975e41 (patch) | |
tree | a5e2128074075084b2e94cc1c00bc4eb2246393b | |
parent | Make the various drm drivers print the interrupt they're using. (diff) | |
download | wireguard-openbsd-00fc3c75c6403ba7f4a7a64f1f06910759975e41.tar.xz wireguard-openbsd-00fc3c75c6403ba7f4a7a64f1f06910759975e41.zip |
Don't forget to map the pci interrupt.
Noticed by kettenis@.
-rw-r--r-- | sys/dev/pci/drm/mga_drv.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/mga_drv.c b/sys/dev/pci/drm/mga_drv.c index ae790759e68..278249746d7 100644 --- a/sys/dev/pci/drm/mga_drv.c +++ b/sys/dev/pci/drm/mga_drv.c @@ -167,8 +167,12 @@ mgadrm_attach(struct device *parent, struct device *self, void *aux) printf(": can't map mmio space\n"); return; } - /* XXX map interrupt */ - printf("\n"); + + if (pci_intr_map(pa, &dev_priv->ih) != 0) { + printf(": couldn't map interrupt\n"); + return; + } + printf(": %s\n", pci_intr_string(pa->pa_pc, dev_priv->ih)); /* XXX pcie */ is_agp = pci_get_capability(pa->pa_pc, pa->pa_tag, PCI_CAP_AGP, |