9#ifndef MAXOS_DRIVERS_DISK_H
10#define MAXOS_DRIVERS_DISK_H
18namespace MaxOS::drivers::disk {
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....
base class for all drivers, handles the activation, deactivation, initialisation and reset of the dri...
Generic Disk, handles the reading and writing of data to the hard drive.
void activate() override
Activate the disk driver.
string vendor_name() override
Get the vendor name.
string device_name() override
Get the device name.
void write(uint32_t sector, common::buffer_t *data)
write data to the disk from a buffer (max capacity 512 bytes)
void read(uint32_t sector, common::buffer_t *data_buffer)
read data from the disk into a buffer (max capacity 512 bytes)
virtual void flush()
Flush the disk cache.
Defines a base Driver class and DriverManager for managing drivers.
Defines OutputStream and GenericOutputStream classes for writing data to streams.