Release 4.14 arch/mips/include/asm/mach-bcm63xx/ioremap.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef BCM63XX_IOREMAP_H_
#define BCM63XX_IOREMAP_H_
#include <bcm63xx_cpu.h>
static inline phys_addr_t fixup_bigphys_addr(phys_addr_t phys_addr, phys_addr_t size)
{
return phys_addr;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Maxime Bizon | 13 | 81.25% | 1 | 50.00% |
Ralf Bächle | 3 | 18.75% | 1 | 50.00% |
Total | 16 | 100.00% | 2 | 100.00% |
static inline int is_bcm63xx_internal_registers(phys_addr_t offset)
{
switch (bcm63xx_get_cpu_id()) {
case BCM3368_CPU_ID:
if (offset >= 0xfff80000)
return 1;
break;
case BCM6338_CPU_ID:
case BCM6345_CPU_ID:
case BCM6348_CPU_ID:
case BCM6358_CPU_ID:
if (offset >= 0xfff00000)
return 1;
break;
case BCM6328_CPU_ID:
case BCM6362_CPU_ID:
case BCM6368_CPU_ID:
if (offset >= 0xb0000000 && offset < 0xb1000000)
return 1;
break;
}
return 0;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Maxime Bizon | 58 | 74.36% | 2 | 33.33% |
Florian Fainelli | 13 | 16.67% | 1 | 16.67% |
Jonas Gorski | 6 | 7.69% | 2 | 33.33% |
Ralf Bächle | 1 | 1.28% | 1 | 16.67% |
Total | 78 | 100.00% | 6 | 100.00% |
static inline void __iomem *plat_ioremap(phys_addr_t offset, unsigned long size,
unsigned long flags)
{
if (is_bcm63xx_internal_registers(offset))
return (void __iomem *)offset;
return NULL;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Maxime Bizon | 37 | 97.37% | 1 | 50.00% |
Ralf Bächle | 1 | 2.63% | 1 | 50.00% |
Total | 38 | 100.00% | 2 | 100.00% |
static inline int plat_iounmap(const volatile void __iomem *addr)
{
return is_bcm63xx_internal_registers((unsigned long)addr);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Maxime Bizon | 24 | 100.00% | 1 | 100.00% |
Total | 24 | 100.00% | 1 | 100.00% |
#endif /* BCM63XX_IOREMAP_H_ */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Maxime Bizon | 144 | 85.21% | 2 | 28.57% |
Florian Fainelli | 13 | 7.69% | 1 | 14.29% |
Jonas Gorski | 6 | 3.55% | 2 | 28.57% |
Ralf Bächle | 5 | 2.96% | 1 | 14.29% |
Greg Kroah-Hartman | 1 | 0.59% | 1 | 14.29% |
Total | 169 | 100.00% | 7 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.