1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-23 00:00:01 +01:00
VILLASnode/common/include/villas/kernel/devices/driver.hpp
Pascal Bauer 914ea0bac6 Refactor FPGA device and drivers
Signed-off-by: Pascal Bauer <pascal.bauer@rwth-aachen.de>
2024-10-31 12:18:20 +01:00

29 lines
No EOL
742 B
C++

/* Interface for device drivers. OS/platform independend.
* Implemented for Linux/Unix drivers in linux_driver.hpp
*
* Author: Pascal Bauer <pascal.bauer@rwth-aachen.de>
*
* SPDX-FileCopyrightText: 2023-2024 Pascal Bauer <pascal.bauer@rwth-aachen.de>
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
namespace villas {
namespace kernel {
namespace devices {
class Device;
class Driver {
public:
virtual void attach(const Device &device) const = 0;
virtual void bind(const Device &device) const = 0;
virtual std::string name() const = 0;
virtual void override(const Device &device) const = 0;
virtual void unbind(const Device &device) const = 0;
};
} // namespace devices
} // namespace kernel
} // namespace villas