:github_url: https://github.com/nyx-org/gaia .. _program_listing_file_dev_acpi_device.hpp: Program Listing for File device.hpp =================================== |exhale_lsh| :ref:`Return to documentation for file ` (``dev/acpi/device.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /* SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include namespace Gaia::Dev { class AcpiDevice : public Service { public: AcpiDevice(lai_variable_t id, lai_nsnode_t *obj); void start(Service *provider) override; lai_nsnode_t *aml_node; lai_variable_t id; bool match_properties(Properties &props) override; const char *class_name() override { return "AcpiDevice"; } const char *name() override { return _name.data(); }; Result resolve_path(const char *path); Result eval_path_int(const char *path); private: frg::string _name = ""; const char *devid; Vm::UniquePtr driver; }; } // namespace Gaia::Dev