mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
41 lines
682 B
C++
41 lines
682 B
C++
#include "IDEDiskDevice.h"
|
|
#include "Disk.h"
|
|
|
|
RetainPtr<IDEDiskDevice> IDEDiskDevice::create()
|
|
{
|
|
return adopt(*new IDEDiskDevice);
|
|
}
|
|
|
|
IDEDiskDevice::IDEDiskDevice()
|
|
{
|
|
}
|
|
|
|
IDEDiskDevice::~IDEDiskDevice()
|
|
{
|
|
}
|
|
|
|
const char* IDEDiskDevice::className() const
|
|
{
|
|
return "IDEDiskDevice";
|
|
}
|
|
|
|
unsigned IDEDiskDevice::blockSize() const
|
|
{
|
|
return 512;
|
|
}
|
|
|
|
bool IDEDiskDevice::readBlock(unsigned index, byte* out) const
|
|
{
|
|
Disk::readSectors(index, 1, out);
|
|
return true;
|
|
}
|
|
|
|
bool IDEDiskDevice::writeBlock(unsigned index, const byte* data)
|
|
{
|
|
(void) index;
|
|
(void) data;
|
|
kprintf("IDEDiskDevice: writeBlock not implemented()\n");
|
|
notImplemented();
|
|
return false;
|
|
}
|
|
|