Skip to content

Commit

Permalink
driver attach
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnoreWarnings committed Jul 31, 2024
1 parent 437f828 commit 954f0c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fpga/include/villas/fpga/devices/driver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class Driver {
const std::filesystem::path bind_path)
: path(path), unbind_path(unbind_path), bind_path(bind_path){};

void attach(const Device &device) const;
void unbind(const Device &device) const;
void bind(const Device &device) const;
void override(const Device &device) const;
std::string name() const;
};
2 changes: 1 addition & 1 deletion fpga/lib/platform_card.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void PlatformCard::connectVFIOtoIps(
auto platform_driver = Driver(
std::filesystem::path("/sys/bus/platform/drivers/vfio-platform"));
auto device = pair.second;
platform_driver.override(device);
platform_driver.attach(device);
}

// Prepare VFIO Group
Expand Down

0 comments on commit 954f0c2

Please sign in to comment.