Merge Disk namespace into the IDEDiskDevice class.

This commit is contained in:
Andreas Kling 2018-11-10 15:15:31 +01:00
commit b8264e7d47
Notes: sideshowbarker 2024-07-19 16:11:37 +09:00
10 changed files with 231 additions and 244 deletions

View file

@ -100,4 +100,13 @@ word getISR()
return (isr1 << 8) | isr0;
}
word get_irr()
{
IO::out8(PIC0_CTL, 0x0a);
IO::out8(PIC1_CTL, 0x0a);
byte irr0 = IO::in8(PIC0_CTL);
byte irr1 = IO::in8(PIC1_CTL);
return (irr1 << 8) | irr0;
}
}