diff options
Diffstat (limited to 'kapi/kapi/devices/bus.hpp')
| -rw-r--r-- | kapi/kapi/devices/bus.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kapi/kapi/devices/bus.hpp b/kapi/kapi/devices/bus.hpp index 6356e166..0e654072 100644 --- a/kapi/kapi/devices/bus.hpp +++ b/kapi/kapi/devices/bus.hpp @@ -41,6 +41,11 @@ namespace kapi::devices [[nodiscard]] auto children() const -> std::span<kstd::shared_ptr<device> const>; + //! Get this bus's protocol facet, if present. + //! + //! @return this bus's protocol facet if it has one, nullptr otherwise. + [[nodiscard]] virtual auto protocol() -> struct bus_protocol *; + protected: //! Enumerate the devices on the bus. //! |
