scsidevice: Add LUN field.

This may make it possible for multiple LUNs to be added to the same target ID.
For now just use LUN #0.
This commit is contained in:
joevt 2023-10-31 00:23:56 -07:00 committed by dingusdev
parent 8f28823217
commit ad8a26616f
1 changed files with 2 additions and 0 deletions

View File

@ -168,6 +168,7 @@ public:
this->set_name(name);
supports_types(HWCompType::SCSI_DEV);
this->scsi_id = my_id;
this->lun = 0,
this->cur_phase = ScsiPhase::BUS_FREE;
};
~ScsiDevice() = default;
@ -194,6 +195,7 @@ protected:
uint8_t cmd_buf[16] = {};
uint8_t msg_buf[16] = {}; // TODO: clarify how big this one should be
int scsi_id;
int lun;
int initiator_id;
int cur_phase;
uint8_t* data_ptr = nullptr;