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:
parent
974c421176
commit
4ec099d2b3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31532
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user