35 #define PERIPHERAL_BASE_ADDR_PHYS_RPI2 0x3f000000 37 #define PERIPHERAL_BASE_ADDR_PHYS_RPI1 0x20000000 39 #define PERIPHERAL_BASE_ADDR_BUS 0x7e000000 50 #define TO_PHYS_MEM(addr) (addr & ~0xc0000000) 55 #define PERIPHERAL_PHYS_TO_BUS_ADDR(addr) (addr - PERIPHERAL_BASE_ADDR_PHYS_RPI2 + PERIPHERAL_BASE_ADDR_BUS) int addrVirtToPhys(void *virtAddr, uintptr_t *physAddrRet)
Gets the physical address corresponding to the provided virtual address.
Definition: addressing.cpp:29
uintptr_t peripheralsBaseAddressPhys
Physical base address of the peripherals memory area.
Definition: addressing.cpp:19