Massive IDE clean-ups, and finally implemented ATAPI hard disks.
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <86box/86box.h>
|
||||
#include <86box/device.h>
|
||||
#include <86box/hdd.h>
|
||||
#include <86box/hdc_ide.h>
|
||||
#include <86box/scsi.h>
|
||||
#include <86box/scsi_device.h>
|
||||
#include <86box/plat_unused.h>
|
||||
@@ -37,7 +38,7 @@ scsi_device_target_command(scsi_device_t *dev, uint8_t *cdb)
|
||||
if (dev->command) {
|
||||
dev->command(dev->sc, cdb);
|
||||
|
||||
if (dev->sc->status & ERR_STAT)
|
||||
if (dev->sc->tf->status & ERR_STAT)
|
||||
return SCSI_STATUS_CHECK_CONDITION;
|
||||
else
|
||||
return SCSI_STATUS_OK;
|
||||
@@ -140,7 +141,7 @@ scsi_device_command_phase1(scsi_device_t *dev)
|
||||
} else
|
||||
scsi_device_command_stop(dev);
|
||||
|
||||
if (dev->sc->status & ERR_STAT)
|
||||
if (dev->sc->tf->status & ERR_STAT)
|
||||
dev->status = SCSI_STATUS_CHECK_CONDITION;
|
||||
else
|
||||
dev->status = SCSI_STATUS_OK;
|
||||
|
||||
Reference in New Issue
Block a user