mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05:00
42 lines
683 B
C++
42 lines
683 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;
|
||
|
}
|
||
|
|