18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _SPARC64_LSU_H
38c2ecf20Sopenharmony_ci#define _SPARC64_LSU_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <linux/const.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci/* LSU Control Register */
88c2ecf20Sopenharmony_ci#define LSU_CONTROL_PM _AC(0x000001fe00000000,UL) /* Phys-watchpoint byte mask*/
98c2ecf20Sopenharmony_ci#define LSU_CONTROL_VM _AC(0x00000001fe000000,UL) /* Virt-watchpoint byte mask*/
108c2ecf20Sopenharmony_ci#define LSU_CONTROL_PR _AC(0x0000000001000000,UL) /* Phys-rd watchpoint enable*/
118c2ecf20Sopenharmony_ci#define LSU_CONTROL_PW _AC(0x0000000000800000,UL) /* Phys-wr watchpoint enable*/
128c2ecf20Sopenharmony_ci#define LSU_CONTROL_VR _AC(0x0000000000400000,UL) /* Virt-rd watchpoint enable*/
138c2ecf20Sopenharmony_ci#define LSU_CONTROL_VW _AC(0x0000000000200000,UL) /* Virt-wr watchpoint enable*/
148c2ecf20Sopenharmony_ci#define LSU_CONTROL_FM _AC(0x00000000000ffff0,UL) /* Parity mask enables.     */
158c2ecf20Sopenharmony_ci#define LSU_CONTROL_DM _AC(0x0000000000000008,UL) /* Data MMU enable.         */
168c2ecf20Sopenharmony_ci#define LSU_CONTROL_IM _AC(0x0000000000000004,UL) /* Instruction MMU enable.  */
178c2ecf20Sopenharmony_ci#define LSU_CONTROL_DC _AC(0x0000000000000002,UL) /* Data cache enable.       */
188c2ecf20Sopenharmony_ci#define LSU_CONTROL_IC _AC(0x0000000000000001,UL) /* Instruction cache enable.*/
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#endif /* !(_SPARC64_LSU_H) */
21