From 92bbadf36f8bdffed9090cb345e57fc252c5a133 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 3 Mar 2026 06:43:42 +0100 Subject: chore: system: OpenHeFS improvements progress and HeapMgr, DDK additions. Signed-off-by: Amlal El Mahrouss --- src/libDDK/DriverKit/Device.h | 15 +++++++++++---- src/libDDK/DriverKit/ObjectKit/DriverKit.h | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) (limited to 'src/libDDK') diff --git a/src/libDDK/DriverKit/Device.h b/src/libDDK/DriverKit/Device.h index 5f26d5d5..468b259b 100644 --- a/src/libDDK/DriverKit/Device.h +++ b/src/libDDK/DriverKit/Device.h @@ -15,13 +15,20 @@ struct _DDK_DEVICE; #define DDK_TYPE_FILE (2) #define DDK_TYPE_DEVICE (3) -#define DDK_SUB_TYPE_TCP (1) -#define DDK_SUB_TYPE_UDP (2) -#define DDK_SUB_TYPE_BT (3) +#define DDK_SUB_TYPE_TCP (1) /* TCP/IP */ +#define DDK_SUB_TYPE_UDP (2) /* Datagram */ +#define DDK_SUB_TYPE_BT (3) /* Bluetooth */ + +/// @brief This enum takes care of the network stack. +enum { + DDK_NET_DO_NOT_FLUSH, + DDK_NET_FLUSH_NOW, + DDK_NET_AUTO_FLUSH, +}; /// @brief Kernel Device driver. typedef struct _DDK_DEVICE DDK_FINAL { - char d_name[DDK_DEVICE_NAME_LEN]; // the device name. Could be /./DEVICE_NAME/ + char d_name[DDK_DEVICE_NAME_LEN]; // the device name. Could be /./DEVICE_NAME/ int d_type; int d_subtype; void* (*d_read)(void* arg, int len); // read from device. diff --git a/src/libDDK/DriverKit/ObjectKit/DriverKit.h b/src/libDDK/DriverKit/ObjectKit/DriverKit.h index 697d6a59..bfb749a6 100644 --- a/src/libDDK/DriverKit/ObjectKit/DriverKit.h +++ b/src/libDDK/DriverKit/ObjectKit/DriverKit.h @@ -5,7 +5,7 @@ #ifndef DRIVERKIT_DDK_H #define DRIVERKIT_DDK_H -#include #include +#include #endif -- cgit v1.2.3