mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-23 06:31:28 +00:00
Move signal_data_ready() to atabasedevice.
This commit is contained in:
parent
7835aec034
commit
4f76a4ead2
@ -151,3 +151,9 @@ void AtaBaseDevice::update_intrq(uint8_t new_intrq_state) {
|
|||||||
this->intrq_state = new_intrq_state;
|
this->intrq_state = new_intrq_state;
|
||||||
this->host_obj->report_intrq(new_intrq_state);
|
this->host_obj->report_intrq(new_intrq_state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AtaBaseDevice::signal_data_ready() {
|
||||||
|
this->r_status |= DRQ;
|
||||||
|
this->r_status &= ~BSY;
|
||||||
|
this->update_intrq(1);
|
||||||
|
}
|
||||||
|
@ -56,6 +56,7 @@ public:
|
|||||||
virtual void device_set_signature();
|
virtual void device_set_signature();
|
||||||
void device_control(const uint8_t new_ctrl);
|
void device_control(const uint8_t new_ctrl);
|
||||||
void update_intrq(uint8_t new_intrq_state);
|
void update_intrq(uint8_t new_intrq_state);
|
||||||
|
void signal_data_ready();
|
||||||
|
|
||||||
bool has_data() {
|
bool has_data() {
|
||||||
return data_ptr && xfer_cnt;
|
return data_ptr && xfer_cnt;
|
||||||
|
@ -196,12 +196,6 @@ void AtapiBaseDevice::data_out_phase() {
|
|||||||
this->signal_data_ready();
|
this->signal_data_ready();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AtapiBaseDevice::signal_data_ready() {
|
|
||||||
this->r_status |= DRQ;
|
|
||||||
this->r_status &= ~BSY;
|
|
||||||
this->update_intrq(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
void AtapiBaseDevice::present_status() {
|
void AtapiBaseDevice::present_status() {
|
||||||
this->r_int_reason |= ATAPI_Int_Reason::IO;
|
this->r_int_reason |= ATAPI_Int_Reason::IO;
|
||||||
this->r_int_reason |= ATAPI_Int_Reason::CoD;
|
this->r_int_reason |= ATAPI_Int_Reason::CoD;
|
||||||
|
@ -48,7 +48,6 @@ public:
|
|||||||
|
|
||||||
// methods with default implementation
|
// methods with default implementation
|
||||||
virtual void data_out_phase();
|
virtual void data_out_phase();
|
||||||
virtual void signal_data_ready();
|
|
||||||
virtual void present_status();
|
virtual void present_status();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user