summaryrefslogtreecommitdiffhomepage
path: root/dev/zka/src/Storage/NVMEDeviceInterface.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dev/zka/src/Storage/NVMEDeviceInterface.cc')
-rw-r--r--dev/zka/src/Storage/NVMEDeviceInterface.cc28
1 files changed, 28 insertions, 0 deletions
diff --git a/dev/zka/src/Storage/NVMEDeviceInterface.cc b/dev/zka/src/Storage/NVMEDeviceInterface.cc
new file mode 100644
index 00000000..c2bd701f
--- /dev/null
+++ b/dev/zka/src/Storage/NVMEDeviceInterface.cc
@@ -0,0 +1,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