1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 18:27:39 +00:00

Kernel: Fix wrong I/O ports for the ATA alternate status registers

The alternate status register is not part of the same set of registers
as all the other stuff.

Also rename wait_400ns() to io_delay() since we had no guarantee that
it was waiting for 400ns..
This commit is contained in:
Andreas Kling 2019-09-04 11:10:07 +02:00
parent 8cbb38a237
commit e5500e2a22
2 changed files with 15 additions and 17 deletions

View file

@ -58,6 +58,7 @@ private:
// Data members
u8 m_channel_number { 0 }; // Channel number. 0 = master, 1 = slave
u16 m_io_base { 0x1F0 };
u16 m_control_base { 0 };
volatile u8 m_device_error { 0 };
volatile bool m_interrupted { false };