summaryrefslogtreecommitdiffhomepage
path: root/src/libDDK/DriverKit
diff options
context:
space:
mode:
Diffstat (limited to 'src/libDDK/DriverKit')
-rw-r--r--src/libDDK/DriverKit/Device.h15
-rw-r--r--src/libDDK/DriverKit/ObjectKit/DriverKit.h2
2 files changed, 12 insertions, 5 deletions
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 <DriverKit/ObjectKit/Checksum.h>
#include <DriverKit/ObjectKit/Base.h>
+#include <DriverKit/ObjectKit/Checksum.h>
#endif