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
Document the bcm_host helper functions #158
Comments
:) |
Jonathan - can you propose some text, and where you think it should be located in the documentation? |
Hi @P33M, any news on this? |
@P33M @popcornmix If either of you guys can give me a leg up on how this stuff works and why it's needed, I'm happy to write the documentation for it. Would be nice to get this 2 year old issue out of the way! |
The code is here: bcm_host_get_peripheral_address bcm_host_get_peripheral_size bcm_host_get_sdram_address These are of interest to very few users - i.e. those who want to mmap peripherals to access without using a kernel driver. |
@popcornmix Does this read OK for the bcm stuff? Which library do you need to build in to get this library, just bcmhost? |
Sorry, I should have linked to the PR. #623 |
For programs wanting to poke peripheral addresses directly (for lack of a better interface), they need to know where in the virtual memory map the peripheral bus segment has been placed. This used to be tied to the platform (or rather had the same address since day 0), now is variable between Pi1 and Pi2.
Perhaps we need a one-pager in the hardware section detailing how to use this api:
https://github.com/raspberrypi/firmware/blob/master/opt/vc/include/bcm_host.h
The text was updated successfully, but these errors were encountered: