Fix bug introduced by the last commit, the caused some ATAPI

devices to fail to proberly initialize at boot..
This commit is contained in:
Søren Schmidt 2001-10-16 08:07:36 +00:00
parent ebc26de418
commit db92bfc1b4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85025

View file

@ -299,7 +299,7 @@ atapi_transfer(struct atapi_request *request)
/* start ATAPI operation */
if (ata_command(atp->controller, atp->unit, ATA_C_PACKET_CMD,
request->bytecount, 0,
(request->bytecount << 8), 0,
(request->flags & ATPR_F_DMA_USED) ? ATA_F_DMA : 0,
ATA_IMMEDIATE))
ata_printf(atp->controller, atp->unit,