diff options
author | cg <cg@FreeBSD.org> | 2000-01-05 02:03:55 +0000 |
---|---|---|
committer | cg <cg@FreeBSD.org> | 2000-01-05 02:03:55 +0000 |
commit | 3df7871bf80ed3f55eda8b9e6684be468b466cce (patch) | |
tree | b5091c4785be424748c116b355cadb2956cfa40f | |
parent | fe734395ef0627d6daa46e36cd3fa332a4b57f27 (diff) | |
download | FreeBSD-src-3df7871bf80ed3f55eda8b9e6684be468b466cce.zip FreeBSD-src-3df7871bf80ed3f55eda8b9e6684be468b466cce.tar.gz |
set up the pci regs properly for busmastering. this makes the card work on
my smp box.
-rw-r--r-- | sys/dev/sound/pci/es137x.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/sound/pci/es137x.c b/sys/dev/sound/pci/es137x.c index 20cf2ca..12b63b0 100644 --- a/sys/dev/sound/pci/es137x.c +++ b/sys/dev/sound/pci/es137x.c @@ -736,6 +736,9 @@ es_pci_attach(device_t dev) mapped = 0; data = pci_read_config(dev, PCIR_COMMAND, 2); + data |= (PCIM_CMD_PORTEN|PCIM_CMD_MEMEN|PCIM_CMD_BUSMASTEREN); + pci_write_config(dev, PCIR_COMMAND, data, 2); + data = pci_read_config(dev, PCIR_COMMAND, 2); if (mapped == 0 && (data & PCIM_CMD_MEMEN)) { regid = MEM_MAP_REG; type = SYS_RES_MEMORY; |