Repository navigation
72 issue separate driver implementations into a modular structure for out of tree builds - #256
Merged
marcobuschini merged 2 commits intoDec 3, 2026
Conversation
…#250) (#255) Part of #72. - Add include/ddk/Status.hpp with freestanding Status enum, status_str(), and Result<T> helper (no exceptions or RTTI) - Add include/ddk/Bus.hpp with BusType and DeviceDescriptor for MMIO/FDT and future bus matching - Add include/ddk/Resources.hpp with move-only RAII handles (MmioRegion, DmaBuffer, IrqHandle, IrqLock, EventHandle) following the Rule of Five - Add include/ddk/Services.hpp with LogLevel, IrqHandler, and abstract PlatformServices capability-injection interface - Add include/ddk/Driver.hpp with DDK_ABI_VERSION, Driver lifecycle base class, and DriverMetadata entry point
… suite (#254) Part of #72. - Add tests/host/ddk_kernel_services_test.cpp verifying KernelPlatformServices MMIO mapping, PFA-backed DMA allocation/RAII cleanup and OOM handling, IRQ registration/error propagation, IrqLock state preservation, EventHandle slot pool exhaustion/reclamation, and Kernel::Log routing - Add kernel/shell/tests/test_ddk.cpp (cmd_test_ddk) exercising DummyDriver and KernelPlatformServices end-to-end in QEMU with PFA leak verification - Register test ddk in kernel/shell/tests/shell_tests.hpp and kernel/shell/shell.cpp (including test all and help menu) - Wire kernel/shell/tests/test_ddk.cpp in kernel/kernel.mk and tests/host/ddk_kernel_services_test.cpp in Makefile
6 tasks
marcobuschini
deleted the
72-issue-separate-driver-implementations-into-a-modular-structure-for-out-of-tree-builds
branch
December 3, 2026 20:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commitizen Summary
feat/fix/refactor/perf/test/build/docs/chore<subsystem>What Changed
Breaking Changes
None
Verification & Quality Gates
make allbuilds cleanly underaarch64-linux-gnu-g++(-std=c++20 -Werror)make qualitypassesformat-check,lint-report(clang-tidy), andtest-hostmake test-hostpasses Snitch unit tests under ASan/UBSan with zero PFA/heap leaksmake run) where applicableChecklist