1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Use the argmument `port' instead of hard coded address in atapi_probe.

Submitted by:	kura@melchior.q.t.u-tokyo.ac.jp (Tomohiko Kurahashi)
This commit is contained in:
KATO Takenori 1997-12-04 13:15:16 +00:00
parent 974c421176
commit 4ec099d2b3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31532

View File

@ -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);