diff options
| author | Amlal <amlal@el-mahrouss-logic.com> | 2024-10-25 16:52:55 +0200 |
|---|---|---|
| committer | Amlal <amlal@el-mahrouss-logic.com> | 2024-10-25 16:52:55 +0200 |
| commit | bde40a348877ff33649c5335a9ebe0502a606d7c (patch) | |
| tree | 0aaf2821c8436afd9ba7f74a28b6e97ae2a795d2 /dev/ddk/dev.h | |
| parent | 5c319a1b4d08ce784f164aa5d073af71336e1547 (diff) | |
IMP: Cleanup source code.
Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'dev/ddk/dev.h')
| -rw-r--r-- | dev/ddk/dev.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/dev/ddk/dev.h b/dev/ddk/dev.h deleted file mode 100644 index 26105ff4..00000000 --- a/dev/ddk/dev.h +++ /dev/null @@ -1,33 +0,0 @@ -/* ------------------------------------------- - - Copyright ZKA Web Services Co. - - File: dev.h - Purpose: DDK device support. - -------------------------------------------- */ - -#pragma once - -#include <ddk/ddk.h> - -struct _DDK_DEVICE; - -/// @brief Kernel Device driver. -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 _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. -/// @param devicePath the device's path. -DK_EXTERN KERNEL_DEVICE_PTR KernelOpenDevice(const char* devicePath); - -/// @brief Close any device. -/// @param device valid device. -DK_EXTERN void KernelCloseDevice(KERNEL_DEVICE_PTR device); |
