12using namespace MaxOS::common;
13using namespace MaxOS::drivers;
14using namespace MaxOS::drivers::disk;
16Disk::Disk() =
default;
18Disk::~Disk() =
default;
Wrapper class for a region of bytes in memor in an attempt to add some memory safety....
size_t capacity() const
The max bytes the buffer can currently store.
Stores the left, top, width and height of a rectangle.
virtual void activate()
Activate the driver.
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 generic Disk driver for reading and writing data to disk drives.