diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-24 03:02:43 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-24 03:02:43 +0100 |
| commit | 83d870e58457a1d335a1d9b9966a6a1887cc297b (patch) | |
| tree | 72888f88c7728c82f3f6df1f4f70591de15eab36 /dev/kernel/NetworkKit/NetworkDevice.h | |
| parent | ab37adbacf0f33845804c788b39680cd754752a8 (diff) | |
feat! breaking changes on kernel sources.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/NetworkKit/NetworkDevice.h')
| -rw-r--r-- | dev/kernel/NetworkKit/NetworkDevice.h | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/dev/kernel/NetworkKit/NetworkDevice.h b/dev/kernel/NetworkKit/NetworkDevice.h deleted file mode 100644 index 3afa8484..00000000 --- a/dev/kernel/NetworkKit/NetworkDevice.h +++ /dev/null @@ -1,83 +0,0 @@ -/* ======================================== - - Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under the Apache 2.0 license. - -======================================== */ - -#ifndef __INC_NETWORK_DEVICE_H__ -#define __INC_NETWORK_DEVICE_H__ - -#include <KernelKit/DeviceMgr.h> -#include <NetworkKit/IP.h> - -/// @note Can either work with: Ethernet, GPRS, WiFi - -namespace Kernel { -struct NetworkDeviceCommand; -class NetworkDevice; - -/** - * \brief Network device interface, establishes a connection to the NIC. - */ -class NetworkDevice final NE_DEVICE<NetworkDeviceCommand> { - public: - NetworkDevice(void (*out)(DeviceInterface<NetworkDeviceCommand>*, NetworkDeviceCommand), - void (*in)(DeviceInterface<NetworkDeviceCommand>*, NetworkDeviceCommand), - void (*cleanup)(void) = nullptr); - - ~NetworkDevice() override; - - public: - NetworkDevice& operator=(const NetworkDevice&) = default; - NetworkDevice(const NetworkDevice&) = default; - - public: - const Char* Name() const override; - Boolean Name(const Char* newStr); - - private: - Void (*fCleanup)(void); -}; - -struct NetworkDeviceCommand final { - UInt32 CommandName; - UInt32 CommandType; - UInt32 CommandFlags; - VoidPtr CommandBuffer; - SizeT CommandSizeBuffer; -}; - -/// @brief TCP device. -using TCPNetworkDevice = NetworkDevice; - -/// @brief UDP device. -using UDPNetworkDevice = NetworkDevice; - -/// @brief PPP device. -using PPPNetworkDevice = NetworkDevice; - -/// @brief IPC device. -using IPCNetworkDevice = NetworkDevice; - -/// @brief GRPS device. -using GPRSNetworkDevice = NetworkDevice; - -/// @brief GSM device. -using GSMNetworkDevice = NetworkDevice; - -/// @brief Bluetooth device. -using BTNetworkDevice = NetworkDevice; - -/// @brief Printer device. -using PrinterNetworkDevice = NetworkDevice; - -/// @brief Debug device. -using DBGNetworkDevice = NetworkDevice; - -/// @brief LTE device. -using LTENetworkDevice = NetworkDevice; -} // namespace Kernel - -#include <NetworkKit/NetworkDevice.inl> - -#endif // !__INC_NETWORK_DEVICE_H__ |
