Kernel: Improve ATA device initialization
This does better detection of empty ports and fixes floating bus read-value from 0x00 to 0xFF.
This commit is contained in:
@@ -35,11 +35,10 @@ namespace Kernel
|
||||
{}
|
||||
BAN::ErrorOr<void> initialize();
|
||||
|
||||
void select_device(bool secondary);
|
||||
BAN::ErrorOr<DeviceType> identify(bool secondary, BAN::Span<uint16_t> buffer);
|
||||
void select_device(bool is_secondary);
|
||||
BAN::ErrorOr<DeviceType> identify(bool is_secondary, BAN::Span<uint16_t> buffer);
|
||||
|
||||
void block_until_irq();
|
||||
//uint8_t device_index(const ATADevice&) const;
|
||||
BAN::ErrorOr<void> block_until_irq();
|
||||
|
||||
uint8_t io_read(uint16_t);
|
||||
void io_write(uint16_t, uint8_t);
|
||||
|
||||
Reference in New Issue
Block a user