summaryrefslogtreecommitdiffhomepage
path: root/Private/NetworkKit/NetworkDevice.hpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-18 20:01:38 +0100
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-18 20:01:38 +0100
commit98347089c7e4e2b306d25a0db77e00aa2ea50882 (patch)
treea0b3a1130bff9068055aea87f3e3b964dc9fce0a /Private/NetworkKit/NetworkDevice.hpp
parent4c714f2c24c5df78bae2f35c42c73107de4c8c71 (diff)
unstable, secret: Very important changes done to the system API, add
threading functions. Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/NetworkKit/NetworkDevice.hpp')
-rw-r--r--Private/NetworkKit/NetworkDevice.hpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/Private/NetworkKit/NetworkDevice.hpp b/Private/NetworkKit/NetworkDevice.hpp
index 74b60068..d85cb939 100644
--- a/Private/NetworkKit/NetworkDevice.hpp
+++ b/Private/NetworkKit/NetworkDevice.hpp
@@ -4,8 +4,8 @@
------------------------------------------- */
-#ifndef _INC_NETWORKDEVICE_HPP__
-#define _INC_NETWORKDEVICE_HPP__
+#ifndef __NETWORK_DEVICE__
+#define __NETWORK_DEVICE__
#include <KernelKit/DeviceManager.hpp>
#include <NetworkKit/IP.hpp>
@@ -30,17 +30,18 @@ class NetworkDevice final : public DeviceInterface<NetworkDeviceCommand> {
NetworkDevice(const NetworkDevice &) = default;
public:
- const char *Name() const override { return "NetworkDevice"; }
+ const char *Name() const override;
private:
void (*fCleanup)(void);
};
struct PACKED NetworkDeviceCommand final {
- UInt32 Command;
- UInt32 VLan;
- UInt32 DmaLow;
- UInt32 DmaHigh;
+ UInt32 CommandName;
+ UInt32 CommandType;
+ UInt32 CommandFlags;
+ VoidPtr CommandBuffer;
+ SizeT CommandSizeBuffer;
};
/// @brief TCP device.
@@ -58,4 +59,4 @@ using HPCNetworkDevice = NetworkDevice;
#include <NetworkKit/NetworkDevice.inl>
-#endif // !_INC_NETWORKDEVICE_HPP__
+#endif // !__NETWORK_DEVICE__