From: Peter Avalos Date: Sat, 7 Jul 2007 00:10:39 +0000 (+0000) Subject: Set allow_memio to 1 if fetching the allow_memio hint fails. This X-Git-Tag: v2.0.1~2622 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/7dafb3325359c3f944d2541aed855ae65a8da687?hp=1e1f3d880ca0f1bd95b6b70557de06b515cbb7fb Set allow_memio to 1 if fetching the allow_memio hint fails. This is the default behavior according the the bootverbose printf in the failure case. Obtained-from: FreeBSD --- diff --git a/sys/dev/disk/aic7xxx/ahd_pci.c b/sys/dev/disk/aic7xxx/ahd_pci.c index 019c46bcaf..4fcf139923 100644 --- a/sys/dev/disk/aic7xxx/ahd_pci.c +++ b/sys/dev/disk/aic7xxx/ahd_pci.c @@ -30,8 +30,8 @@ * * $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/ahd_pci.c#17 $ * - * $FreeBSD: src/sys/dev/aic7xxx/ahd_pci.c,v 1.18 2005/03/05 19:24:22 imp Exp $ - * $DragonFly: src/sys/dev/disk/aic7xxx/ahd_pci.c,v 1.11 2007/07/06 23:48:20 pavalos Exp $ + * $FreeBSD: src/sys/dev/aic7xxx/ahd_pci.c,v 1.19 2005/09/22 04:56:59 gibbs Exp $ + * $DragonFly: src/sys/dev/disk/aic7xxx/ahd_pci.c,v 1.12 2007/07/07 00:10:39 pavalos Exp $ */ #include "aic79xx_osm.h" @@ -161,6 +161,7 @@ ahd_pci_map_registers(struct ahd_softc *ahd) if (bootverbose) device_printf(ahd->dev_softc, "Defaulting to MEMIO on\n"); + allow_memio = 1; } if ((command & PCIM_CMD_MEMEN) != 0