diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2019-11-20 05:04:44 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2019-11-20 05:04:44 +0000 |
commit | 588b15d7039f9788e3807bc5533af6bd5ea08885 (patch) | |
tree | c35db25ad32f9990069971dd01959290fa2c149c /sys/arm/broadcom/bcm2835/bcm2835_vcbus.h | |
parent | 40084ac37f011000de8386ba5dd499787ac8ff2b (diff) |
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.
Notes
Notes:
svn path=/head/; revision=354876
Diffstat (limited to 'sys/arm/broadcom/bcm2835/bcm2835_vcbus.h')
-rw-r--r-- | sys/arm/broadcom/bcm2835/bcm2835_vcbus.h | 3 |
1 files changed, 3 insertions, 0 deletions
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_ */ |