summaryrefslogtreecommitdiffhomepage
path: root/DDK/KernelDev.c
diff options
context:
space:
mode:
authorAmlal <amlalelmahrouss@icloud.com>2024-07-28 16:11:46 +0000
committerAmlal <amlalelmahrouss@icloud.com>2024-07-28 16:11:46 +0000
commitc4023005e029ae092dad2689564c490580dd5c28 (patch)
tree3080ba07a6b552bf3d7591574cf69b2a3c8fd0fd /DDK/KernelDev.c
parent8c8822fff78f9ff9cd640271da9b3634c4c2f97f (diff)
parent4db57a2d646b1538783a0675b38bada7a0f903ae (diff)
Merged in MHR-36 (pull request #17)
MHR-36
Diffstat (limited to 'DDK/KernelDev.c')
-rw-r--r--DDK/KernelDev.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/DDK/KernelDev.c b/DDK/KernelDev.c
index 6a6aac99..07a64bdd 100644
--- a/DDK/KernelDev.c
+++ b/DDK/KernelDev.c
@@ -1,8 +1,8 @@
/* -------------------------------------------
- Copyright Zeta Electronics Corporation
+ Copyright ZKA Technologies
- Purpose: Kernel Text I/O.
+ Purpose: DDK Text I/O.
------------------------------------------- */
@@ -10,21 +10,12 @@
#include <DDK/KernelString.h>
/// @brief Open a new binary device from path.
-DK_EXTERN kernelDeviceRef kernelOpenBinaryDevice(const char* devicePath)
+DK_EXTERN kernelDeviceRef kernelOpenDevice(const char* devicePath)
{
if (!devicePath)
- return NIL;
+ return nil;
- return kernelCall("OpenBinaryDevice", 1, devicePath, kernelStringLength(devicePath));
-}
-
-/// @brief Open a new character device from path.
-DK_EXTERN kernelDeviceRef kernelOpenCharDevice(const char* devicePath)
-{
- if (!devicePath)
- return NIL;
-
- return kernelCall("OpenCharDevice", 1, devicePath, kernelStringLength(devicePath));
+ return kernelCall("OpenDevice", 1, (void*)devicePath, kernelStringLength(devicePath));
}
/// @brief Close any device.