From 588b15d7039f9788e3807bc5533af6bd5ea08885 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Wed, 20 Nov 2019 05:04:44 +0000 Subject: [PATCH] bcm2835_vcbus: add compatibility name for ^/sys/contrib/vchiq It's unclear how this didn't get caught in my last iteration, but the fix is easy- the interface is still compatible, it was just gratuituously renamed to match my arbitrary definition of consistency... VCBUS, the BCM2835 name, represents an address on the VideoCore CPU Bus. In a similar fashion, while it is a physical address, the ARMC portion represents that these are addresses as seen by the ARM CPU. To make things even more fun, the BCM2711 peripheral documentation describes not virtual address space vs. physical address space, but instead the 32-bit address map vs. the address map in "Low Peripheral" mode. The latter of these is what the *ARMC* macros translate to/from. --- sys/arm/broadcom/bcm2835/bcm2835_vcbus.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/arm/broadcom/bcm2835/bcm2835_vcbus.h b/sys/arm/broadcom/bcm2835/bcm2835_vcbus.h index c6fe18c12175..e8ee179782b5 100644 --- a/sys/arm/broadcom/bcm2835/bcm2835_vcbus.h +++ b/sys/arm/broadcom/bcm2835/bcm2835_vcbus.h @@ -71,4 +71,7 @@ bus_addr_t bcm283x_dmabus_peripheral_lowaddr(void); #define ARMC_TO_VCBUS(pa) bcm283x_armc_to_vcbus(pa) #define VCBUS_TO_ARMC(vca) bcm283x_vcbus_to_armc(vca) +/* Compatibility name for vchiq arm interface. */ +#define PHYS_TO_VCBUS ARMC_TO_VCBUS + #endif /* _BCM2835_VCBUS_H_ */