Server IP : 15.235.198.142 / Your IP : 216.73.216.17 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/src/linux-headers-6.8.0-45/arch/powerpc/include/asm/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * (c) Copyright 2006 Benjamin Herrenschmidt, IBM Corp. * <benh@kernel.crashing.org> */ #ifndef _ASM_POWERPC_DCR_H #define _ASM_POWERPC_DCR_H #ifdef __KERNEL__ #ifndef __ASSEMBLY__ #ifdef CONFIG_PPC_DCR #ifdef CONFIG_PPC_DCR_NATIVE #include <asm/dcr-native.h> #endif #ifdef CONFIG_PPC_DCR_MMIO #include <asm/dcr-mmio.h> #endif /* Indirection layer for providing both NATIVE and MMIO support. */ #if defined(CONFIG_PPC_DCR_NATIVE) && defined(CONFIG_PPC_DCR_MMIO) #include <asm/dcr-generic.h> #define DCR_MAP_OK(host) dcr_map_ok_generic(host) #define dcr_map(dev, dcr_n, dcr_c) dcr_map_generic(dev, dcr_n, dcr_c) #define dcr_unmap(host, dcr_c) dcr_unmap_generic(host, dcr_c) #define dcr_read(host, dcr_n) dcr_read_generic(host, dcr_n) #define dcr_write(host, dcr_n, value) dcr_write_generic(host, dcr_n, value) #else #ifdef CONFIG_PPC_DCR_NATIVE typedef dcr_host_native_t dcr_host_t; #define DCR_MAP_OK(host) dcr_map_ok_native(host) #define dcr_map(dev, dcr_n, dcr_c) dcr_map_native(dev, dcr_n, dcr_c) #define dcr_unmap(host, dcr_c) dcr_unmap_native(host, dcr_c) #define dcr_read(host, dcr_n) dcr_read_native(host, dcr_n) #define dcr_write(host, dcr_n, value) dcr_write_native(host, dcr_n, value) #else typedef dcr_host_mmio_t dcr_host_t; #define DCR_MAP_OK(host) dcr_map_ok_mmio(host) #define dcr_map(dev, dcr_n, dcr_c) dcr_map_mmio(dev, dcr_n, dcr_c) #define dcr_unmap(host, dcr_c) dcr_unmap_mmio(host, dcr_c) #define dcr_read(host, dcr_n) dcr_read_mmio(host, dcr_n) #define dcr_write(host, dcr_n, value) dcr_write_mmio(host, dcr_n, value) #endif #endif /* defined(CONFIG_PPC_DCR_NATIVE) && defined(CONFIG_PPC_DCR_MMIO) */ /* * additional helpers to read the DCR * base from the device-tree */ struct device_node; extern unsigned int dcr_resource_start(const struct device_node *np, unsigned int index); extern unsigned int dcr_resource_len(const struct device_node *np, unsigned int index); #endif /* CONFIG_PPC_DCR */ #endif /* __ASSEMBLY__ */ #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_DCR_H */