Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Nov 2019 05:04:44 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r354876 - head/sys/arm/broadcom/bcm2835
Message-ID:  <201911200504.xAK54iSc072801@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911200504.xAK54iSc072801>