404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.16.139.76: ~ $
/* 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;
}

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;
}

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;
}

static inline int plat_iounmap(const volatile void __iomem *addr)
{
	return is_bcm63xx_internal_registers((unsigned long)addr);
}

#endif /* BCM63XX_IOREMAP_H_ */

Filemanager

Name Type Size Permission Actions
bcm63xx_board.h File 246 B 0644
bcm63xx_cpu.h File 38.07 KB 0644
bcm63xx_cs.h File 399 B 0644
bcm63xx_dev_enet.h File 2.5 KB 0644
bcm63xx_dev_flash.h File 260 B 0644
bcm63xx_dev_hsspi.h File 190 B 0644
bcm63xx_dev_pci.h File 159 B 0644
bcm63xx_dev_pcmcia.h File 277 B 0644
bcm63xx_dev_spi.h File 239 B 0644
bcm63xx_dev_uart.h File 174 B 0644
bcm63xx_dev_usb_usbd.h File 428 B 0644
bcm63xx_gpio.h File 638 B 0644
bcm63xx_io.h File 4.21 KB 0644
bcm63xx_irq.h File 379 B 0644
bcm63xx_iudma.h File 1004 B 0644
bcm63xx_nvram.h File 916 B 0644
bcm63xx_regs.h File 49.74 KB 0644
bcm63xx_reset.h File 448 B 0644
bcm63xx_timer.h File 446 B 0644
board_bcm963xx.h File 1.14 KB 0644
cpu-feature-overrides.h File 1.33 KB 0644
ioremap.h File 1.04 KB 0644
irq.h File 162 B 0644
spaces.h File 509 B 0644