From ebb0b1f9bbc30c20b039160e6f604e97326ca267 Mon Sep 17 00:00:00 2001 From: Cameron Grant Date: Wed, 5 Jan 2000 02:03:55 +0000 Subject: set up the pci regs properly for busmastering. this makes the card work on my smp box. --- sys/dev/sound/pci/es137x.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/dev') diff --git a/sys/dev/sound/pci/es137x.c b/sys/dev/sound/pci/es137x.c index 20cf2ca22aaf..12b63b0a7351 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; -- cgit v1.3