Skip to content

Commit

Permalink
Document return values of bcm_host_get_peripheral_* functions for…cla…
Browse files Browse the repository at this point in the history
…rity.

Signed-off-by: Daniel Indictor <daniel.indictor@gmail.com>
  • Loading branch information
DanielIndictor committed Jul 27, 2022
1 parent 54fd97a commit 4a36e44
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions host_applications/linux/libs/bcm_host/include/bcm_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,19 @@ int32_t graphics_get_display_size( const uint16_t display_number,
uint32_t *width,
uint32_t *height);

/* These functions refer to the peripherals that all Pi's share,
* which may differ from the physical peripheral address on the
* peripheral datasheet. For example, on the BCM2711,
* bcm_host_get_peripheral_address() returns a value 0x0200_0000 bytes higher
* than the "main peripheral" physical addresses from the BCM2xxx datasheets.
* On the BCM2711, this is because the first 0x0200_0000 bytes in the "main
* peripherals" block are reserved for BCM2711-specific addresses.
* Source:
* https://github.com/raspberrypi/linux/blob/a90998a3e549911234f9f707050858b98b71360f/arch/arm/boot/dts/bcm2711.dtsi#L34
*/
unsigned bcm_host_get_peripheral_address(void);
unsigned bcm_host_get_peripheral_size(void);

unsigned bcm_host_get_sdram_address(void);

#include "interface/vmcs_host/vc_dispmanx.h"
Expand Down

0 comments on commit 4a36e44

Please sign in to comment.