/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ALPHA_POLARIS__H__ #define __ALPHA_POLARIS__H__ #include <linux/types.h> #include <asm/compiler.h> /* * POLARIS is the internal name for a core logic chipset which provides * memory controller and PCI access for the 21164PC chip based systems. * * This file is based on: * * Polaris System Controller * Device Functional Specification * 22-Jan-98 * Rev. 4.2 * */ /* Polaris memory regions */ #define POLARIS_SPARSE_MEM_BASE (IDENT_ADDR + 0xf800000000UL) #define POLARIS_DENSE_MEM_BASE (IDENT_ADDR + 0xf900000000UL) #define POLARIS_SPARSE_IO_BASE (IDENT_ADDR + 0xf980000000UL) #define POLARIS_SPARSE_CONFIG_BASE (IDENT_ADDR + 0xf9c0000000UL) #define POLARIS_IACK_BASE (IDENT_ADDR + 0xf9f8000000UL) #define POLARIS_DENSE_IO_BASE (IDENT_ADDR + 0xf9fc000000UL) #define POLARIS_DENSE_CONFIG_BASE (IDENT_ADDR + 0xf9fe000000UL) #define POLARIS_IACK_SC POLARIS_IACK_BASE /* The Polaris command/status registers live in PCI Config space for * bus 0/device 0. As such, they may be bytes, words, or doublewords. */ #define POLARIS_W_VENID (POLARIS_DENSE_CONFIG_BASE) #define POLARIS_W_DEVID (POLARIS_DENSE_CONFIG_BASE+2) #define POLARIS_W_CMD (POLARIS_DENSE_CONFIG_BASE+4) #define POLARIS_W_STATUS (POLARIS_DENSE_CONFIG_BASE+6) /* * Data structure for handling POLARIS machine checks: */ struct el_POLARIS_sysdata_mcheck { u_long psc_status; u_long psc_pcictl0; u_long psc_pcictl1; u_long psc_pcictl2; }; #ifdef __KERNEL__ #ifndef __EXTERN_INLINE #define __EXTERN_INLINE extern inline #define __IO_EXTERN_INLINE #endif /* * I/O functions: * * POLARIS, the PCI/memory support chipset for the PCA56 (21164PC) * processors, can use either a sparse address mapping scheme, or the * so-called byte-word PCI address space, to get at PCI memory and I/O. * * However, we will support only the BWX form. */ /* * Memory functions. Polaris allows all accesses (byte/word * as well as long/quad) to be done through dense space. * * We will only support DENSE access via BWX insns. */
__EXTERN_INLINE void __iomem *polaris_ioportmap(unsigned long addr) { return (void __iomem *)(addr + POLARIS_DENSE_IO_BASE); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 15 | 62.50% | 1 | 50.00% |
Richard Henderson | 9 | 37.50% | 1 | 50.00% |
Total | 24 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 18 | 64.29% | 2 | 50.00% |
Richard Henderson | 10 | 35.71% | 2 | 50.00% |
Total | 28 | 100.00% | 4 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 9 | 60.00% | 1 | 50.00% |
Richard Henderson | 6 | 40.00% | 1 | 50.00% |
Total | 15 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Richard Henderson | 11 | 50.00% | 2 | 50.00% |
Linus Torvalds (pre-git) | 11 | 50.00% | 2 | 50.00% |
Total | 22 | 100.00% | 4 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 166 | 70.64% | 3 | 42.86% |
Richard Henderson | 61 | 25.96% | 2 | 28.57% |
Al Viro | 7 | 2.98% | 1 | 14.29% |
Greg Kroah-Hartman | 1 | 0.43% | 1 | 14.29% |
Total | 235 | 100.00% | 7 | 100.00% |