mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
Kernel: Use a const reference to RegisterState in IRQ handling
This commit is contained in:
parent
aa43314e8b
commit
e880fe0765
26 changed files with 27 additions and 27 deletions
|
@ -348,7 +348,7 @@ bool FloppyDiskDevice::wait_for_irq()
|
|||
return true;
|
||||
}
|
||||
|
||||
void FloppyDiskDevice::handle_irq(RegisterState&)
|
||||
void FloppyDiskDevice::handle_irq(const RegisterState&)
|
||||
{
|
||||
// The only thing we need to do is acknowledge the IRQ happened
|
||||
m_interrupted = true;
|
||||
|
|
|
@ -179,7 +179,7 @@ protected:
|
|||
|
||||
private:
|
||||
// ^IRQHandler
|
||||
virtual void handle_irq(RegisterState&) override;
|
||||
virtual void handle_irq(const RegisterState&) override;
|
||||
|
||||
// ^DiskDevice
|
||||
virtual const char* class_name() const override;
|
||||
|
|
|
@ -485,7 +485,7 @@ void KeyboardDevice::key_state_changed(u8 raw, bool pressed)
|
|||
m_has_e0_prefix = false;
|
||||
}
|
||||
|
||||
void KeyboardDevice::handle_irq(RegisterState&)
|
||||
void KeyboardDevice::handle_irq(const RegisterState&)
|
||||
{
|
||||
for (;;) {
|
||||
u8 status = IO::in8(I8042_STATUS);
|
||||
|
|
|
@ -61,7 +61,7 @@ public:
|
|||
|
||||
private:
|
||||
// ^IRQHandler
|
||||
virtual void handle_irq(RegisterState&) override;
|
||||
virtual void handle_irq(const RegisterState&) override;
|
||||
|
||||
// ^CharacterDevice
|
||||
virtual const char* class_name() const override { return "KeyboardDevice"; }
|
||||
|
|
|
@ -180,7 +180,7 @@ void PATAChannel::wait_for_irq()
|
|||
disable_irq();
|
||||
}
|
||||
|
||||
void PATAChannel::handle_irq(RegisterState&)
|
||||
void PATAChannel::handle_irq(const RegisterState&)
|
||||
{
|
||||
u8 status = m_io_base.offset(ATA_REG_STATUS).in<u8>();
|
||||
if (status & ATA_SR_ERR) {
|
||||
|
|
|
@ -76,7 +76,7 @@ public:
|
|||
|
||||
private:
|
||||
//^ IRQHandler
|
||||
virtual void handle_irq(RegisterState&) override;
|
||||
virtual void handle_irq(const RegisterState&) override;
|
||||
|
||||
void initialize(bool force_pio);
|
||||
void detect_disks();
|
||||
|
|
|
@ -130,7 +130,7 @@ void PS2MouseDevice::handle_vmmouse_absolute_pointer()
|
|||
m_queue.enqueue(packet);
|
||||
}
|
||||
|
||||
void PS2MouseDevice::handle_irq(RegisterState&)
|
||||
void PS2MouseDevice::handle_irq(const RegisterState&)
|
||||
{
|
||||
|
||||
if (VMWareBackdoor::the().vmmouse_is_absolute()) {
|
||||
|
|
|
@ -52,7 +52,7 @@ public:
|
|||
private:
|
||||
// ^IRQHandler
|
||||
void handle_vmmouse_absolute_pointer();
|
||||
virtual void handle_irq(RegisterState&) override;
|
||||
virtual void handle_irq(const RegisterState&) override;
|
||||
|
||||
// ^CharacterDevice
|
||||
virtual const char* class_name() const override { return "PS2MouseDevice"; }
|
||||
|
|
|
@ -207,7 +207,7 @@ void SB16::dma_start(uint32_t length)
|
|||
IO::out8(0xd4, (channel % 4));
|
||||
}
|
||||
|
||||
void SB16::handle_irq(RegisterState&)
|
||||
void SB16::handle_irq(const RegisterState&)
|
||||
{
|
||||
// Stop sound output ready for the next block.
|
||||
dsp_write(0xd5);
|
||||
|
|
|
@ -54,7 +54,7 @@ public:
|
|||
|
||||
private:
|
||||
// ^IRQHandler
|
||||
virtual void handle_irq(RegisterState&) override;
|
||||
virtual void handle_irq(const RegisterState&) override;
|
||||
|
||||
// ^CharacterDevice
|
||||
virtual const char* class_name() const override { return "SB16"; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue