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
ofs umd: add ofs umd framework #1909
Merged
Merged
Conversation
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
ofs umd (user mode driver) is a framework to take driver specs in yml format and turn it into C data structure, and function prototypes/implementations. This commit adds: * ofs_parse.py script that parses an ofs umd spec in .yml format and generates a header file for the given driver. * ofs_add_driver CMake macro that, given the .yml, driver name, and list of sources it will: * call ofs_parse.py to generate the .h * create a cmake library named after the driver name and use given source to compile. * sample unit tests in tests/ofs_driver that exercise: * The cmake macro * The functions generated by ofs_parse.py TODO: ofs_parse.py is mostly prototype-leve code and will need to be refactored and cleaned up.
r-rojo
requested review from
michelleyho,
anandaravuri,
tswhison,
fpgamatt and
hundeboll-silicom
March 10, 2021 22:35
tswhison
previously approved these changes
Mar 10, 2021
michelleyho
previously approved these changes
Mar 10, 2021
tswhison
approved these changes
Mar 10, 2021
r-rojo
pushed a commit
that referenced
this pull request
Mar 12, 2021
59ec00f libofs: add libofs and umd (user mode driver) framework 9561585 libofs: fix blank lines in files b75690c libofs: finish migration to opae-libs repo f552e4d ofs_parse: look for call nodes in ast 049e00a ofs-umd: fix ofs_resolve to check func.id 4006206 libofs: add macros to wait for bit fields 15bac6c ofs umd: add ofs umd framework (#1909) e62592b ofs: initial implementation of libofs (#1899) git-subtree-dir: opae-libs git-subtree-split: 59ec00f
r-rojo
pushed a commit
that referenced
this pull request
Mar 12, 2021
a53e62e ofs-umd: fix ofs_add_driver cmake macro (#140) 59ec00f libofs: add libofs and umd (user mode driver) framework 9561585 libofs: fix blank lines in files b75690c libofs: finish migration to opae-libs repo f552e4d ofs_parse: look for call nodes in ast 049e00a ofs-umd: fix ofs_resolve to check func.id 4006206 libofs: add macros to wait for bit fields 15bac6c ofs umd: add ofs umd framework (#1909) e62592b ofs: initial implementation of libofs (#1899) git-subtree-dir: opae-libs git-subtree-split: a53e62e
r-rojo
added a commit
that referenced
this pull request
Oct 11, 2021
* ofs umd: add ofs umd framework ofs umd (user mode driver) is a framework to take driver specs in yml format and turn it into C data structure, and function prototypes/implementations. This commit adds: * ofs_parse.py script that parses an ofs umd spec in .yml format and generates a header file for the given driver. * ofs_add_driver CMake macro that, given the .yml, driver name, and list of sources it will: * call ofs_parse.py to generate the .h * create a cmake library named after the driver name and use given source to compile. * sample unit tests in tests/ofs_driver that exercise: * The cmake macro * The functions generated by ofs_parse.py TODO: ofs_parse.py is mostly prototype-leve code and will need to be refactored and cleaned up.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ofs umd (user mode driver) is a framework to take driver specs in yml
format and turn it into C data structure, and function
prototypes/implementations.
This commit adds:
generates a header file for the given driver.
of sources it will:
source to compile.
TODO:
ofs_parse.py is mostly prototype-leve code and will need to be
refactored and cleaned up.