diff options
author | 2006-07-20 20:54:51 +0000 | |
---|---|---|
committer | 2006-07-20 20:54:51 +0000 | |
commit | d4faa71e665ae13d72edf096928d5d7e1bc1ab29 (patch) | |
tree | 61365cd0eeb3c4440a5c65ce0c04cba10b934697 /sys/dev/pci/vga_pci.c | |
parent | Not all Cheetah machines have the DSSI controller at a non-canonical address; (diff) | |
download | wireguard-openbsd-d4faa71e665ae13d72edf096928d5d7e1bc1ab29.tar.xz wireguard-openbsd-d4faa71e665ae13d72edf096928d5d7e1bc1ab29.zip |
Enable bus master; X probably needs it to do accelerated graphics.
ok deraadt@
Diffstat (limited to 'sys/dev/pci/vga_pci.c')
-rw-r--r-- | sys/dev/pci/vga_pci.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/pci/vga_pci.c b/sys/dev/pci/vga_pci.c index 53cd29bf18f..83588cb5680 100644 --- a/sys/dev/pci/vga_pci.c +++ b/sys/dev/pci/vga_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vga_pci.c,v 1.23 2006/03/16 21:32:34 matthieu Exp $ */ +/* $OpenBSD: vga_pci.c,v 1.24 2006/07/20 20:54:51 kettenis Exp $ */ /* $NetBSD: vga_pci.c,v 1.3 1998/06/08 06:55:58 thorpej Exp $ */ /* @@ -142,6 +142,14 @@ void vga_pci_attach(struct device *parent, struct device *self, void *aux) { struct pci_attach_args *pa = aux; + pcireg_t reg; + + /* + * Enable bus master; X might need this for accelerated graphics. + */ + reg = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); + reg |= PCI_COMMAND_MASTER_ENABLE; + pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, reg); #ifdef PCIAGP agp_attach(parent, self, aux); |