svn commit: r354876 - head/sys/arm/broadcom/bcm2835

Kyle Evans kevans at FreeBSD.org
Wed Nov 20 05:04:45 UTC 2019


Author: kevans
Date: Wed Nov 20 05:04:44 2019
New Revision: 354876
URL: https://svnweb.freebsd.org/changeset/base/354876

Log:
  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.

Modified:
  head/sys/arm/broadcom/bcm2835/bcm2835_vcbus.h

Modified: head/sys/arm/broadcom/bcm2835/bcm2835_vcbus.h
==============================================================================
--- head/sys/arm/broadcom/bcm2835/bcm2835_vcbus.h	Wed Nov 20 03:57:46 2019	(r354875)
+++ head/sys/arm/broadcom/bcm2835/bcm2835_vcbus.h	Wed Nov 20 05:04:44 2019	(r354876)
@@ -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_ */


More information about the svn-src-head mailing list