-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
soapy: Check DDR3 init and calibration soapy: Use new ioctl numbers soapy: Start new DMA buffer management implementation soapy: Move utility functions soapy: Misc changes Signed-off-by: João Silva <jgc3silva@gmail.com>
- Loading branch information
Showing
7 changed files
with
158 additions
and
200 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "DMAMemoryManager.hpp" | ||
|
||
DMAMemoryManager::DMAMemoryManager(int fd, AXIPCIe *axi_pcie) | ||
{ | ||
this->fd = fd; | ||
this->axi_pcie = axi_pcie; | ||
} | ||
DMAMemoryManager::~DMAMemoryManager() | ||
{ | ||
this->deinit(); | ||
} | ||
|
||
void DMAMemoryManager::init() | ||
{ | ||
|
||
} | ||
void DMAMemoryManager::deinit() | ||
{ | ||
|
||
} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#pragma once | ||
|
||
#include <cstdint> | ||
#include <string> | ||
#include <vector> | ||
#include <mutex> | ||
#include "ioctl.hpp" | ||
#include "AXIPCIe.hpp" | ||
#include "MappedRegion.hpp" | ||
|
||
class DMAMemoryManager | ||
{ | ||
public: | ||
DMAMemoryManager(int fd, AXIPCIe *axi_pcie); | ||
~DMAMemoryManager(); | ||
|
||
void init(); | ||
void deinit(); | ||
|
||
private: | ||
int fd; | ||
AXIPCIe *axi_pcie; | ||
|
||
std::mutex mutex; | ||
}; |
This file contains 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
Oops, something went wrong.