blob: 0bb03265b1b4d20b88a456263a6c0afe8422ac9a (
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
|
// SPDX-License-Identifier: Apache-2.0
// Copyright 2024-2026, 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
|