mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
Merge Disk namespace into the IDEDiskDevice class.
This commit is contained in:
parent
cba05ce75e
commit
b8264e7d47
10 changed files with 231 additions and 244 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue