From 15418cf2bbe0358653ac2a3707aa2d89926deac3 Mon Sep 17 00:00:00 2001 From: Cameron Grant Date: Tue, 24 Apr 2001 22:35:11 +0000 Subject: [PATCH] get the parameters to pci_write_config the right way round. this may fix some non-functional cards/machines --- sys/dev/sound/pci/csa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/sound/pci/csa.c b/sys/dev/sound/pci/csa.c index 9dad2f2c1f6..55fa9e7aad0 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. */