diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/pci/aic7870.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/pci/aic7870.c b/sys/pci/aic7870.c index dda058c..20eb453c 100644 --- a/sys/pci/aic7870.c +++ b/sys/pci/aic7870.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: aic7870.c,v 1.32 1996/05/12 01:50:33 gibbs Exp $ + * $Id: aic7870.c,v 1.33 1996/05/12 16:25:32 gibbs Exp $ */ #include <pci.h> @@ -428,6 +428,17 @@ aic7870_attach(config_id, unit) if(inb(i) != 0x00) break; } + if(i == io_port + TARG_SCRATCH) { + /* + * Try looking for all ones. You can get + * either. + */ + for(i=io_port + TARG_SCRATCH; + i < io_port + 0x60; i++) { + if(inb(i) != 0xff) + break; + } + } if(i != io_port + 0x60) { printf("ahc%d: Using left over BIOS settings\n", ahc->unit); |