Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposing the DMA's GIT Version and API Version to pyrogue variables #1003

Merged
merged 6 commits into from
Jun 21, 2024

Conversation

ruck314
Copy link
Contributor

@ruck314 ruck314 commented May 23, 2024

Description

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Adding DMA_Get_GITV/DMA_Get_Version to expose DMA's API/GIT version to userspace
@ruck314 ruck314 requested review from bengineerd and slacrherbst May 23, 2024 17:26
@ruck314
Copy link
Contributor Author

ruck314 commented May 29, 2024

@slacrherbst ae21150 has the update you requested during yesterday's rogue meeting

// Result may be that rawBuff = NULL
// Should this just be a warning?
ret->rawBuff = dmaMapDma(ret->fd, &(ret->bCount), &(ret->bSize));
if (ret->rawBuff == NULL) {
ret->bCount = ioctl(ret->fd, DMA_Get_Buff_Count, 0);
ret->bCount = dmaGetBuffCount(ret->fd);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@slacrherbst Was there a "performance" reason why you were using a ioctl() in the AxiStreamDma.cpp code (instead of the header's API functions) here? If yes, I will change it back

@ruck314 ruck314 mentioned this pull request Jun 4, 2024
@ruck314 ruck314 merged commit 529dab8 into pre-release Jun 21, 2024
5 checks passed
@ruck314 ruck314 deleted the ESROGUE-608 branch June 21, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants