aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2002-12-01 07:52:35 +0000
committerScott Long <scottl@FreeBSD.org>2002-12-01 07:52:35 +0000
commitadd68794241b12d8e058ed3f443fbca60dac1ce2 (patch)
treea158d2cfc993fb380e20b5af182d028fbb67fdff /sys/dev
parent481a41742f0cf3f887dbdc064990af6243d3b002 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/aic7xxx/ahd_pci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/aic7xxx/ahd_pci.c b/sys/dev/aic7xxx/ahd_pci.c
index 67b5459f8635a..6268d5b1967d4 100644
--- a/sys/dev/aic7xxx/ahd_pci.c
+++ b/sys/dev/aic7xxx/ahd_pci.c
@@ -28,7 +28,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/ahd_pci.c#7 $
+ * $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/ahd_pci.c#9 $
*
* $FreeBSD$
*/
@@ -157,8 +157,7 @@ ahd_pci_map_registers(struct ahd_softc *ahd)
regs_type = 0;
regs_id = 0;
if ((command & PCIM_CMD_MEMEN) != 0
- && ((ahd->chip & AHD_BUS_MASK) != AHD_PCIX
- || (ahd->bugs & AHD_PCIX_MMAPIO_BUG) == 0)) {
+ && (ahd->bugs & AHD_PCIX_MMAPIO_BUG) == 0) {
regs_type = SYS_RES_MEMORY;
regs_id = AHD_PCI_MEMADDR;
@@ -178,7 +177,8 @@ ahd_pci_map_registers(struct ahd_softc *ahd)
* Do a quick test to see if memory mapped
* I/O is functioning correctly.
*/
- if (error != 0 || ahd_inb(ahd, HCNTRL) == 0xFF) {
+ if (error != 0
+ || ahd_pci_test_register_access(ahd) != 0) {
device_printf(ahd->dev_softc,
"PCI Device %d:%d:%d failed memory "
"mapped test. Using PIO.\n",