diff options
| author | Matt Jacob <mjacob@FreeBSD.org> | 2005-05-11 03:00:50 +0000 |
|---|---|---|
| committer | Matt Jacob <mjacob@FreeBSD.org> | 2005-05-11 03:00:50 +0000 |
| commit | b49c46747a504467c986359688dc0119a69c4a4f (patch) | |
| tree | b4dbb64331f0b7952b94c36d313d9a04907c86a1 /sys/dev/isp/isp_pci.c | |
| parent | b894acfb2acbe56562c866aad42c3a65f9b49321 (diff) | |
Notes
Diffstat (limited to 'sys/dev/isp/isp_pci.c')
| -rw-r--r-- | sys/dev/isp/isp_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index 1e7213c30a55..3a9c041872ba 100644 --- a/sys/dev/isp/isp_pci.c +++ b/sys/dev/isp/isp_pci.c @@ -426,7 +426,7 @@ isp_pci_attach(device_t dev) irq = regs = NULL; rgd = rtp = iqd = 0; - cmd = pci_read_config(dev, PCIR_COMMAND, 1); + cmd = pci_read_config(dev, PCIR_COMMAND, 2); if (cmd & m1) { rtp = (m1 == PCIM_CMD_MEMEN)? SYS_RES_MEMORY : SYS_RES_IOPORT; rgd = (m1 == PCIM_CMD_MEMEN)? MEM_MAP_REG : IO_MAP_REG; @@ -576,7 +576,7 @@ isp_pci_attach(device_t dev) isp->isp_touched = 1; } - pci_write_config(dev, PCIR_COMMAND, cmd, 1); + pci_write_config(dev, PCIR_COMMAND, cmd, 2); /* * Make sure the Cache Line Size register is set sensibly. |
