diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-27 19:01:53 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-27 19:01:53 +0200 |
| commit | bdc831c1df0dd2af95f09fd1b86b4472c40d12b7 (patch) | |
| tree | e405f725c784ddf2ee7d2ef5f34f85705339ca41 /dev/kernel/KernelKit/DeviceMgr.h | |
| parent | cba3d0b854a1a9fbb0b0c82efb858fa9086b7284 (diff) | |
feat: Assign ThreadID to APIC's ProcessID when initialzing APs.
refactor: Cleanup copyright headers and source code.
feat: Add PrinterNetworkDevice, and DBGNetworkDevice.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/KernelKit/DeviceMgr.h')
| -rw-r--r-- | dev/kernel/KernelKit/DeviceMgr.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/dev/kernel/KernelKit/DeviceMgr.h b/dev/kernel/KernelKit/DeviceMgr.h index 8d749ec9..7c7b9da3 100644 --- a/dev/kernel/KernelKit/DeviceMgr.h +++ b/dev/kernel/KernelKit/DeviceMgr.h @@ -8,8 +8,8 @@ Revision History: - 31/01/24: Add kDeviceCnt (amlel) - 15/11/24: Add NE_DEVICE macro, to inherit from device object. + 31/01/24: Add kDeviceCnt (amlel) + 15/11/24: Add NE_DEVICE macro, to inherit from device object. ------------------------------------------- */ @@ -26,12 +26,15 @@ #define NE_DEVICE : public ::Kernel::IDeviceObject -// Last Rev: Wed, Apr 3, 2024 9:09:41 AM +// Last Rev: Wed, May 27, 2025 6:22 PM namespace Kernel { template <typename T> class IDeviceObject; +template <typename T> +class IOBuf; + /***********************************************************************************/ /// @brief Device contract interface, represents an HW device. /***********************************************************************************/ @@ -103,7 +106,8 @@ class IOBuf final { ///! @brief Device enum types. enum { - kDeviceTypeIDE, + kDeviceTypeInvalid = 0, + kDeviceTypeIDE = 100, kDeviceTypeEthernet, kDeviceTypeWiFi, kDeviceTypeFW, @@ -114,7 +118,10 @@ enum { kDeviceTypeMBCI, kDeviceTypeATA, kDeviceTypeUSB, - kDeviceTypeMediaCtrl, // MM controller + kDeviceTypeAPM, // Adv. Pwr. Mgmt. + kDeviceTypePCI, + kDeviceTypeVGA, + kDeviceTypeGPU, kDeviceTypeCount, }; } // namespace Kernel |
