summaryrefslogtreecommitdiffhomepage
path: root/dev/ddk/dev.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <zka-holder@mahrouss-logic.com>2024-09-30 10:33:13 +0000
committerAmlal El Mahrouss <zka-holder@mahrouss-logic.com>2024-09-30 10:33:13 +0000
commit2d80769d8adb670acf766e5004c44a57b2d6de6a (patch)
tree67187473c17e0818432ddfa20ca27b01ff18ac01 /dev/ddk/dev.h
parent2b53f63158b244d0a31af638f384d4af0878938d (diff)
IMP: CRT and DDK improvements. Add SMS struct.
Diffstat (limited to 'dev/ddk/dev.h')
-rw-r--r--dev/ddk/dev.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/dev/ddk/dev.h b/dev/ddk/dev.h
index 2a3aeb18..8dad5736 100644
--- a/dev/ddk/dev.h
+++ b/dev/ddk/dev.h
@@ -2,7 +2,8 @@
Copyright ZKA Technologies.
- Purpose: DDK Devices.
+ File: dev.h
+ Purpose: DDK device support.
------------------------------------------- */
@@ -10,17 +11,17 @@
#include <ddk/ddk.h>
-struct _KERNEL_DEVICE;
+struct _DDK_DEVICE;
/// @brief Kernel Device driver.
-typedef struct _KERNEL_DEVICE DK_FINAL
+typedef struct _DDK_DEVICE DK_FINAL
{
char d_name[255]; // the device name. Could be /./DEVICE_NAME/
void* (*d_read)(void* arg, int len); // read from device.
void (*d_write)(void* arg, int len);
void (*d_wait)(void); // write to device.
- struct _KERNEL_DEVICE* (*d_open)(const char* path); // open device.
- void (*d_close)(struct _KERNEL_DEVICE* dev); // close device.
+ struct _DDK_DEVICE* (*d_open)(const char* path); // open device.
+ void (*d_close)(struct _DDK_DEVICE* dev); // close device.
} KERNEL_DEVICE, *KERNEL_DEVICE_PTR;
/// @brief Open a new device from path.