Lines Matching +full:addr +full:- +full:mode

1 /* SPDX-License-Identifier: GPL-2.0 */
16 * -------------------------------------------------------------------
17 * |impl-vers| RSV| PMC |PE|PC| RSV |BM| RFR |IC|DC|PSO|RSV|ICS|NF|ME|
18 * -------------------------------------------------------------------
19 * 31 24 23-21 20-19 18 17 16-15 14 13-10 9 8 7 6-3 2 1 0
21 * BM: Boot Mode -- 0 = not in boot mode, 1 = in boot mode
23 * This indicates whether the TurboSparc is in boot-mode or not.
25 * IC: Instruction Cache -- 0 = off, 1 = on
26 * DC: Data Cache -- 0 = off, 1 = 0n
28 * These bits enable the on-cpu TurboSparc split I/D caches.
30 * ICS: ICache Snooping -- 0 = disable, 1 = enable snooping of icache
31 * NF: No Fault -- 0 = faults generate traps, 1 = faults don't trap
32 * ME: MMU enable -- 0 = mmu not translating, 1 = mmu translating
48 * -------------------------------------------------------
50 * -------------------------------------------------------
51 * 31 30 29-28 27-26 25-23 22-8 7-6 5 4 3 2-0
56 #define TURBOSPARC_uS2 0x00000010 /* Swift compatibility mode */
63 static inline void turbosparc_inv_insn_tag(unsigned long addr) in turbosparc_inv_insn_tag() argument
67 : "r" (addr), "i" (ASI_M_TXTC_TAG) in turbosparc_inv_insn_tag()
72 static inline void turbosparc_inv_data_tag(unsigned long addr) in turbosparc_inv_data_tag() argument
76 : "r" (addr), "i" (ASI_M_DATAC_TAG) in turbosparc_inv_data_tag()
82 unsigned long addr; in turbosparc_flush_icache() local
84 for (addr = 0; addr < 0x4000; addr += 0x20) in turbosparc_flush_icache()
85 turbosparc_inv_insn_tag(addr); in turbosparc_flush_icache()
90 unsigned long addr; in turbosparc_flush_dcache() local
92 for (addr = 0; addr < 0x4000; addr += 0x20) in turbosparc_flush_dcache()
93 turbosparc_inv_data_tag(addr); in turbosparc_flush_dcache()
98 unsigned long addr; in turbosparc_idflash_clear() local
100 for (addr = 0; addr < 0x4000; addr += 0x20) { in turbosparc_idflash_clear()
101 turbosparc_inv_insn_tag(addr); in turbosparc_idflash_clear()
102 turbosparc_inv_data_tag(addr); in turbosparc_idflash_clear()