summaryrefslogtreecommitdiffhomepage
path: root/Private/Builtins
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-04-03 21:39:57 +0200
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-04-03 21:39:57 +0200
commite3d15c1db1ccb906561e80012d624aecf1ae8d8d (patch)
tree25a26f565ab5c442395299cbd2f2c4c1ab3f0af6 /Private/Builtins
parent5e585fa5cdcb9648cf84a650b409e7589de1cecf (diff)
Kernel: A lot of changes, please expand the the message.
Meta: Add eclipse project. PowerPC: WiP implementation of a 64-bit PowerPC kernel, see specs. -> NOTE: It will still be a customized AMD64 machine, running a custom version of CoreBoot. Kernel: Start implementing MBCI support into the kernel. Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/Builtins')
-rw-r--r--Private/Builtins/MBCI/Defines.hxx26
1 files changed, 26 insertions, 0 deletions
diff --git a/Private/Builtins/MBCI/Defines.hxx b/Private/Builtins/MBCI/Defines.hxx
index b347485c..817c6f56 100644
--- a/Private/Builtins/MBCI/Defines.hxx
+++ b/Private/Builtins/MBCI/Defines.hxx
@@ -8,6 +8,32 @@
#include <NewKit/Defines.hpp>
+#define kMBCIHostMagic "MBCI"
+
+namespace NewOS {
struct MBCIHostInterface;
struct MBCIDeviceInterface;
struct MBCIPacketInterface;
+
+/// @brief Host interface
+struct MBCIHostInterface final {
+ UInt32 HostId;
+ UInt32 VendorId;
+ UInt64 BaseAddressRegister;
+ UInt64 DeviceSize;
+ UInt8 MemoryType;
+ UInt8 Magic[4];
+ UInt8 HostType;
+ UInt8 HostFlags;
+};
+
+/// @brief MBCI host flags.
+enum MBCIHostFlags {
+ kMBCIHostFlagsSupportsPageProtection, /// Page protected.
+ kMBCIHostFlagsSupportsAPM, /// Advanced Power Management.
+ kMBCIHostFlagsSupportsDaisyChain, /// Is daisy chained.
+ kMBCIHostFlagsSupportsHWInterrupts, /// Has HW interrupts.
+ kMBCIHostFlagsSupportsDMA, /// Has DMA.
+ kMBCIHostFlagsCount,
+};
+} // namespace NewOS