blob: 2e2d88f56d32efe307efa31dc997885e1bcfebb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
#include <StorageKit/NVME.h>
namespace Kernel {
NVMEDeviceInterface::NVMEDeviceInterface(void (*out)(IDevice*, IMountpoint* outpacket),
void (*in)(IDevice*, IMountpoint* inpacket),
void (*cleanup)(void))
: IDevice(out, in), fCleanup(cleanup) {}
NVMEDeviceInterface::~NVMEDeviceInterface() {
if (fCleanup) fCleanup();
}
const Char* NVMEDeviceInterface::Name() const {
return kDeviceMgrRootDirPath "nvm{}";
}
OwnPtr<IMountpoint*> NVMEDeviceInterface::operator()(UInt32 dma_low, UInt32 dma_high,
SizeT dma_sz) {
NE_UNUSED(dma_low);
NE_UNUSED(dma_high);
NE_UNUSED(dma_sz);
return {};
}
} // namespace Kernel
|