9#ifndef MAXOS_DRIVERS_DISK_ATA_H
10#define MAXOS_DRIVERS_DISK_ATA_H
19namespace MaxOS::drivers::disk {
38 uint16_t m_bytes_per_sector { 512 };
Defines a Buffer class for safe memory operations.
Wrapper class for a region of bytes in memor in an attempt to add some memory safety....
Driver for the ATA controller, handles the reading and writing of data to the hard drive.
bool identify()
Identify the ATA device.
string device_name() final
Get the device name.
void flush() final
Flush the cache of the ATA device.
void read(uint32_t sector, common::buffer_t *data_buffer, size_t amount) final
read a sector from the ATA device
string vendor_name() final
Get the vendor name.
void write(uint32_t sector, common::buffer_t *data, size_t count) final
write to a sector on the ATA device
Generic Disk, handles the reading and writing of data to the hard drive.
Defines a generic Disk driver for reading and writing data to disk drives.
Defines OutputStream and GenericOutputStream classes for writing data to streams.
Defines classes for handling hardware communication ports (8, 16, and 32 bit)