forked from Imagelibrary/rtems
2009-04-29 Chris Johns <chrisj@rtems.org>
* libchip/ide/ata.c: Remove a detection test that fails in qemu.
* libchip/ide/ide_controller.c: Change the status detection and
add a message if the transfer fails. There is currently no error
handle at the IDE drvier level.
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
2009-04-29 Chris Johns <chrisj@rtems.org>
|
||||
|
||||
* libchip/ide/ata.c: Remove a detection test that fails in qemu.
|
||||
|
||||
* libchip/ide/ide_controller.c: Change the status detection and
|
||||
add a message if the transfer fails. There is currently no error
|
||||
handle at the IDE drvier level.
|
||||
|
||||
2009-03-12 Daniel Hellstrom <daniel@gaisler.com>
|
||||
|
||||
PR 1392/bsps
|
||||
|
||||
@@ -608,6 +608,10 @@ ata_non_data_request_done(ata_req_t *areq,
|
||||
rtems_device_minor_number ctrl_minor,
|
||||
rtems_status_code status, int error)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
printf("ata_non_data_request_done: entry\n");
|
||||
#endif
|
||||
|
||||
areq->status = status;
|
||||
areq->error = error;
|
||||
rtems_semaphore_release(areq->sema);
|
||||
@@ -638,7 +642,7 @@ ata_add_to_controller_queue(rtems_device_minor_number ctrl_minor,
|
||||
|
||||
ata_queue_msg_t msg;
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef DEBUG_DOES_NOT_WORK_WITH_QEMU
|
||||
uint16_t val;
|
||||
/*
|
||||
* read IDE_REGISTER_ALTERNATE_STATUS instead IDE_REGISTER_STATUS
|
||||
@@ -1289,7 +1293,7 @@ rtems_ata_initialize(rtems_device_major_number major,
|
||||
IDE_REGISTER_DEVICE_CONTROL_OFFSET,
|
||||
IDE_REGISTER_DEVICE_CONTROL_nIEN);
|
||||
}
|
||||
|
||||
#if 0
|
||||
/*
|
||||
* Issue EXECUTE DEVICE DIAGNOSTIC ATA command for explore is
|
||||
* there any ATA device on the controller.
|
||||
@@ -1315,7 +1319,8 @@ rtems_ata_initialize(rtems_device_major_number major,
|
||||
*/
|
||||
if (breq.req.status != RTEMS_SUCCESSFUL)
|
||||
continue;
|
||||
|
||||
#endif
|
||||
breq.req.error = ATA_DEV0_PASSED_DEV1_PASSED_OR_NOT_PRSNT;
|
||||
/* disassemble returned diagnostic codes */
|
||||
if (breq.req.error == ATA_DEV0_PASSED_DEV1_PASSED_OR_NOT_PRSNT)
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <libchip/ide_ctrl_io.h>
|
||||
|
||||
#if IDE_CONTROLLER_TRACE
|
||||
int ide_controller_trace;
|
||||
int ide_controller_trace = 1;
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user