diff options
author | cg <cg@FreeBSD.org> | 2001-04-24 22:35:11 +0000 |
---|---|---|
committer | cg <cg@FreeBSD.org> | 2001-04-24 22:35:11 +0000 |
commit | b92d41b0e964c6163071505bd9fdc9f02b6410fe (patch) | |
tree | b58d63d46d97f2d830c30798a37134797f8add3e /sys/dev/sound | |
parent | 7f17e1a5d9fcd3c26f189f4b66bfa38bce98f1a2 (diff) | |
download | FreeBSD-src-b92d41b0e964c6163071505bd9fdc9f02b6410fe.zip FreeBSD-src-b92d41b0e964c6163071505bd9fdc9f02b6410fe.tar.gz |
get the parameters to pci_write_config the right way round. this may fix
some non-functional cards/machines
Diffstat (limited to 'sys/dev/sound')
-rw-r--r-- | sys/dev/sound/pci/csa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sound/pci/csa.c b/sys/dev/sound/pci/csa.c index 9dad2f2..55fa9e7 100644 --- a/sys/dev/sound/pci/csa.c +++ b/sys/dev/sound/pci/csa.c @@ -128,10 +128,10 @@ csa_attach(device_t dev) scp->dev = dev; /* Wake up the device. */ - stcmd = pci_read_config(dev, PCIR_COMMAND, 4); + stcmd = pci_read_config(dev, PCIR_COMMAND, 2); if ((stcmd & PCIM_CMD_MEMEN) == 0 || (stcmd & PCIM_CMD_BUSMASTEREN) == 0) { stcmd |= (PCIM_CMD_MEMEN | PCIM_CMD_BUSMASTEREN); - pci_write_config(dev, PCIR_COMMAND, 4, stcmd); + pci_write_config(dev, PCIR_COMMAND, stcmd, 2); } /* Allocate the resources. */ |