| 48 | } |
| 49 | |
| 50 | bool ScsiController::Process(int id) |
| 51 | { |
| 52 | GetBus().Acquire(); |
| 53 | |
| 54 | if (GetBus().GetRST()) { |
| 55 | LogWarn("RESET signal received!"); |
| 56 | |
| 57 | Reset(); |
| 58 | |
| 59 | return false; |
| 60 | } |
| 61 | |
| 62 | initiator_id = id; |
| 63 | |
| 64 | try { |
| 65 | ProcessPhase(); |
| 66 | } |
| 67 | catch(const scsi_exception&) { |
| 68 | LogError("Unhandled SCSI error, resetting controller and bus and entering bus free phase"); |
| 69 | |
| 70 | Reset(); |
| 71 | |
| 72 | BusFree(); |
| 73 | } |
| 74 | |
| 75 | return !IsBusFree(); |
| 76 | } |
| 77 | |
| 78 | void ScsiController::BusFree() |
| 79 | { |