162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef _SPARC64_DCU_H
362306a36Sopenharmony_ci#define _SPARC64_DCU_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#include <linux/const.h>
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci/* UltraSparc-III Data Cache Unit Control Register */
862306a36Sopenharmony_ci#define DCU_CP	_AC(0x0002000000000000,UL) /* Phys Cache Enable w/o mmu	*/
962306a36Sopenharmony_ci#define DCU_CV	_AC(0x0001000000000000,UL) /* Virt Cache Enable w/o mmu	*/
1062306a36Sopenharmony_ci#define DCU_ME	_AC(0x0000800000000000,UL) /* NC-store Merging Enable	*/
1162306a36Sopenharmony_ci#define DCU_RE	_AC(0x0000400000000000,UL) /* RAW bypass Enable		*/
1262306a36Sopenharmony_ci#define DCU_PE	_AC(0x0000200000000000,UL) /* PCache Enable		*/
1362306a36Sopenharmony_ci#define DCU_HPE	_AC(0x0000100000000000,UL) /* HW prefetch Enable	*/
1462306a36Sopenharmony_ci#define DCU_SPE	_AC(0x0000080000000000,UL) /* SW prefetch Enable	*/
1562306a36Sopenharmony_ci#define DCU_SL	_AC(0x0000040000000000,UL) /* Secondary ld-steering Enab*/
1662306a36Sopenharmony_ci#define DCU_WE	_AC(0x0000020000000000,UL) /* WCache enable		*/
1762306a36Sopenharmony_ci#define DCU_PM	_AC(0x000001fe00000000,UL) /* PA Watchpoint Byte Mask	*/
1862306a36Sopenharmony_ci#define DCU_VM	_AC(0x00000001fe000000,UL) /* VA Watchpoint Byte Mask	*/
1962306a36Sopenharmony_ci#define DCU_PR	_AC(0x0000000001000000,UL) /* PA Watchpoint Read Enable	*/
2062306a36Sopenharmony_ci#define DCU_PW	_AC(0x0000000000800000,UL) /* PA Watchpoint Write Enable*/
2162306a36Sopenharmony_ci#define DCU_VR	_AC(0x0000000000400000,UL) /* VA Watchpoint Read Enable	*/
2262306a36Sopenharmony_ci#define DCU_VW	_AC(0x0000000000200000,UL) /* VA Watchpoint Write Enable*/
2362306a36Sopenharmony_ci#define DCU_DM	_AC(0x0000000000000008,UL) /* DMMU Enable		*/
2462306a36Sopenharmony_ci#define DCU_IM	_AC(0x0000000000000004,UL) /* IMMU Enable		*/
2562306a36Sopenharmony_ci#define DCU_DC	_AC(0x0000000000000002,UL) /* Data Cache Enable		*/
2662306a36Sopenharmony_ci#define DCU_IC	_AC(0x0000000000000001,UL) /* Instruction Cache Enable	*/
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci#endif /* _SPARC64_DCU_H */
29