diff options
author | kato <kato@FreeBSD.org> | 1997-12-04 13:15:16 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1997-12-04 13:15:16 +0000 |
commit | b2913f2f290c239a3023fd37953a0fb51a34b02a (patch) | |
tree | 088dfd912dd144b4da4b5f137d2a6aae832971f3 | |
parent | 50af0662d9caaf78aeedcb37d392c63c57f20203 (diff) | |
download | FreeBSD-src-b2913f2f290c239a3023fd37953a0fb51a34b02a.zip FreeBSD-src-b2913f2f290c239a3023fd37953a0fb51a34b02a.tar.gz |
Use the argmument `port' instead of hard coded address in atapi_probe.
Submitted by: kura@melchior.q.t.u-tokyo.ac.jp (Tomohiko Kurahashi)
-rw-r--r-- | sys/i386/isa/atapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/isa/atapi.c b/sys/i386/isa/atapi.c index 296903d..2a7025f 100644 --- a/sys/i386/isa/atapi.c +++ b/sys/i386/isa/atapi.c @@ -380,7 +380,7 @@ static struct atapi_params *atapi_probe (int port, int unit) /* Wait for DRQ deassert. */ for (cnt=2000; cnt>0; --cnt) - if (! (inb (0x640 + AR_STATUS) & ARS_DRQ)) + if (! (inb (port + AR_STATUS) & ARS_DRQ)) break; outb (port + AR_COMMAND, ATAPIC_IDENTIFY); |