Skip to content

Commit 94e0691

Browse files
scsi*cmds: undo temporary renames.
1 parent 958bd0f commit 94e0691

6 files changed

Lines changed: 15 additions & 15 deletions

File tree

‎devices/common/scsi/scsiblockcmds.cpp‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ void ScsiBlockCmds::process_command() {
8888
case ScsiCommand::READ_6:
8989
case ScsiCommand::READ_10:
9090
case ScsiCommand::READ_12:
91-
next_phase = this->read_new();
91+
next_phase = this->read();
9292
break;
9393
case ScsiCommand::WRITE_6:
9494
case ScsiCommand::WRITE_10:
9595
case ScsiCommand::WRITE_12:
96-
next_phase = this->write_new();
96+
next_phase = this->write();
9797
break;
9898
case ScsiCommand::START_STOP_UNIT:
9999
next_phase = this->start_stop_unit();
@@ -113,7 +113,7 @@ void ScsiBlockCmds::process_command() {
113113
phy_impl->switch_phase(next_phase);
114114
}
115115

116-
int ScsiBlockCmds::read_new() {
116+
int ScsiBlockCmds::read() {
117117
int nblocks = this->get_xfer_len();
118118

119119
// special case: zero transfer length means 256 blocks for READ_6
@@ -143,7 +143,7 @@ int ScsiBlockCmds::read_new() {
143143
return ScsiPhase::DATA_IN;
144144
}
145145

146-
int ScsiBlockCmds::write_new() {
146+
int ScsiBlockCmds::write() {
147147
int nblocks = this->get_xfer_len();
148148

149149
// special case: zero transfer length means 256 blocks for WRITE_6

‎devices/common/scsi/scsiblockcmds.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ class ScsiBlockCmds : public ScsiCommonCmds {
4141
void init_block_device(uint8_t medium_type, uint8_t dev_flags,
4242
uint8_t density_code, bool is_apple_compliant);
4343

44-
virtual int read_new();
45-
virtual int write_new();
44+
virtual int read();
45+
virtual int write();
4646
virtual int start_stop_unit();
4747
virtual int read_capacity();
4848

‎devices/common/scsi/scsicdromcmds.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void ScsiCdromCmds::process_command() {
4545

4646
switch(this->cdb_ptr[0]) {
4747
case ScsiCommand::READ_TOC:
48-
next_phase = this->read_toc_new();
48+
next_phase = this->read_toc();
4949
break;
5050
default:
5151
ScsiBlockCmds::process_command();
@@ -55,7 +55,7 @@ void ScsiCdromCmds::process_command() {
5555
phy_impl->switch_phase(next_phase);
5656
}
5757

58-
int ScsiCdromCmds:: read_toc_new() {
58+
int ScsiCdromCmds:: read_toc() {
5959
uint8_t start_track, session_num;
6060
int tot_tracks, resp_len = 0;
6161

‎devices/common/scsi/scsicdromcmds.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ScsiCdromCmds : public ScsiBlockCmds, public CdromDrive {
3636
protected:
3737
virtual void process_command() override;
3838

39-
int read_toc_new();
39+
int read_toc();
4040

4141
int get_cd_capabilities_page(uint8_t subpage, uint8_t ctrl,
4242
uint8_t *out_ptr, int avail_len);

‎devices/common/scsi/scsicommoncmds.cpp‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ void ScsiCommonCmds::process_command() {
3939
next_phase = this->test_unit_ready();
4040
break;
4141
case ScsiCommand::REQ_SENSE:
42-
next_phase = this->request_sense_new();
42+
next_phase = this->request_sense();
4343
break;
4444
case ScsiCommand::INQUIRY:
45-
next_phase = this->inquiry_new();
45+
next_phase = this->inquiry();
4646
break;
4747
case ScsiCommand::MODE_SENSE_6:
4848
case ScsiCommand::MODE_SENSE_10:
@@ -121,7 +121,7 @@ int ScsiCommonCmds::test_unit_ready() {
121121
return ScsiPhase::STATUS;
122122
}
123123

124-
int ScsiCommonCmds::inquiry_new() {
124+
int ScsiCommonCmds::inquiry() {
125125
int alloc_len = this->get_xfer_len();
126126
int resp_len = 36; // standard response length
127127

@@ -178,7 +178,7 @@ int ScsiCommonCmds::inquiry_new() {
178178
return ScsiPhase::DATA_IN;
179179
}
180180

181-
int ScsiCommonCmds::request_sense_new() {
181+
int ScsiCommonCmds::request_sense() {
182182
int alloc_len = this->get_xfer_len();
183183
int resp_len = 18; // standard response length
184184

‎devices/common/scsi/scsicommoncmds.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ class ScsiCommonCmds {
8787
protected:
8888
virtual void process_command();
8989
virtual int test_unit_ready();
90-
virtual int inquiry_new();
91-
virtual int request_sense_new();
90+
virtual int inquiry();
91+
virtual int request_sense();
9292
virtual int mode_sense();
9393
virtual uint8_t get_lun();
9494
virtual uint32_t get_xfer_len();

0 commit comments

Comments
 (0)