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 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/libDDK/DriverKit/Device.h') 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. -- cgit v1.2.3