summaryrefslogtreecommitdiffhomepage
path: root/dev/zka/src/Storage/NVMEDeviceInterface.cc
blob: c2bd701fcf237d60180a19481a622cdb03237953 (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
/* -------------------------------------------

	Copyright ZKA Web Services Co.

------------------------------------------- */

#include <StorageKit/NVME.h>

namespace Kernel
{
	NVMEDeviceInterface::NVMEDeviceInterface(void (*Out)(MountpointInterface* outpacket),
											 void (*In)(MountpointInterface* inpacket),
											 void (*Cleanup)(void))
		: DeviceInterface(Out, In), fCleanup(Cleanup)
	{
	}

	NVMEDeviceInterface::~NVMEDeviceInterface()
	{
		if (fCleanup)
			fCleanup();
	}

	const Char* NVMEDeviceInterface::Name() const
	{
		return ("NVMEDeviceInterface");
	}
} // namespace Kernel