diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-04-06 02:51:58 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-04-06 02:51:58 +0200 |
| commit | ef604f691e2e3a6f710c96d0270cd9e2a223f08d (patch) | |
| tree | c0320f8384d2f6ff24c56fb26cfdfeff8dd01bd3 /Private/KernelKit | |
| parent | e47a33d7d4f70c54a27e96df437e6d9ac4e829cf (diff) | |
Kernel: Worked on driver support, add standard disk calls.
Bootloader: Fix formatting.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/KernelKit')
| -rw-r--r-- | Private/KernelKit/PCI/Device.hpp | 4 | ||||
| -rw-r--r-- | Private/KernelKit/PCI/Iterator.hpp | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Private/KernelKit/PCI/Device.hpp b/Private/KernelKit/PCI/Device.hpp index c73ca068..9bb22cb2 100644 --- a/Private/KernelKit/PCI/Device.hpp +++ b/Private/KernelKit/PCI/Device.hpp @@ -77,5 +77,5 @@ namespace NewOS::PCI } // namespace NewOS::PCI -extern "C" void LumiaPCISetCfgTarget(NewOS::UInt bar); -extern "C" NewOS::UInt LumiaPCIReadRaw(NewOS::UInt bar); +EXTERN_C void NewOSPCISetCfgTarget(NewOS::UInt bar); +EXTERN_C NewOS::UInt NewOSPCIReadRaw(NewOS::UInt bar); diff --git a/Private/KernelKit/PCI/Iterator.hpp b/Private/KernelKit/PCI/Iterator.hpp index f1069fda..7f17263d 100644 --- a/Private/KernelKit/PCI/Iterator.hpp +++ b/Private/KernelKit/PCI/Iterator.hpp @@ -7,9 +7,9 @@ #include <NewKit/Defines.hpp> #include <NewKit/Ref.hpp> -#define ME_BUS_COUNT (256) -#define ME_DEVICE_COUNT (33) -#define ME_FUNCTION_COUNT (8) +#define NEWOS_BUS_COUNT (256) +#define NEWOS_DEVICE_COUNT (33) +#define NEWOS_FUNCTION_COUNT (8) namespace NewOS::PCI { class Iterator final { @@ -29,7 +29,7 @@ namespace NewOS::PCI { Ref<PCI::Device> operator[](const Size &sz); private: - Array<PCI::Device, ME_BUS_COUNT> m_Devices; + Array<PCI::Device, NEWOS_BUS_COUNT> m_Devices; }; } // namespace NewOS::PCI |
