Skip to content

Commit 0d25f6d

Browse files
scsi.h: rename READ_CAPACITY_10 to READ_CAPACITY.
1 parent 2735449 commit 0d25f6d

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

devices/common/ata/atapicdrom.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ void AtapiCdrom::perform_packet_command() {
116116
this->status_good();
117117
this->present_status();
118118
break;
119-
case ScsiCommand::READ_CAPACITY_10:
119+
case ScsiCommand::READ_CAPACITY:
120120
this->xfer_cnt = this->report_capacity(this->data_buf);
121121
this->r_byte_count = this->xfer_cnt;
122122
this->data_ptr = (uint16_t*)this->data_buf;

devices/common/scsi/scsi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ enum ScsiCommand : uint8_t {
121121
DIAG_RESULTS = 0x1C,
122122
SEND_DIAGS = 0x1D,
123123
PREVENT_ALLOW_MEDIUM_REMOVAL = 0x1E,
124-
READ_CAPACITY_10 = 0x25,
124+
READ_CAPACITY = 0x25,
125125
READ_10 = 0x28,
126126
WRITE_10 = 0x2A,
127127
SEEK_10 = 0x2B,

devices/common/scsi/scsicdrom.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void ScsiCdrom::process_command()
110110
this->eject_allowed = (cmd[4] & 1) == 0;
111111
this->switch_phase(ScsiPhase::STATUS);
112112
break;
113-
case ScsiCommand::READ_CAPACITY_10:
113+
case ScsiCommand::READ_CAPACITY:
114114
this->read_capacity_10();
115115
break;
116116
case ScsiCommand::READ_10:

devices/common/scsi/scsihd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void ScsiHardDisk::process_command() {
124124
this->eject_allowed = (cmd[4] & 1) == 0;
125125
this->switch_phase(ScsiPhase::STATUS);
126126
break;
127-
case ScsiCommand::READ_CAPACITY_10:
127+
case ScsiCommand::READ_CAPACITY:
128128
this->read_capacity_10();
129129
break;
130130
case ScsiCommand::READ_10:

0 commit comments

Comments
 (0)