mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-10 17:30:47 +00:00
Removed obsolete comments
This commit is contained in:
parent
5770e7e2db
commit
f381a5330b
@ -355,7 +355,6 @@ BOOL DiskTrack::Read(BYTE *buf, int sec) const
|
|||||||
|
|
||||||
void Disk::TestUnitReady(SASIDEV *controller)
|
void Disk::TestUnitReady(SASIDEV *controller)
|
||||||
{
|
{
|
||||||
// Command processing on drive
|
|
||||||
bool status = TestUnitReady(ctrl->cmd);
|
bool status = TestUnitReady(ctrl->cmd);
|
||||||
if (!status) {
|
if (!status) {
|
||||||
// Failure (Error)
|
// Failure (Error)
|
||||||
@ -408,7 +407,6 @@ void Disk::RequestSense(SASIDEV *controller)
|
|||||||
|
|
||||||
void Disk::Format(SASIDEV *controller)
|
void Disk::Format(SASIDEV *controller)
|
||||||
{
|
{
|
||||||
// Command processing on drive
|
|
||||||
bool status = Format(ctrl->cmd);
|
bool status = Format(ctrl->cmd);
|
||||||
if (!status) {
|
if (!status) {
|
||||||
// Failure (Error)
|
// Failure (Error)
|
||||||
@ -422,7 +420,6 @@ void Disk::Format(SASIDEV *controller)
|
|||||||
|
|
||||||
void Disk::ReassignBlocks(SASIDEV *controller)
|
void Disk::ReassignBlocks(SASIDEV *controller)
|
||||||
{
|
{
|
||||||
// Command processing on drive
|
|
||||||
bool status = Reassign(ctrl->cmd);
|
bool status = Reassign(ctrl->cmd);
|
||||||
if (!status) {
|
if (!status) {
|
||||||
// Failure (Error)
|
// Failure (Error)
|
||||||
@ -460,7 +457,6 @@ void Disk::Read6(SASIDEV *controller)
|
|||||||
|
|
||||||
LOGDEBUG("%s READ(6) command record=%d blocks=%d", __PRETTY_FUNCTION__, (unsigned int)record, (int)ctrl->blocks);
|
LOGDEBUG("%s READ(6) command record=%d blocks=%d", __PRETTY_FUNCTION__, (unsigned int)record, (int)ctrl->blocks);
|
||||||
|
|
||||||
// Command processing on drive
|
|
||||||
ctrl->length = Read(ctrl->cmd, ctrl->buffer, record);
|
ctrl->length = Read(ctrl->cmd, ctrl->buffer, record);
|
||||||
LOGTRACE("%s ctrl.length is %d", __PRETTY_FUNCTION__, (int)ctrl->length);
|
LOGTRACE("%s ctrl.length is %d", __PRETTY_FUNCTION__, (int)ctrl->length);
|
||||||
|
|
||||||
@ -601,7 +597,6 @@ void Disk::Write6(SASIDEV *controller)
|
|||||||
|
|
||||||
LOGDEBUG("%s WRITE(6) command record=%d blocks=%d", __PRETTY_FUNCTION__, (WORD)record, (WORD)ctrl->blocks);
|
LOGDEBUG("%s WRITE(6) command record=%d blocks=%d", __PRETTY_FUNCTION__, (WORD)record, (WORD)ctrl->blocks);
|
||||||
|
|
||||||
// Command processing on drive
|
|
||||||
ctrl->length = WriteCheck(record);
|
ctrl->length = WriteCheck(record);
|
||||||
if (ctrl->length <= 0) {
|
if (ctrl->length <= 0) {
|
||||||
// Failure (Error)
|
// Failure (Error)
|
||||||
@ -718,7 +713,6 @@ void Disk::Inquiry(SASIDEV *controller)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Processed on the disk side (it is originally processed by the controller)
|
|
||||||
if (device) {
|
if (device) {
|
||||||
ctrl->length = Inquiry(ctrl->cmd, ctrl->buffer);
|
ctrl->length = Inquiry(ctrl->cmd, ctrl->buffer);
|
||||||
} else {
|
} else {
|
||||||
@ -743,7 +737,6 @@ void Disk::Inquiry(SASIDEV *controller)
|
|||||||
|
|
||||||
void Disk::ModeSelect(SASIDEV *controller)
|
void Disk::ModeSelect(SASIDEV *controller)
|
||||||
{
|
{
|
||||||
// Command processing on drive
|
|
||||||
ctrl->length = SelectCheck(ctrl->cmd);
|
ctrl->length = SelectCheck(ctrl->cmd);
|
||||||
if (ctrl->length <= 0) {
|
if (ctrl->length <= 0) {
|
||||||
// Failure (Error)
|
// Failure (Error)
|
||||||
@ -757,7 +750,6 @@ void Disk::ModeSelect(SASIDEV *controller)
|
|||||||
|
|
||||||
void Disk::ModeSelect10(SASIDEV *controller)
|
void Disk::ModeSelect10(SASIDEV *controller)
|
||||||
{
|
{
|
||||||
// Command processing on drive
|
|
||||||
ctrl->length = SelectCheck10(ctrl->cmd);
|
ctrl->length = SelectCheck10(ctrl->cmd);
|
||||||
if (ctrl->length <= 0) {
|
if (ctrl->length <= 0) {
|
||||||
// Failure (Error)
|
// Failure (Error)
|
||||||
@ -771,7 +763,6 @@ void Disk::ModeSelect10(SASIDEV *controller)
|
|||||||
|
|
||||||
void Disk::ModeSense(SASIDEV *controller)
|
void Disk::ModeSense(SASIDEV *controller)
|
||||||
{
|
{
|
||||||
// Command processing on drive
|
|
||||||
ctrl->length = ModeSense(ctrl->cmd, ctrl->buffer);
|
ctrl->length = ModeSense(ctrl->cmd, ctrl->buffer);
|
||||||
ASSERT(ctrl->length >= 0);
|
ASSERT(ctrl->length >= 0);
|
||||||
if (ctrl->length == 0) {
|
if (ctrl->length == 0) {
|
||||||
@ -788,7 +779,6 @@ void Disk::ModeSense(SASIDEV *controller)
|
|||||||
|
|
||||||
void Disk::ModeSense10(SASIDEV *controller)
|
void Disk::ModeSense10(SASIDEV *controller)
|
||||||
{
|
{
|
||||||
// Command processing on drive
|
|
||||||
ctrl->length = ModeSense10(ctrl->cmd, ctrl->buffer);
|
ctrl->length = ModeSense10(ctrl->cmd, ctrl->buffer);
|
||||||
ASSERT(ctrl->length >= 0);
|
ASSERT(ctrl->length >= 0);
|
||||||
if (ctrl->length == 0) {
|
if (ctrl->length == 0) {
|
||||||
@ -805,7 +795,6 @@ void Disk::ModeSense10(SASIDEV *controller)
|
|||||||
|
|
||||||
void Disk::StartStopUnit(SASIDEV *controller)
|
void Disk::StartStopUnit(SASIDEV *controller)
|
||||||
{
|
{
|
||||||
// Command processing on drive
|
|
||||||
bool status = StartStop(ctrl->cmd);
|
bool status = StartStop(ctrl->cmd);
|
||||||
if (!status) {
|
if (!status) {
|
||||||
// Failure (Error)
|
// Failure (Error)
|
||||||
@ -819,7 +808,6 @@ void Disk::StartStopUnit(SASIDEV *controller)
|
|||||||
|
|
||||||
void Disk::SendDiagnostic(SASIDEV *controller)
|
void Disk::SendDiagnostic(SASIDEV *controller)
|
||||||
{
|
{
|
||||||
// Command processing on drive
|
|
||||||
bool status = SendDiag(ctrl->cmd);
|
bool status = SendDiag(ctrl->cmd);
|
||||||
if (!status) {
|
if (!status) {
|
||||||
// Failure (Error)
|
// Failure (Error)
|
||||||
@ -833,7 +821,6 @@ void Disk::SendDiagnostic(SASIDEV *controller)
|
|||||||
|
|
||||||
void Disk::PreventAllowRemoval(SASIDEV *controller)
|
void Disk::PreventAllowRemoval(SASIDEV *controller)
|
||||||
{
|
{
|
||||||
// Command processing on drive
|
|
||||||
bool status = Removal(ctrl->cmd);
|
bool status = Removal(ctrl->cmd);
|
||||||
if (!status) {
|
if (!status) {
|
||||||
// Failure (Error)
|
// Failure (Error)
|
||||||
@ -855,7 +842,6 @@ void Disk::SynchronizeCache(SASIDEV *controller)
|
|||||||
|
|
||||||
void Disk::ReadDefectData10(SASIDEV *controller)
|
void Disk::ReadDefectData10(SASIDEV *controller)
|
||||||
{
|
{
|
||||||
// Command processing on drive
|
|
||||||
ctrl->length = ReadDefectData10(ctrl->cmd, ctrl->buffer);
|
ctrl->length = ReadDefectData10(ctrl->cmd, ctrl->buffer);
|
||||||
ASSERT(ctrl->length >= 0);
|
ASSERT(ctrl->length >= 0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user