18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright 1998-2003 VIA Technologies, Inc. All Rights Reserved. 38c2ecf20Sopenharmony_ci * Copyright 2001-2003 S3 Graphics, Inc. All Rights Reserved. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a 68c2ecf20Sopenharmony_ci * copy of this software and associated documentation files (the "Software"), 78c2ecf20Sopenharmony_ci * to deal in the Software without restriction, including without limitation 88c2ecf20Sopenharmony_ci * the rights to use, copy, modify, merge, publish, distribute, sub license, 98c2ecf20Sopenharmony_ci * and/or sell copies of the Software, and to permit persons to whom the 108c2ecf20Sopenharmony_ci * Software is furnished to do so, subject to the following conditions: 118c2ecf20Sopenharmony_ci * 128c2ecf20Sopenharmony_ci * The above copyright notice and this permission notice (including the 138c2ecf20Sopenharmony_ci * next paragraph) shall be included in all copies or substantial portions 148c2ecf20Sopenharmony_ci * of the Software. 158c2ecf20Sopenharmony_ci * 168c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 178c2ecf20Sopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 188c2ecf20Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 198c2ecf20Sopenharmony_ci * VIA, S3 GRAPHICS, AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 208c2ecf20Sopenharmony_ci * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 218c2ecf20Sopenharmony_ci * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 228c2ecf20Sopenharmony_ci * DEALINGS IN THE SOFTWARE. 238c2ecf20Sopenharmony_ci */ 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#ifndef VIA_3D_REG_H 268c2ecf20Sopenharmony_ci#define VIA_3D_REG_H 278c2ecf20Sopenharmony_ci#define HC_REG_BASE 0x0400 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci#define HC_REG_TRANS_SPACE 0x0040 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#define HC_ParaN_MASK 0xffffffff 328c2ecf20Sopenharmony_ci#define HC_Para_MASK 0x00ffffff 338c2ecf20Sopenharmony_ci#define HC_SubA_MASK 0xff000000 348c2ecf20Sopenharmony_ci#define HC_SubA_SHIFT 24 358c2ecf20Sopenharmony_ci/* Transmission Setting 368c2ecf20Sopenharmony_ci */ 378c2ecf20Sopenharmony_ci#define HC_REG_TRANS_SET 0x003c 388c2ecf20Sopenharmony_ci#define HC_ParaSubType_MASK 0xff000000 398c2ecf20Sopenharmony_ci#define HC_ParaType_MASK 0x00ff0000 408c2ecf20Sopenharmony_ci#define HC_ParaOS_MASK 0x0000ff00 418c2ecf20Sopenharmony_ci#define HC_ParaAdr_MASK 0x000000ff 428c2ecf20Sopenharmony_ci#define HC_ParaSubType_SHIFT 24 438c2ecf20Sopenharmony_ci#define HC_ParaType_SHIFT 16 448c2ecf20Sopenharmony_ci#define HC_ParaOS_SHIFT 8 458c2ecf20Sopenharmony_ci#define HC_ParaAdr_SHIFT 0 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci#define HC_ParaType_CmdVdata 0x0000 488c2ecf20Sopenharmony_ci#define HC_ParaType_NotTex 0x0001 498c2ecf20Sopenharmony_ci#define HC_ParaType_Tex 0x0002 508c2ecf20Sopenharmony_ci#define HC_ParaType_Palette 0x0003 518c2ecf20Sopenharmony_ci#define HC_ParaType_PreCR 0x0010 528c2ecf20Sopenharmony_ci#define HC_ParaType_Auto 0x00fe 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci/* Transmission Space 558c2ecf20Sopenharmony_ci */ 568c2ecf20Sopenharmony_ci#define HC_REG_Hpara0 0x0040 578c2ecf20Sopenharmony_ci#define HC_REG_HpataAF 0x02fc 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ci/* Read 608c2ecf20Sopenharmony_ci */ 618c2ecf20Sopenharmony_ci#define HC_REG_HREngSt 0x0000 628c2ecf20Sopenharmony_ci#define HC_REG_HRFIFOempty 0x0004 638c2ecf20Sopenharmony_ci#define HC_REG_HRFIFOfull 0x0008 648c2ecf20Sopenharmony_ci#define HC_REG_HRErr 0x000c 658c2ecf20Sopenharmony_ci#define HC_REG_FIFOstatus 0x0010 668c2ecf20Sopenharmony_ci/* HC_REG_HREngSt 0x0000 678c2ecf20Sopenharmony_ci */ 688c2ecf20Sopenharmony_ci#define HC_HDASZC_MASK 0x00010000 698c2ecf20Sopenharmony_ci#define HC_HSGEMI_MASK 0x0000f000 708c2ecf20Sopenharmony_ci#define HC_HLGEMISt_MASK 0x00000f00 718c2ecf20Sopenharmony_ci#define HC_HCRSt_MASK 0x00000080 728c2ecf20Sopenharmony_ci#define HC_HSE0St_MASK 0x00000040 738c2ecf20Sopenharmony_ci#define HC_HSE1St_MASK 0x00000020 748c2ecf20Sopenharmony_ci#define HC_HPESt_MASK 0x00000010 758c2ecf20Sopenharmony_ci#define HC_HXESt_MASK 0x00000008 768c2ecf20Sopenharmony_ci#define HC_HBESt_MASK 0x00000004 778c2ecf20Sopenharmony_ci#define HC_HE2St_MASK 0x00000002 788c2ecf20Sopenharmony_ci#define HC_HE3St_MASK 0x00000001 798c2ecf20Sopenharmony_ci/* HC_REG_HRFIFOempty 0x0004 808c2ecf20Sopenharmony_ci */ 818c2ecf20Sopenharmony_ci#define HC_HRZDempty_MASK 0x00000010 828c2ecf20Sopenharmony_ci#define HC_HRTXAempty_MASK 0x00000008 838c2ecf20Sopenharmony_ci#define HC_HRTXDempty_MASK 0x00000004 848c2ecf20Sopenharmony_ci#define HC_HWZDempty_MASK 0x00000002 858c2ecf20Sopenharmony_ci#define HC_HWCDempty_MASK 0x00000001 868c2ecf20Sopenharmony_ci/* HC_REG_HRFIFOfull 0x0008 878c2ecf20Sopenharmony_ci */ 888c2ecf20Sopenharmony_ci#define HC_HRZDfull_MASK 0x00000010 898c2ecf20Sopenharmony_ci#define HC_HRTXAfull_MASK 0x00000008 908c2ecf20Sopenharmony_ci#define HC_HRTXDfull_MASK 0x00000004 918c2ecf20Sopenharmony_ci#define HC_HWZDfull_MASK 0x00000002 928c2ecf20Sopenharmony_ci#define HC_HWCDfull_MASK 0x00000001 938c2ecf20Sopenharmony_ci/* HC_REG_HRErr 0x000c 948c2ecf20Sopenharmony_ci */ 958c2ecf20Sopenharmony_ci#define HC_HAGPCMErr_MASK 0x80000000 968c2ecf20Sopenharmony_ci#define HC_HAGPCMErrC_MASK 0x70000000 978c2ecf20Sopenharmony_ci/* HC_REG_FIFOstatus 0x0010 988c2ecf20Sopenharmony_ci */ 998c2ecf20Sopenharmony_ci#define HC_HRFIFOATall_MASK 0x80000000 1008c2ecf20Sopenharmony_ci#define HC_HRFIFOATbusy_MASK 0x40000000 1018c2ecf20Sopenharmony_ci#define HC_HRATFGMDo_MASK 0x00000100 1028c2ecf20Sopenharmony_ci#define HC_HRATFGMDi_MASK 0x00000080 1038c2ecf20Sopenharmony_ci#define HC_HRATFRZD_MASK 0x00000040 1048c2ecf20Sopenharmony_ci#define HC_HRATFRTXA_MASK 0x00000020 1058c2ecf20Sopenharmony_ci#define HC_HRATFRTXD_MASK 0x00000010 1068c2ecf20Sopenharmony_ci#define HC_HRATFWZD_MASK 0x00000008 1078c2ecf20Sopenharmony_ci#define HC_HRATFWCD_MASK 0x00000004 1088c2ecf20Sopenharmony_ci#define HC_HRATTXTAG_MASK 0x00000002 1098c2ecf20Sopenharmony_ci#define HC_HRATTXCH_MASK 0x00000001 1108c2ecf20Sopenharmony_ci 1118c2ecf20Sopenharmony_ci/* AGP Command Setting 1128c2ecf20Sopenharmony_ci */ 1138c2ecf20Sopenharmony_ci#define HC_SubA_HAGPBstL 0x0060 1148c2ecf20Sopenharmony_ci#define HC_SubA_HAGPBendL 0x0061 1158c2ecf20Sopenharmony_ci#define HC_SubA_HAGPCMNT 0x0062 1168c2ecf20Sopenharmony_ci#define HC_SubA_HAGPBpL 0x0063 1178c2ecf20Sopenharmony_ci#define HC_SubA_HAGPBpH 0x0064 1188c2ecf20Sopenharmony_ci/* HC_SubA_HAGPCMNT 0x0062 1198c2ecf20Sopenharmony_ci */ 1208c2ecf20Sopenharmony_ci#define HC_HAGPCMNT_MASK 0x00800000 1218c2ecf20Sopenharmony_ci#define HC_HCmdErrClr_MASK 0x00400000 1228c2ecf20Sopenharmony_ci#define HC_HAGPBendH_MASK 0x0000ff00 1238c2ecf20Sopenharmony_ci#define HC_HAGPBstH_MASK 0x000000ff 1248c2ecf20Sopenharmony_ci#define HC_HAGPBendH_SHIFT 8 1258c2ecf20Sopenharmony_ci#define HC_HAGPBstH_SHIFT 0 1268c2ecf20Sopenharmony_ci/* HC_SubA_HAGPBpL 0x0063 1278c2ecf20Sopenharmony_ci */ 1288c2ecf20Sopenharmony_ci#define HC_HAGPBpL_MASK 0x00fffffc 1298c2ecf20Sopenharmony_ci#define HC_HAGPBpID_MASK 0x00000003 1308c2ecf20Sopenharmony_ci#define HC_HAGPBpID_PAUSE 0x00000000 1318c2ecf20Sopenharmony_ci#define HC_HAGPBpID_JUMP 0x00000001 1328c2ecf20Sopenharmony_ci#define HC_HAGPBpID_STOP 0x00000002 1338c2ecf20Sopenharmony_ci/* HC_SubA_HAGPBpH 0x0064 1348c2ecf20Sopenharmony_ci */ 1358c2ecf20Sopenharmony_ci#define HC_HAGPBpH_MASK 0x00ffffff 1368c2ecf20Sopenharmony_ci 1378c2ecf20Sopenharmony_ci/* Miscellaneous Settings 1388c2ecf20Sopenharmony_ci */ 1398c2ecf20Sopenharmony_ci#define HC_SubA_HClipTB 0x0070 1408c2ecf20Sopenharmony_ci#define HC_SubA_HClipLR 0x0071 1418c2ecf20Sopenharmony_ci#define HC_SubA_HFPClipTL 0x0072 1428c2ecf20Sopenharmony_ci#define HC_SubA_HFPClipBL 0x0073 1438c2ecf20Sopenharmony_ci#define HC_SubA_HFPClipLL 0x0074 1448c2ecf20Sopenharmony_ci#define HC_SubA_HFPClipRL 0x0075 1458c2ecf20Sopenharmony_ci#define HC_SubA_HFPClipTBH 0x0076 1468c2ecf20Sopenharmony_ci#define HC_SubA_HFPClipLRH 0x0077 1478c2ecf20Sopenharmony_ci#define HC_SubA_HLP 0x0078 1488c2ecf20Sopenharmony_ci#define HC_SubA_HLPRF 0x0079 1498c2ecf20Sopenharmony_ci#define HC_SubA_HSolidCL 0x007a 1508c2ecf20Sopenharmony_ci#define HC_SubA_HPixGC 0x007b 1518c2ecf20Sopenharmony_ci#define HC_SubA_HSPXYOS 0x007c 1528c2ecf20Sopenharmony_ci#define HC_SubA_HVertexCNT 0x007d 1538c2ecf20Sopenharmony_ci 1548c2ecf20Sopenharmony_ci#define HC_HClipT_MASK 0x00fff000 1558c2ecf20Sopenharmony_ci#define HC_HClipT_SHIFT 12 1568c2ecf20Sopenharmony_ci#define HC_HClipB_MASK 0x00000fff 1578c2ecf20Sopenharmony_ci#define HC_HClipB_SHIFT 0 1588c2ecf20Sopenharmony_ci#define HC_HClipL_MASK 0x00fff000 1598c2ecf20Sopenharmony_ci#define HC_HClipL_SHIFT 12 1608c2ecf20Sopenharmony_ci#define HC_HClipR_MASK 0x00000fff 1618c2ecf20Sopenharmony_ci#define HC_HClipR_SHIFT 0 1628c2ecf20Sopenharmony_ci#define HC_HFPClipBH_MASK 0x0000ff00 1638c2ecf20Sopenharmony_ci#define HC_HFPClipBH_SHIFT 8 1648c2ecf20Sopenharmony_ci#define HC_HFPClipTH_MASK 0x000000ff 1658c2ecf20Sopenharmony_ci#define HC_HFPClipTH_SHIFT 0 1668c2ecf20Sopenharmony_ci#define HC_HFPClipRH_MASK 0x0000ff00 1678c2ecf20Sopenharmony_ci#define HC_HFPClipRH_SHIFT 8 1688c2ecf20Sopenharmony_ci#define HC_HFPClipLH_MASK 0x000000ff 1698c2ecf20Sopenharmony_ci#define HC_HFPClipLH_SHIFT 0 1708c2ecf20Sopenharmony_ci#define HC_HSolidCH_MASK 0x000000ff 1718c2ecf20Sopenharmony_ci#define HC_HPixGC_MASK 0x00800000 1728c2ecf20Sopenharmony_ci#define HC_HSPXOS_MASK 0x00fff000 1738c2ecf20Sopenharmony_ci#define HC_HSPXOS_SHIFT 12 1748c2ecf20Sopenharmony_ci#define HC_HSPYOS_MASK 0x00000fff 1758c2ecf20Sopenharmony_ci 1768c2ecf20Sopenharmony_ci/* Command 1778c2ecf20Sopenharmony_ci * Command A 1788c2ecf20Sopenharmony_ci */ 1798c2ecf20Sopenharmony_ci#define HC_HCmdHeader_MASK 0xfe000000 /*0xffe00000 */ 1808c2ecf20Sopenharmony_ci#define HC_HE3Fire_MASK 0x00100000 1818c2ecf20Sopenharmony_ci#define HC_HPMType_MASK 0x000f0000 1828c2ecf20Sopenharmony_ci#define HC_HEFlag_MASK 0x0000e000 1838c2ecf20Sopenharmony_ci#define HC_HShading_MASK 0x00001c00 1848c2ecf20Sopenharmony_ci#define HC_HPMValidN_MASK 0x00000200 1858c2ecf20Sopenharmony_ci#define HC_HPLEND_MASK 0x00000100 1868c2ecf20Sopenharmony_ci#define HC_HVCycle_MASK 0x000000ff 1878c2ecf20Sopenharmony_ci#define HC_HVCycle_Style_MASK 0x000000c0 1888c2ecf20Sopenharmony_ci#define HC_HVCycle_ChgA_MASK 0x00000030 1898c2ecf20Sopenharmony_ci#define HC_HVCycle_ChgB_MASK 0x0000000c 1908c2ecf20Sopenharmony_ci#define HC_HVCycle_ChgC_MASK 0x00000003 1918c2ecf20Sopenharmony_ci#define HC_HPMType_Point 0x00000000 1928c2ecf20Sopenharmony_ci#define HC_HPMType_Line 0x00010000 1938c2ecf20Sopenharmony_ci#define HC_HPMType_Tri 0x00020000 1948c2ecf20Sopenharmony_ci#define HC_HPMType_TriWF 0x00040000 1958c2ecf20Sopenharmony_ci#define HC_HEFlag_NoAA 0x00000000 1968c2ecf20Sopenharmony_ci#define HC_HEFlag_ab 0x00008000 1978c2ecf20Sopenharmony_ci#define HC_HEFlag_bc 0x00004000 1988c2ecf20Sopenharmony_ci#define HC_HEFlag_ca 0x00002000 1998c2ecf20Sopenharmony_ci#define HC_HShading_Solid 0x00000000 2008c2ecf20Sopenharmony_ci#define HC_HShading_FlatA 0x00000400 2018c2ecf20Sopenharmony_ci#define HC_HShading_FlatB 0x00000800 2028c2ecf20Sopenharmony_ci#define HC_HShading_FlatC 0x00000c00 2038c2ecf20Sopenharmony_ci#define HC_HShading_Gouraud 0x00001000 2048c2ecf20Sopenharmony_ci#define HC_HVCycle_Full 0x00000000 2058c2ecf20Sopenharmony_ci#define HC_HVCycle_AFP 0x00000040 2068c2ecf20Sopenharmony_ci#define HC_HVCycle_One 0x000000c0 2078c2ecf20Sopenharmony_ci#define HC_HVCycle_NewA 0x00000000 2088c2ecf20Sopenharmony_ci#define HC_HVCycle_AA 0x00000010 2098c2ecf20Sopenharmony_ci#define HC_HVCycle_AB 0x00000020 2108c2ecf20Sopenharmony_ci#define HC_HVCycle_AC 0x00000030 2118c2ecf20Sopenharmony_ci#define HC_HVCycle_NewB 0x00000000 2128c2ecf20Sopenharmony_ci#define HC_HVCycle_BA 0x00000004 2138c2ecf20Sopenharmony_ci#define HC_HVCycle_BB 0x00000008 2148c2ecf20Sopenharmony_ci#define HC_HVCycle_BC 0x0000000c 2158c2ecf20Sopenharmony_ci#define HC_HVCycle_NewC 0x00000000 2168c2ecf20Sopenharmony_ci#define HC_HVCycle_CA 0x00000001 2178c2ecf20Sopenharmony_ci#define HC_HVCycle_CB 0x00000002 2188c2ecf20Sopenharmony_ci#define HC_HVCycle_CC 0x00000003 2198c2ecf20Sopenharmony_ci 2208c2ecf20Sopenharmony_ci/* Command B 2218c2ecf20Sopenharmony_ci */ 2228c2ecf20Sopenharmony_ci#define HC_HLPrst_MASK 0x00010000 2238c2ecf20Sopenharmony_ci#define HC_HLLastP_MASK 0x00008000 2248c2ecf20Sopenharmony_ci#define HC_HVPMSK_MASK 0x00007f80 2258c2ecf20Sopenharmony_ci#define HC_HBFace_MASK 0x00000040 2268c2ecf20Sopenharmony_ci#define HC_H2nd1VT_MASK 0x0000003f 2278c2ecf20Sopenharmony_ci#define HC_HVPMSK_X 0x00004000 2288c2ecf20Sopenharmony_ci#define HC_HVPMSK_Y 0x00002000 2298c2ecf20Sopenharmony_ci#define HC_HVPMSK_Z 0x00001000 2308c2ecf20Sopenharmony_ci#define HC_HVPMSK_W 0x00000800 2318c2ecf20Sopenharmony_ci#define HC_HVPMSK_Cd 0x00000400 2328c2ecf20Sopenharmony_ci#define HC_HVPMSK_Cs 0x00000200 2338c2ecf20Sopenharmony_ci#define HC_HVPMSK_S 0x00000100 2348c2ecf20Sopenharmony_ci#define HC_HVPMSK_T 0x00000080 2358c2ecf20Sopenharmony_ci 2368c2ecf20Sopenharmony_ci/* Enable Setting 2378c2ecf20Sopenharmony_ci */ 2388c2ecf20Sopenharmony_ci#define HC_SubA_HEnable 0x0000 2398c2ecf20Sopenharmony_ci#define HC_HenTXEnvMap_MASK 0x00200000 2408c2ecf20Sopenharmony_ci#define HC_HenVertexCNT_MASK 0x00100000 2418c2ecf20Sopenharmony_ci#define HC_HenCPUDAZ_MASK 0x00080000 2428c2ecf20Sopenharmony_ci#define HC_HenDASZWC_MASK 0x00040000 2438c2ecf20Sopenharmony_ci#define HC_HenFBCull_MASK 0x00020000 2448c2ecf20Sopenharmony_ci#define HC_HenCW_MASK 0x00010000 2458c2ecf20Sopenharmony_ci#define HC_HenAA_MASK 0x00008000 2468c2ecf20Sopenharmony_ci#define HC_HenST_MASK 0x00004000 2478c2ecf20Sopenharmony_ci#define HC_HenZT_MASK 0x00002000 2488c2ecf20Sopenharmony_ci#define HC_HenZW_MASK 0x00001000 2498c2ecf20Sopenharmony_ci#define HC_HenAT_MASK 0x00000800 2508c2ecf20Sopenharmony_ci#define HC_HenAW_MASK 0x00000400 2518c2ecf20Sopenharmony_ci#define HC_HenSP_MASK 0x00000200 2528c2ecf20Sopenharmony_ci#define HC_HenLP_MASK 0x00000100 2538c2ecf20Sopenharmony_ci#define HC_HenTXCH_MASK 0x00000080 2548c2ecf20Sopenharmony_ci#define HC_HenTXMP_MASK 0x00000040 2558c2ecf20Sopenharmony_ci#define HC_HenTXPP_MASK 0x00000020 2568c2ecf20Sopenharmony_ci#define HC_HenTXTR_MASK 0x00000010 2578c2ecf20Sopenharmony_ci#define HC_HenCS_MASK 0x00000008 2588c2ecf20Sopenharmony_ci#define HC_HenFOG_MASK 0x00000004 2598c2ecf20Sopenharmony_ci#define HC_HenABL_MASK 0x00000002 2608c2ecf20Sopenharmony_ci#define HC_HenDT_MASK 0x00000001 2618c2ecf20Sopenharmony_ci 2628c2ecf20Sopenharmony_ci/* Z Setting 2638c2ecf20Sopenharmony_ci */ 2648c2ecf20Sopenharmony_ci#define HC_SubA_HZWBBasL 0x0010 2658c2ecf20Sopenharmony_ci#define HC_SubA_HZWBBasH 0x0011 2668c2ecf20Sopenharmony_ci#define HC_SubA_HZWBType 0x0012 2678c2ecf20Sopenharmony_ci#define HC_SubA_HZBiasL 0x0013 2688c2ecf20Sopenharmony_ci#define HC_SubA_HZWBend 0x0014 2698c2ecf20Sopenharmony_ci#define HC_SubA_HZWTMD 0x0015 2708c2ecf20Sopenharmony_ci#define HC_SubA_HZWCDL 0x0016 2718c2ecf20Sopenharmony_ci#define HC_SubA_HZWCTAGnum 0x0017 2728c2ecf20Sopenharmony_ci#define HC_SubA_HZCYNum 0x0018 2738c2ecf20Sopenharmony_ci#define HC_SubA_HZWCFire 0x0019 2748c2ecf20Sopenharmony_ci/* HC_SubA_HZWBType 2758c2ecf20Sopenharmony_ci */ 2768c2ecf20Sopenharmony_ci#define HC_HZWBType_MASK 0x00800000 2778c2ecf20Sopenharmony_ci#define HC_HZBiasedWB_MASK 0x00400000 2788c2ecf20Sopenharmony_ci#define HC_HZONEasFF_MASK 0x00200000 2798c2ecf20Sopenharmony_ci#define HC_HZOONEasFF_MASK 0x00100000 2808c2ecf20Sopenharmony_ci#define HC_HZWBFM_MASK 0x00030000 2818c2ecf20Sopenharmony_ci#define HC_HZWBLoc_MASK 0x0000c000 2828c2ecf20Sopenharmony_ci#define HC_HZWBPit_MASK 0x00003fff 2838c2ecf20Sopenharmony_ci#define HC_HZWBFM_16 0x00000000 2848c2ecf20Sopenharmony_ci#define HC_HZWBFM_32 0x00020000 2858c2ecf20Sopenharmony_ci#define HC_HZWBFM_24 0x00030000 2868c2ecf20Sopenharmony_ci#define HC_HZWBLoc_Local 0x00000000 2878c2ecf20Sopenharmony_ci#define HC_HZWBLoc_SyS 0x00004000 2888c2ecf20Sopenharmony_ci/* HC_SubA_HZWBend 2898c2ecf20Sopenharmony_ci */ 2908c2ecf20Sopenharmony_ci#define HC_HZWBend_MASK 0x00ffe000 2918c2ecf20Sopenharmony_ci#define HC_HZBiasH_MASK 0x000000ff 2928c2ecf20Sopenharmony_ci#define HC_HZWBend_SHIFT 10 2938c2ecf20Sopenharmony_ci/* HC_SubA_HZWTMD 2948c2ecf20Sopenharmony_ci */ 2958c2ecf20Sopenharmony_ci#define HC_HZWTMD_MASK 0x00070000 2968c2ecf20Sopenharmony_ci#define HC_HEBEBias_MASK 0x00007f00 2978c2ecf20Sopenharmony_ci#define HC_HZNF_MASK 0x000000ff 2988c2ecf20Sopenharmony_ci#define HC_HZWTMD_NeverPass 0x00000000 2998c2ecf20Sopenharmony_ci#define HC_HZWTMD_LT 0x00010000 3008c2ecf20Sopenharmony_ci#define HC_HZWTMD_EQ 0x00020000 3018c2ecf20Sopenharmony_ci#define HC_HZWTMD_LE 0x00030000 3028c2ecf20Sopenharmony_ci#define HC_HZWTMD_GT 0x00040000 3038c2ecf20Sopenharmony_ci#define HC_HZWTMD_NE 0x00050000 3048c2ecf20Sopenharmony_ci#define HC_HZWTMD_GE 0x00060000 3058c2ecf20Sopenharmony_ci#define HC_HZWTMD_AllPass 0x00070000 3068c2ecf20Sopenharmony_ci#define HC_HEBEBias_SHIFT 8 3078c2ecf20Sopenharmony_ci/* HC_SubA_HZWCDL 0x0016 3088c2ecf20Sopenharmony_ci */ 3098c2ecf20Sopenharmony_ci#define HC_HZWCDL_MASK 0x00ffffff 3108c2ecf20Sopenharmony_ci/* HC_SubA_HZWCTAGnum 0x0017 3118c2ecf20Sopenharmony_ci */ 3128c2ecf20Sopenharmony_ci#define HC_HZWCTAGnum_MASK 0x00ff0000 3138c2ecf20Sopenharmony_ci#define HC_HZWCTAGnum_SHIFT 16 3148c2ecf20Sopenharmony_ci#define HC_HZWCDH_MASK 0x000000ff 3158c2ecf20Sopenharmony_ci#define HC_HZWCDH_SHIFT 0 3168c2ecf20Sopenharmony_ci/* HC_SubA_HZCYNum 0x0018 3178c2ecf20Sopenharmony_ci */ 3188c2ecf20Sopenharmony_ci#define HC_HZCYNum_MASK 0x00030000 3198c2ecf20Sopenharmony_ci#define HC_HZCYNum_SHIFT 16 3208c2ecf20Sopenharmony_ci#define HC_HZWCQWnum_MASK 0x00003fff 3218c2ecf20Sopenharmony_ci#define HC_HZWCQWnum_SHIFT 0 3228c2ecf20Sopenharmony_ci/* HC_SubA_HZWCFire 0x0019 3238c2ecf20Sopenharmony_ci */ 3248c2ecf20Sopenharmony_ci#define HC_ZWCFire_MASK 0x00010000 3258c2ecf20Sopenharmony_ci#define HC_HZWCQWnumLast_MASK 0x00003fff 3268c2ecf20Sopenharmony_ci#define HC_HZWCQWnumLast_SHIFT 0 3278c2ecf20Sopenharmony_ci 3288c2ecf20Sopenharmony_ci/* Stencil Setting 3298c2ecf20Sopenharmony_ci */ 3308c2ecf20Sopenharmony_ci#define HC_SubA_HSTREF 0x0023 3318c2ecf20Sopenharmony_ci#define HC_SubA_HSTMD 0x0024 3328c2ecf20Sopenharmony_ci/* HC_SubA_HSBFM 3338c2ecf20Sopenharmony_ci */ 3348c2ecf20Sopenharmony_ci#define HC_HSBFM_MASK 0x00030000 3358c2ecf20Sopenharmony_ci#define HC_HSBLoc_MASK 0x0000c000 3368c2ecf20Sopenharmony_ci#define HC_HSBPit_MASK 0x00003fff 3378c2ecf20Sopenharmony_ci/* HC_SubA_HSTREF 3388c2ecf20Sopenharmony_ci */ 3398c2ecf20Sopenharmony_ci#define HC_HSTREF_MASK 0x00ff0000 3408c2ecf20Sopenharmony_ci#define HC_HSTOPMSK_MASK 0x0000ff00 3418c2ecf20Sopenharmony_ci#define HC_HSTBMSK_MASK 0x000000ff 3428c2ecf20Sopenharmony_ci#define HC_HSTREF_SHIFT 16 3438c2ecf20Sopenharmony_ci#define HC_HSTOPMSK_SHIFT 8 3448c2ecf20Sopenharmony_ci/* HC_SubA_HSTMD 3458c2ecf20Sopenharmony_ci */ 3468c2ecf20Sopenharmony_ci#define HC_HSTMD_MASK 0x00070000 3478c2ecf20Sopenharmony_ci#define HC_HSTOPSF_MASK 0x000001c0 3488c2ecf20Sopenharmony_ci#define HC_HSTOPSPZF_MASK 0x00000038 3498c2ecf20Sopenharmony_ci#define HC_HSTOPSPZP_MASK 0x00000007 3508c2ecf20Sopenharmony_ci#define HC_HSTMD_NeverPass 0x00000000 3518c2ecf20Sopenharmony_ci#define HC_HSTMD_LT 0x00010000 3528c2ecf20Sopenharmony_ci#define HC_HSTMD_EQ 0x00020000 3538c2ecf20Sopenharmony_ci#define HC_HSTMD_LE 0x00030000 3548c2ecf20Sopenharmony_ci#define HC_HSTMD_GT 0x00040000 3558c2ecf20Sopenharmony_ci#define HC_HSTMD_NE 0x00050000 3568c2ecf20Sopenharmony_ci#define HC_HSTMD_GE 0x00060000 3578c2ecf20Sopenharmony_ci#define HC_HSTMD_AllPass 0x00070000 3588c2ecf20Sopenharmony_ci#define HC_HSTOPSF_KEEP 0x00000000 3598c2ecf20Sopenharmony_ci#define HC_HSTOPSF_ZERO 0x00000040 3608c2ecf20Sopenharmony_ci#define HC_HSTOPSF_REPLACE 0x00000080 3618c2ecf20Sopenharmony_ci#define HC_HSTOPSF_INCRSAT 0x000000c0 3628c2ecf20Sopenharmony_ci#define HC_HSTOPSF_DECRSAT 0x00000100 3638c2ecf20Sopenharmony_ci#define HC_HSTOPSF_INVERT 0x00000140 3648c2ecf20Sopenharmony_ci#define HC_HSTOPSF_INCR 0x00000180 3658c2ecf20Sopenharmony_ci#define HC_HSTOPSF_DECR 0x000001c0 3668c2ecf20Sopenharmony_ci#define HC_HSTOPSPZF_KEEP 0x00000000 3678c2ecf20Sopenharmony_ci#define HC_HSTOPSPZF_ZERO 0x00000008 3688c2ecf20Sopenharmony_ci#define HC_HSTOPSPZF_REPLACE 0x00000010 3698c2ecf20Sopenharmony_ci#define HC_HSTOPSPZF_INCRSAT 0x00000018 3708c2ecf20Sopenharmony_ci#define HC_HSTOPSPZF_DECRSAT 0x00000020 3718c2ecf20Sopenharmony_ci#define HC_HSTOPSPZF_INVERT 0x00000028 3728c2ecf20Sopenharmony_ci#define HC_HSTOPSPZF_INCR 0x00000030 3738c2ecf20Sopenharmony_ci#define HC_HSTOPSPZF_DECR 0x00000038 3748c2ecf20Sopenharmony_ci#define HC_HSTOPSPZP_KEEP 0x00000000 3758c2ecf20Sopenharmony_ci#define HC_HSTOPSPZP_ZERO 0x00000001 3768c2ecf20Sopenharmony_ci#define HC_HSTOPSPZP_REPLACE 0x00000002 3778c2ecf20Sopenharmony_ci#define HC_HSTOPSPZP_INCRSAT 0x00000003 3788c2ecf20Sopenharmony_ci#define HC_HSTOPSPZP_DECRSAT 0x00000004 3798c2ecf20Sopenharmony_ci#define HC_HSTOPSPZP_INVERT 0x00000005 3808c2ecf20Sopenharmony_ci#define HC_HSTOPSPZP_INCR 0x00000006 3818c2ecf20Sopenharmony_ci#define HC_HSTOPSPZP_DECR 0x00000007 3828c2ecf20Sopenharmony_ci 3838c2ecf20Sopenharmony_ci/* Alpha Setting 3848c2ecf20Sopenharmony_ci */ 3858c2ecf20Sopenharmony_ci#define HC_SubA_HABBasL 0x0030 3868c2ecf20Sopenharmony_ci#define HC_SubA_HABBasH 0x0031 3878c2ecf20Sopenharmony_ci#define HC_SubA_HABFM 0x0032 3888c2ecf20Sopenharmony_ci#define HC_SubA_HATMD 0x0033 3898c2ecf20Sopenharmony_ci#define HC_SubA_HABLCsat 0x0034 3908c2ecf20Sopenharmony_ci#define HC_SubA_HABLCop 0x0035 3918c2ecf20Sopenharmony_ci#define HC_SubA_HABLAsat 0x0036 3928c2ecf20Sopenharmony_ci#define HC_SubA_HABLAop 0x0037 3938c2ecf20Sopenharmony_ci#define HC_SubA_HABLRCa 0x0038 3948c2ecf20Sopenharmony_ci#define HC_SubA_HABLRFCa 0x0039 3958c2ecf20Sopenharmony_ci#define HC_SubA_HABLRCbias 0x003a 3968c2ecf20Sopenharmony_ci#define HC_SubA_HABLRCb 0x003b 3978c2ecf20Sopenharmony_ci#define HC_SubA_HABLRFCb 0x003c 3988c2ecf20Sopenharmony_ci#define HC_SubA_HABLRAa 0x003d 3998c2ecf20Sopenharmony_ci#define HC_SubA_HABLRAb 0x003e 4008c2ecf20Sopenharmony_ci/* HC_SubA_HABFM 4018c2ecf20Sopenharmony_ci */ 4028c2ecf20Sopenharmony_ci#define HC_HABFM_MASK 0x00030000 4038c2ecf20Sopenharmony_ci#define HC_HABLoc_MASK 0x0000c000 4048c2ecf20Sopenharmony_ci#define HC_HABPit_MASK 0x000007ff 4058c2ecf20Sopenharmony_ci/* HC_SubA_HATMD 4068c2ecf20Sopenharmony_ci */ 4078c2ecf20Sopenharmony_ci#define HC_HATMD_MASK 0x00000700 4088c2ecf20Sopenharmony_ci#define HC_HATREF_MASK 0x000000ff 4098c2ecf20Sopenharmony_ci#define HC_HATMD_NeverPass 0x00000000 4108c2ecf20Sopenharmony_ci#define HC_HATMD_LT 0x00000100 4118c2ecf20Sopenharmony_ci#define HC_HATMD_EQ 0x00000200 4128c2ecf20Sopenharmony_ci#define HC_HATMD_LE 0x00000300 4138c2ecf20Sopenharmony_ci#define HC_HATMD_GT 0x00000400 4148c2ecf20Sopenharmony_ci#define HC_HATMD_NE 0x00000500 4158c2ecf20Sopenharmony_ci#define HC_HATMD_GE 0x00000600 4168c2ecf20Sopenharmony_ci#define HC_HATMD_AllPass 0x00000700 4178c2ecf20Sopenharmony_ci/* HC_SubA_HABLCsat 4188c2ecf20Sopenharmony_ci */ 4198c2ecf20Sopenharmony_ci#define HC_HABLCsat_MASK 0x00010000 4208c2ecf20Sopenharmony_ci#define HC_HABLCa_MASK 0x0000fc00 4218c2ecf20Sopenharmony_ci#define HC_HABLCa_C_MASK 0x0000c000 4228c2ecf20Sopenharmony_ci#define HC_HABLCa_OPC_MASK 0x00003c00 4238c2ecf20Sopenharmony_ci#define HC_HABLFCa_MASK 0x000003f0 4248c2ecf20Sopenharmony_ci#define HC_HABLFCa_C_MASK 0x00000300 4258c2ecf20Sopenharmony_ci#define HC_HABLFCa_OPC_MASK 0x000000f0 4268c2ecf20Sopenharmony_ci#define HC_HABLCbias_MASK 0x0000000f 4278c2ecf20Sopenharmony_ci#define HC_HABLCbias_C_MASK 0x00000008 4288c2ecf20Sopenharmony_ci#define HC_HABLCbias_OPC_MASK 0x00000007 4298c2ecf20Sopenharmony_ci/*-- Define the input color. 4308c2ecf20Sopenharmony_ci */ 4318c2ecf20Sopenharmony_ci#define HC_XC_Csrc 0x00000000 4328c2ecf20Sopenharmony_ci#define HC_XC_Cdst 0x00000001 4338c2ecf20Sopenharmony_ci#define HC_XC_Asrc 0x00000002 4348c2ecf20Sopenharmony_ci#define HC_XC_Adst 0x00000003 4358c2ecf20Sopenharmony_ci#define HC_XC_Fog 0x00000004 4368c2ecf20Sopenharmony_ci#define HC_XC_HABLRC 0x00000005 4378c2ecf20Sopenharmony_ci#define HC_XC_minSrcDst 0x00000006 4388c2ecf20Sopenharmony_ci#define HC_XC_maxSrcDst 0x00000007 4398c2ecf20Sopenharmony_ci#define HC_XC_mimAsrcInvAdst 0x00000008 4408c2ecf20Sopenharmony_ci#define HC_XC_OPC 0x00000000 4418c2ecf20Sopenharmony_ci#define HC_XC_InvOPC 0x00000010 4428c2ecf20Sopenharmony_ci#define HC_XC_OPCp5 0x00000020 4438c2ecf20Sopenharmony_ci/*-- Define the input Alpha 4448c2ecf20Sopenharmony_ci */ 4458c2ecf20Sopenharmony_ci#define HC_XA_OPA 0x00000000 4468c2ecf20Sopenharmony_ci#define HC_XA_InvOPA 0x00000010 4478c2ecf20Sopenharmony_ci#define HC_XA_OPAp5 0x00000020 4488c2ecf20Sopenharmony_ci#define HC_XA_0 0x00000000 4498c2ecf20Sopenharmony_ci#define HC_XA_Asrc 0x00000001 4508c2ecf20Sopenharmony_ci#define HC_XA_Adst 0x00000002 4518c2ecf20Sopenharmony_ci#define HC_XA_Fog 0x00000003 4528c2ecf20Sopenharmony_ci#define HC_XA_minAsrcFog 0x00000004 4538c2ecf20Sopenharmony_ci#define HC_XA_minAsrcAdst 0x00000005 4548c2ecf20Sopenharmony_ci#define HC_XA_maxAsrcFog 0x00000006 4558c2ecf20Sopenharmony_ci#define HC_XA_maxAsrcAdst 0x00000007 4568c2ecf20Sopenharmony_ci#define HC_XA_HABLRA 0x00000008 4578c2ecf20Sopenharmony_ci#define HC_XA_minAsrcInvAdst 0x00000008 4588c2ecf20Sopenharmony_ci#define HC_XA_HABLFRA 0x00000009 4598c2ecf20Sopenharmony_ci/*-- 4608c2ecf20Sopenharmony_ci */ 4618c2ecf20Sopenharmony_ci#define HC_HABLCa_OPC (HC_XC_OPC << 10) 4628c2ecf20Sopenharmony_ci#define HC_HABLCa_InvOPC (HC_XC_InvOPC << 10) 4638c2ecf20Sopenharmony_ci#define HC_HABLCa_OPCp5 (HC_XC_OPCp5 << 10) 4648c2ecf20Sopenharmony_ci#define HC_HABLCa_Csrc (HC_XC_Csrc << 10) 4658c2ecf20Sopenharmony_ci#define HC_HABLCa_Cdst (HC_XC_Cdst << 10) 4668c2ecf20Sopenharmony_ci#define HC_HABLCa_Asrc (HC_XC_Asrc << 10) 4678c2ecf20Sopenharmony_ci#define HC_HABLCa_Adst (HC_XC_Adst << 10) 4688c2ecf20Sopenharmony_ci#define HC_HABLCa_Fog (HC_XC_Fog << 10) 4698c2ecf20Sopenharmony_ci#define HC_HABLCa_HABLRCa (HC_XC_HABLRC << 10) 4708c2ecf20Sopenharmony_ci#define HC_HABLCa_minSrcDst (HC_XC_minSrcDst << 10) 4718c2ecf20Sopenharmony_ci#define HC_HABLCa_maxSrcDst (HC_XC_maxSrcDst << 10) 4728c2ecf20Sopenharmony_ci#define HC_HABLFCa_OPC (HC_XC_OPC << 4) 4738c2ecf20Sopenharmony_ci#define HC_HABLFCa_InvOPC (HC_XC_InvOPC << 4) 4748c2ecf20Sopenharmony_ci#define HC_HABLFCa_OPCp5 (HC_XC_OPCp5 << 4) 4758c2ecf20Sopenharmony_ci#define HC_HABLFCa_Csrc (HC_XC_Csrc << 4) 4768c2ecf20Sopenharmony_ci#define HC_HABLFCa_Cdst (HC_XC_Cdst << 4) 4778c2ecf20Sopenharmony_ci#define HC_HABLFCa_Asrc (HC_XC_Asrc << 4) 4788c2ecf20Sopenharmony_ci#define HC_HABLFCa_Adst (HC_XC_Adst << 4) 4798c2ecf20Sopenharmony_ci#define HC_HABLFCa_Fog (HC_XC_Fog << 4) 4808c2ecf20Sopenharmony_ci#define HC_HABLFCa_HABLRCa (HC_XC_HABLRC << 4) 4818c2ecf20Sopenharmony_ci#define HC_HABLFCa_minSrcDst (HC_XC_minSrcDst << 4) 4828c2ecf20Sopenharmony_ci#define HC_HABLFCa_maxSrcDst (HC_XC_maxSrcDst << 4) 4838c2ecf20Sopenharmony_ci#define HC_HABLFCa_mimAsrcInvAdst (HC_XC_mimAsrcInvAdst << 4) 4848c2ecf20Sopenharmony_ci#define HC_HABLCbias_HABLRCbias 0x00000000 4858c2ecf20Sopenharmony_ci#define HC_HABLCbias_Asrc 0x00000001 4868c2ecf20Sopenharmony_ci#define HC_HABLCbias_Adst 0x00000002 4878c2ecf20Sopenharmony_ci#define HC_HABLCbias_Fog 0x00000003 4888c2ecf20Sopenharmony_ci#define HC_HABLCbias_Cin 0x00000004 4898c2ecf20Sopenharmony_ci/* HC_SubA_HABLCop 0x0035 4908c2ecf20Sopenharmony_ci */ 4918c2ecf20Sopenharmony_ci#define HC_HABLdot_MASK 0x00010000 4928c2ecf20Sopenharmony_ci#define HC_HABLCop_MASK 0x00004000 4938c2ecf20Sopenharmony_ci#define HC_HABLCb_MASK 0x00003f00 4948c2ecf20Sopenharmony_ci#define HC_HABLCb_C_MASK 0x00003000 4958c2ecf20Sopenharmony_ci#define HC_HABLCb_OPC_MASK 0x00000f00 4968c2ecf20Sopenharmony_ci#define HC_HABLFCb_MASK 0x000000fc 4978c2ecf20Sopenharmony_ci#define HC_HABLFCb_C_MASK 0x000000c0 4988c2ecf20Sopenharmony_ci#define HC_HABLFCb_OPC_MASK 0x0000003c 4998c2ecf20Sopenharmony_ci#define HC_HABLCshift_MASK 0x00000003 5008c2ecf20Sopenharmony_ci#define HC_HABLCb_OPC (HC_XC_OPC << 8) 5018c2ecf20Sopenharmony_ci#define HC_HABLCb_InvOPC (HC_XC_InvOPC << 8) 5028c2ecf20Sopenharmony_ci#define HC_HABLCb_OPCp5 (HC_XC_OPCp5 << 8) 5038c2ecf20Sopenharmony_ci#define HC_HABLCb_Csrc (HC_XC_Csrc << 8) 5048c2ecf20Sopenharmony_ci#define HC_HABLCb_Cdst (HC_XC_Cdst << 8) 5058c2ecf20Sopenharmony_ci#define HC_HABLCb_Asrc (HC_XC_Asrc << 8) 5068c2ecf20Sopenharmony_ci#define HC_HABLCb_Adst (HC_XC_Adst << 8) 5078c2ecf20Sopenharmony_ci#define HC_HABLCb_Fog (HC_XC_Fog << 8) 5088c2ecf20Sopenharmony_ci#define HC_HABLCb_HABLRCa (HC_XC_HABLRC << 8) 5098c2ecf20Sopenharmony_ci#define HC_HABLCb_minSrcDst (HC_XC_minSrcDst << 8) 5108c2ecf20Sopenharmony_ci#define HC_HABLCb_maxSrcDst (HC_XC_maxSrcDst << 8) 5118c2ecf20Sopenharmony_ci#define HC_HABLFCb_OPC (HC_XC_OPC << 2) 5128c2ecf20Sopenharmony_ci#define HC_HABLFCb_InvOPC (HC_XC_InvOPC << 2) 5138c2ecf20Sopenharmony_ci#define HC_HABLFCb_OPCp5 (HC_XC_OPCp5 << 2) 5148c2ecf20Sopenharmony_ci#define HC_HABLFCb_Csrc (HC_XC_Csrc << 2) 5158c2ecf20Sopenharmony_ci#define HC_HABLFCb_Cdst (HC_XC_Cdst << 2) 5168c2ecf20Sopenharmony_ci#define HC_HABLFCb_Asrc (HC_XC_Asrc << 2) 5178c2ecf20Sopenharmony_ci#define HC_HABLFCb_Adst (HC_XC_Adst << 2) 5188c2ecf20Sopenharmony_ci#define HC_HABLFCb_Fog (HC_XC_Fog << 2) 5198c2ecf20Sopenharmony_ci#define HC_HABLFCb_HABLRCb (HC_XC_HABLRC << 2) 5208c2ecf20Sopenharmony_ci#define HC_HABLFCb_minSrcDst (HC_XC_minSrcDst << 2) 5218c2ecf20Sopenharmony_ci#define HC_HABLFCb_maxSrcDst (HC_XC_maxSrcDst << 2) 5228c2ecf20Sopenharmony_ci#define HC_HABLFCb_mimAsrcInvAdst (HC_XC_mimAsrcInvAdst << 2) 5238c2ecf20Sopenharmony_ci/* HC_SubA_HABLAsat 0x0036 5248c2ecf20Sopenharmony_ci */ 5258c2ecf20Sopenharmony_ci#define HC_HABLAsat_MASK 0x00010000 5268c2ecf20Sopenharmony_ci#define HC_HABLAa_MASK 0x0000fc00 5278c2ecf20Sopenharmony_ci#define HC_HABLAa_A_MASK 0x0000c000 5288c2ecf20Sopenharmony_ci#define HC_HABLAa_OPA_MASK 0x00003c00 5298c2ecf20Sopenharmony_ci#define HC_HABLFAa_MASK 0x000003f0 5308c2ecf20Sopenharmony_ci#define HC_HABLFAa_A_MASK 0x00000300 5318c2ecf20Sopenharmony_ci#define HC_HABLFAa_OPA_MASK 0x000000f0 5328c2ecf20Sopenharmony_ci#define HC_HABLAbias_MASK 0x0000000f 5338c2ecf20Sopenharmony_ci#define HC_HABLAbias_A_MASK 0x00000008 5348c2ecf20Sopenharmony_ci#define HC_HABLAbias_OPA_MASK 0x00000007 5358c2ecf20Sopenharmony_ci#define HC_HABLAa_OPA (HC_XA_OPA << 10) 5368c2ecf20Sopenharmony_ci#define HC_HABLAa_InvOPA (HC_XA_InvOPA << 10) 5378c2ecf20Sopenharmony_ci#define HC_HABLAa_OPAp5 (HC_XA_OPAp5 << 10) 5388c2ecf20Sopenharmony_ci#define HC_HABLAa_0 (HC_XA_0 << 10) 5398c2ecf20Sopenharmony_ci#define HC_HABLAa_Asrc (HC_XA_Asrc << 10) 5408c2ecf20Sopenharmony_ci#define HC_HABLAa_Adst (HC_XA_Adst << 10) 5418c2ecf20Sopenharmony_ci#define HC_HABLAa_Fog (HC_XA_Fog << 10) 5428c2ecf20Sopenharmony_ci#define HC_HABLAa_minAsrcFog (HC_XA_minAsrcFog << 10) 5438c2ecf20Sopenharmony_ci#define HC_HABLAa_minAsrcAdst (HC_XA_minAsrcAdst << 10) 5448c2ecf20Sopenharmony_ci#define HC_HABLAa_maxAsrcFog (HC_XA_maxAsrcFog << 10) 5458c2ecf20Sopenharmony_ci#define HC_HABLAa_maxAsrcAdst (HC_XA_maxAsrcAdst << 10) 5468c2ecf20Sopenharmony_ci#define HC_HABLAa_HABLRA (HC_XA_HABLRA << 10) 5478c2ecf20Sopenharmony_ci#define HC_HABLFAa_OPA (HC_XA_OPA << 4) 5488c2ecf20Sopenharmony_ci#define HC_HABLFAa_InvOPA (HC_XA_InvOPA << 4) 5498c2ecf20Sopenharmony_ci#define HC_HABLFAa_OPAp5 (HC_XA_OPAp5 << 4) 5508c2ecf20Sopenharmony_ci#define HC_HABLFAa_0 (HC_XA_0 << 4) 5518c2ecf20Sopenharmony_ci#define HC_HABLFAa_Asrc (HC_XA_Asrc << 4) 5528c2ecf20Sopenharmony_ci#define HC_HABLFAa_Adst (HC_XA_Adst << 4) 5538c2ecf20Sopenharmony_ci#define HC_HABLFAa_Fog (HC_XA_Fog << 4) 5548c2ecf20Sopenharmony_ci#define HC_HABLFAa_minAsrcFog (HC_XA_minAsrcFog << 4) 5558c2ecf20Sopenharmony_ci#define HC_HABLFAa_minAsrcAdst (HC_XA_minAsrcAdst << 4) 5568c2ecf20Sopenharmony_ci#define HC_HABLFAa_maxAsrcFog (HC_XA_maxAsrcFog << 4) 5578c2ecf20Sopenharmony_ci#define HC_HABLFAa_maxAsrcAdst (HC_XA_maxAsrcAdst << 4) 5588c2ecf20Sopenharmony_ci#define HC_HABLFAa_minAsrcInvAdst (HC_XA_minAsrcInvAdst << 4) 5598c2ecf20Sopenharmony_ci#define HC_HABLFAa_HABLFRA (HC_XA_HABLFRA << 4) 5608c2ecf20Sopenharmony_ci#define HC_HABLAbias_HABLRAbias 0x00000000 5618c2ecf20Sopenharmony_ci#define HC_HABLAbias_Asrc 0x00000001 5628c2ecf20Sopenharmony_ci#define HC_HABLAbias_Adst 0x00000002 5638c2ecf20Sopenharmony_ci#define HC_HABLAbias_Fog 0x00000003 5648c2ecf20Sopenharmony_ci#define HC_HABLAbias_Aaa 0x00000004 5658c2ecf20Sopenharmony_ci/* HC_SubA_HABLAop 0x0037 5668c2ecf20Sopenharmony_ci */ 5678c2ecf20Sopenharmony_ci#define HC_HABLAop_MASK 0x00004000 5688c2ecf20Sopenharmony_ci#define HC_HABLAb_MASK 0x00003f00 5698c2ecf20Sopenharmony_ci#define HC_HABLAb_OPA_MASK 0x00000f00 5708c2ecf20Sopenharmony_ci#define HC_HABLFAb_MASK 0x000000fc 5718c2ecf20Sopenharmony_ci#define HC_HABLFAb_OPA_MASK 0x0000003c 5728c2ecf20Sopenharmony_ci#define HC_HABLAshift_MASK 0x00000003 5738c2ecf20Sopenharmony_ci#define HC_HABLAb_OPA (HC_XA_OPA << 8) 5748c2ecf20Sopenharmony_ci#define HC_HABLAb_InvOPA (HC_XA_InvOPA << 8) 5758c2ecf20Sopenharmony_ci#define HC_HABLAb_OPAp5 (HC_XA_OPAp5 << 8) 5768c2ecf20Sopenharmony_ci#define HC_HABLAb_0 (HC_XA_0 << 8) 5778c2ecf20Sopenharmony_ci#define HC_HABLAb_Asrc (HC_XA_Asrc << 8) 5788c2ecf20Sopenharmony_ci#define HC_HABLAb_Adst (HC_XA_Adst << 8) 5798c2ecf20Sopenharmony_ci#define HC_HABLAb_Fog (HC_XA_Fog << 8) 5808c2ecf20Sopenharmony_ci#define HC_HABLAb_minAsrcFog (HC_XA_minAsrcFog << 8) 5818c2ecf20Sopenharmony_ci#define HC_HABLAb_minAsrcAdst (HC_XA_minAsrcAdst << 8) 5828c2ecf20Sopenharmony_ci#define HC_HABLAb_maxAsrcFog (HC_XA_maxAsrcFog << 8) 5838c2ecf20Sopenharmony_ci#define HC_HABLAb_maxAsrcAdst (HC_XA_maxAsrcAdst << 8) 5848c2ecf20Sopenharmony_ci#define HC_HABLAb_HABLRA (HC_XA_HABLRA << 8) 5858c2ecf20Sopenharmony_ci#define HC_HABLFAb_OPA (HC_XA_OPA << 2) 5868c2ecf20Sopenharmony_ci#define HC_HABLFAb_InvOPA (HC_XA_InvOPA << 2) 5878c2ecf20Sopenharmony_ci#define HC_HABLFAb_OPAp5 (HC_XA_OPAp5 << 2) 5888c2ecf20Sopenharmony_ci#define HC_HABLFAb_0 (HC_XA_0 << 2) 5898c2ecf20Sopenharmony_ci#define HC_HABLFAb_Asrc (HC_XA_Asrc << 2) 5908c2ecf20Sopenharmony_ci#define HC_HABLFAb_Adst (HC_XA_Adst << 2) 5918c2ecf20Sopenharmony_ci#define HC_HABLFAb_Fog (HC_XA_Fog << 2) 5928c2ecf20Sopenharmony_ci#define HC_HABLFAb_minAsrcFog (HC_XA_minAsrcFog << 2) 5938c2ecf20Sopenharmony_ci#define HC_HABLFAb_minAsrcAdst (HC_XA_minAsrcAdst << 2) 5948c2ecf20Sopenharmony_ci#define HC_HABLFAb_maxAsrcFog (HC_XA_maxAsrcFog << 2) 5958c2ecf20Sopenharmony_ci#define HC_HABLFAb_maxAsrcAdst (HC_XA_maxAsrcAdst << 2) 5968c2ecf20Sopenharmony_ci#define HC_HABLFAb_minAsrcInvAdst (HC_XA_minAsrcInvAdst << 2) 5978c2ecf20Sopenharmony_ci#define HC_HABLFAb_HABLFRA (HC_XA_HABLFRA << 2) 5988c2ecf20Sopenharmony_ci/* HC_SubA_HABLRAa 0x003d 5998c2ecf20Sopenharmony_ci */ 6008c2ecf20Sopenharmony_ci#define HC_HABLRAa_MASK 0x00ff0000 6018c2ecf20Sopenharmony_ci#define HC_HABLRFAa_MASK 0x0000ff00 6028c2ecf20Sopenharmony_ci#define HC_HABLRAbias_MASK 0x000000ff 6038c2ecf20Sopenharmony_ci#define HC_HABLRAa_SHIFT 16 6048c2ecf20Sopenharmony_ci#define HC_HABLRFAa_SHIFT 8 6058c2ecf20Sopenharmony_ci/* HC_SubA_HABLRAb 0x003e 6068c2ecf20Sopenharmony_ci */ 6078c2ecf20Sopenharmony_ci#define HC_HABLRAb_MASK 0x0000ff00 6088c2ecf20Sopenharmony_ci#define HC_HABLRFAb_MASK 0x000000ff 6098c2ecf20Sopenharmony_ci#define HC_HABLRAb_SHIFT 8 6108c2ecf20Sopenharmony_ci 6118c2ecf20Sopenharmony_ci/* Destination Setting 6128c2ecf20Sopenharmony_ci */ 6138c2ecf20Sopenharmony_ci#define HC_SubA_HDBBasL 0x0040 6148c2ecf20Sopenharmony_ci#define HC_SubA_HDBBasH 0x0041 6158c2ecf20Sopenharmony_ci#define HC_SubA_HDBFM 0x0042 6168c2ecf20Sopenharmony_ci#define HC_SubA_HFBBMSKL 0x0043 6178c2ecf20Sopenharmony_ci#define HC_SubA_HROP 0x0044 6188c2ecf20Sopenharmony_ci/* HC_SubA_HDBFM 0x0042 6198c2ecf20Sopenharmony_ci */ 6208c2ecf20Sopenharmony_ci#define HC_HDBFM_MASK 0x001f0000 6218c2ecf20Sopenharmony_ci#define HC_HDBLoc_MASK 0x0000c000 6228c2ecf20Sopenharmony_ci#define HC_HDBPit_MASK 0x00003fff 6238c2ecf20Sopenharmony_ci#define HC_HDBFM_RGB555 0x00000000 6248c2ecf20Sopenharmony_ci#define HC_HDBFM_RGB565 0x00010000 6258c2ecf20Sopenharmony_ci#define HC_HDBFM_ARGB4444 0x00020000 6268c2ecf20Sopenharmony_ci#define HC_HDBFM_ARGB1555 0x00030000 6278c2ecf20Sopenharmony_ci#define HC_HDBFM_BGR555 0x00040000 6288c2ecf20Sopenharmony_ci#define HC_HDBFM_BGR565 0x00050000 6298c2ecf20Sopenharmony_ci#define HC_HDBFM_ABGR4444 0x00060000 6308c2ecf20Sopenharmony_ci#define HC_HDBFM_ABGR1555 0x00070000 6318c2ecf20Sopenharmony_ci#define HC_HDBFM_ARGB0888 0x00080000 6328c2ecf20Sopenharmony_ci#define HC_HDBFM_ARGB8888 0x00090000 6338c2ecf20Sopenharmony_ci#define HC_HDBFM_ABGR0888 0x000a0000 6348c2ecf20Sopenharmony_ci#define HC_HDBFM_ABGR8888 0x000b0000 6358c2ecf20Sopenharmony_ci#define HC_HDBLoc_Local 0x00000000 6368c2ecf20Sopenharmony_ci#define HC_HDBLoc_Sys 0x00004000 6378c2ecf20Sopenharmony_ci/* HC_SubA_HROP 0x0044 6388c2ecf20Sopenharmony_ci */ 6398c2ecf20Sopenharmony_ci#define HC_HROP_MASK 0x00000f00 6408c2ecf20Sopenharmony_ci#define HC_HFBBMSKH_MASK 0x000000ff 6418c2ecf20Sopenharmony_ci#define HC_HROP_BLACK 0x00000000 6428c2ecf20Sopenharmony_ci#define HC_HROP_DPon 0x00000100 6438c2ecf20Sopenharmony_ci#define HC_HROP_DPna 0x00000200 6448c2ecf20Sopenharmony_ci#define HC_HROP_Pn 0x00000300 6458c2ecf20Sopenharmony_ci#define HC_HROP_PDna 0x00000400 6468c2ecf20Sopenharmony_ci#define HC_HROP_Dn 0x00000500 6478c2ecf20Sopenharmony_ci#define HC_HROP_DPx 0x00000600 6488c2ecf20Sopenharmony_ci#define HC_HROP_DPan 0x00000700 6498c2ecf20Sopenharmony_ci#define HC_HROP_DPa 0x00000800 6508c2ecf20Sopenharmony_ci#define HC_HROP_DPxn 0x00000900 6518c2ecf20Sopenharmony_ci#define HC_HROP_D 0x00000a00 6528c2ecf20Sopenharmony_ci#define HC_HROP_DPno 0x00000b00 6538c2ecf20Sopenharmony_ci#define HC_HROP_P 0x00000c00 6548c2ecf20Sopenharmony_ci#define HC_HROP_PDno 0x00000d00 6558c2ecf20Sopenharmony_ci#define HC_HROP_DPo 0x00000e00 6568c2ecf20Sopenharmony_ci#define HC_HROP_WHITE 0x00000f00 6578c2ecf20Sopenharmony_ci 6588c2ecf20Sopenharmony_ci/* Fog Setting 6598c2ecf20Sopenharmony_ci */ 6608c2ecf20Sopenharmony_ci#define HC_SubA_HFogLF 0x0050 6618c2ecf20Sopenharmony_ci#define HC_SubA_HFogCL 0x0051 6628c2ecf20Sopenharmony_ci#define HC_SubA_HFogCH 0x0052 6638c2ecf20Sopenharmony_ci#define HC_SubA_HFogStL 0x0053 6648c2ecf20Sopenharmony_ci#define HC_SubA_HFogStH 0x0054 6658c2ecf20Sopenharmony_ci#define HC_SubA_HFogOOdMF 0x0055 6668c2ecf20Sopenharmony_ci#define HC_SubA_HFogOOdEF 0x0056 6678c2ecf20Sopenharmony_ci#define HC_SubA_HFogEndL 0x0057 6688c2ecf20Sopenharmony_ci#define HC_SubA_HFogDenst 0x0058 6698c2ecf20Sopenharmony_ci/* HC_SubA_FogLF 0x0050 6708c2ecf20Sopenharmony_ci */ 6718c2ecf20Sopenharmony_ci#define HC_FogLF_MASK 0x00000010 6728c2ecf20Sopenharmony_ci#define HC_FogEq_MASK 0x00000008 6738c2ecf20Sopenharmony_ci#define HC_FogMD_MASK 0x00000007 6748c2ecf20Sopenharmony_ci#define HC_FogMD_LocalFog 0x00000000 6758c2ecf20Sopenharmony_ci#define HC_FogMD_LinearFog 0x00000002 6768c2ecf20Sopenharmony_ci#define HC_FogMD_ExponentialFog 0x00000004 6778c2ecf20Sopenharmony_ci#define HC_FogMD_Exponential2Fog 0x00000005 6788c2ecf20Sopenharmony_ci/* #define HC_FogMD_FogTable 0x00000003 */ 6798c2ecf20Sopenharmony_ci 6808c2ecf20Sopenharmony_ci/* HC_SubA_HFogDenst 0x0058 6818c2ecf20Sopenharmony_ci */ 6828c2ecf20Sopenharmony_ci#define HC_FogDenst_MASK 0x001fff00 6838c2ecf20Sopenharmony_ci#define HC_FogEndL_MASK 0x000000ff 6848c2ecf20Sopenharmony_ci 6858c2ecf20Sopenharmony_ci/* Texture subtype definitions 6868c2ecf20Sopenharmony_ci */ 6878c2ecf20Sopenharmony_ci#define HC_SubType_Tex0 0x00000000 6888c2ecf20Sopenharmony_ci#define HC_SubType_Tex1 0x00000001 6898c2ecf20Sopenharmony_ci#define HC_SubType_TexGeneral 0x000000fe 6908c2ecf20Sopenharmony_ci 6918c2ecf20Sopenharmony_ci/* Attribute of texture n 6928c2ecf20Sopenharmony_ci */ 6938c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL0BasL 0x0000 6948c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL1BasL 0x0001 6958c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL2BasL 0x0002 6968c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL3BasL 0x0003 6978c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL4BasL 0x0004 6988c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL5BasL 0x0005 6998c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL6BasL 0x0006 7008c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL7BasL 0x0007 7018c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL8BasL 0x0008 7028c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL9BasL 0x0009 7038c2ecf20Sopenharmony_ci#define HC_SubA_HTXnLaBasL 0x000a 7048c2ecf20Sopenharmony_ci#define HC_SubA_HTXnLbBasL 0x000b 7058c2ecf20Sopenharmony_ci#define HC_SubA_HTXnLcBasL 0x000c 7068c2ecf20Sopenharmony_ci#define HC_SubA_HTXnLdBasL 0x000d 7078c2ecf20Sopenharmony_ci#define HC_SubA_HTXnLeBasL 0x000e 7088c2ecf20Sopenharmony_ci#define HC_SubA_HTXnLfBasL 0x000f 7098c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL10BasL 0x0010 7108c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL11BasL 0x0011 7118c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL012BasH 0x0020 7128c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL345BasH 0x0021 7138c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL678BasH 0x0022 7148c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL9abBasH 0x0023 7158c2ecf20Sopenharmony_ci#define HC_SubA_HTXnLcdeBasH 0x0024 7168c2ecf20Sopenharmony_ci#define HC_SubA_HTXnLf1011BasH 0x0025 7178c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL0Pit 0x002b 7188c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL1Pit 0x002c 7198c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL2Pit 0x002d 7208c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL3Pit 0x002e 7218c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL4Pit 0x002f 7228c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL5Pit 0x0030 7238c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL6Pit 0x0031 7248c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL7Pit 0x0032 7258c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL8Pit 0x0033 7268c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL9Pit 0x0034 7278c2ecf20Sopenharmony_ci#define HC_SubA_HTXnLaPit 0x0035 7288c2ecf20Sopenharmony_ci#define HC_SubA_HTXnLbPit 0x0036 7298c2ecf20Sopenharmony_ci#define HC_SubA_HTXnLcPit 0x0037 7308c2ecf20Sopenharmony_ci#define HC_SubA_HTXnLdPit 0x0038 7318c2ecf20Sopenharmony_ci#define HC_SubA_HTXnLePit 0x0039 7328c2ecf20Sopenharmony_ci#define HC_SubA_HTXnLfPit 0x003a 7338c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL10Pit 0x003b 7348c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL11Pit 0x003c 7358c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL0_5WE 0x004b 7368c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL6_bWE 0x004c 7378c2ecf20Sopenharmony_ci#define HC_SubA_HTXnLc_11WE 0x004d 7388c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL0_5HE 0x0051 7398c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL6_bHE 0x0052 7408c2ecf20Sopenharmony_ci#define HC_SubA_HTXnLc_11HE 0x0053 7418c2ecf20Sopenharmony_ci#define HC_SubA_HTXnL0OS 0x0077 7428c2ecf20Sopenharmony_ci#define HC_SubA_HTXnTB 0x0078 7438c2ecf20Sopenharmony_ci#define HC_SubA_HTXnMPMD 0x0079 7448c2ecf20Sopenharmony_ci#define HC_SubA_HTXnCLODu 0x007a 7458c2ecf20Sopenharmony_ci#define HC_SubA_HTXnFM 0x007b 7468c2ecf20Sopenharmony_ci#define HC_SubA_HTXnTRCH 0x007c 7478c2ecf20Sopenharmony_ci#define HC_SubA_HTXnTRCL 0x007d 7488c2ecf20Sopenharmony_ci#define HC_SubA_HTXnTBC 0x007e 7498c2ecf20Sopenharmony_ci#define HC_SubA_HTXnTRAH 0x007f 7508c2ecf20Sopenharmony_ci#define HC_SubA_HTXnTBLCsat 0x0080 7518c2ecf20Sopenharmony_ci#define HC_SubA_HTXnTBLCop 0x0081 7528c2ecf20Sopenharmony_ci#define HC_SubA_HTXnTBLMPfog 0x0082 7538c2ecf20Sopenharmony_ci#define HC_SubA_HTXnTBLAsat 0x0083 7548c2ecf20Sopenharmony_ci#define HC_SubA_HTXnTBLRCa 0x0085 7558c2ecf20Sopenharmony_ci#define HC_SubA_HTXnTBLRCb 0x0086 7568c2ecf20Sopenharmony_ci#define HC_SubA_HTXnTBLRCc 0x0087 7578c2ecf20Sopenharmony_ci#define HC_SubA_HTXnTBLRCbias 0x0088 7588c2ecf20Sopenharmony_ci#define HC_SubA_HTXnTBLRAa 0x0089 7598c2ecf20Sopenharmony_ci#define HC_SubA_HTXnTBLRFog 0x008a 7608c2ecf20Sopenharmony_ci#define HC_SubA_HTXnBumpM00 0x0090 7618c2ecf20Sopenharmony_ci#define HC_SubA_HTXnBumpM01 0x0091 7628c2ecf20Sopenharmony_ci#define HC_SubA_HTXnBumpM10 0x0092 7638c2ecf20Sopenharmony_ci#define HC_SubA_HTXnBumpM11 0x0093 7648c2ecf20Sopenharmony_ci#define HC_SubA_HTXnLScale 0x0094 7658c2ecf20Sopenharmony_ci#define HC_SubA_HTXSMD 0x0000 7668c2ecf20Sopenharmony_ci/* HC_SubA_HTXnL012BasH 0x0020 7678c2ecf20Sopenharmony_ci */ 7688c2ecf20Sopenharmony_ci#define HC_HTXnL0BasH_MASK 0x000000ff 7698c2ecf20Sopenharmony_ci#define HC_HTXnL1BasH_MASK 0x0000ff00 7708c2ecf20Sopenharmony_ci#define HC_HTXnL2BasH_MASK 0x00ff0000 7718c2ecf20Sopenharmony_ci#define HC_HTXnL1BasH_SHIFT 8 7728c2ecf20Sopenharmony_ci#define HC_HTXnL2BasH_SHIFT 16 7738c2ecf20Sopenharmony_ci/* HC_SubA_HTXnL345BasH 0x0021 7748c2ecf20Sopenharmony_ci */ 7758c2ecf20Sopenharmony_ci#define HC_HTXnL3BasH_MASK 0x000000ff 7768c2ecf20Sopenharmony_ci#define HC_HTXnL4BasH_MASK 0x0000ff00 7778c2ecf20Sopenharmony_ci#define HC_HTXnL5BasH_MASK 0x00ff0000 7788c2ecf20Sopenharmony_ci#define HC_HTXnL4BasH_SHIFT 8 7798c2ecf20Sopenharmony_ci#define HC_HTXnL5BasH_SHIFT 16 7808c2ecf20Sopenharmony_ci/* HC_SubA_HTXnL678BasH 0x0022 7818c2ecf20Sopenharmony_ci */ 7828c2ecf20Sopenharmony_ci#define HC_HTXnL6BasH_MASK 0x000000ff 7838c2ecf20Sopenharmony_ci#define HC_HTXnL7BasH_MASK 0x0000ff00 7848c2ecf20Sopenharmony_ci#define HC_HTXnL8BasH_MASK 0x00ff0000 7858c2ecf20Sopenharmony_ci#define HC_HTXnL7BasH_SHIFT 8 7868c2ecf20Sopenharmony_ci#define HC_HTXnL8BasH_SHIFT 16 7878c2ecf20Sopenharmony_ci/* HC_SubA_HTXnL9abBasH 0x0023 7888c2ecf20Sopenharmony_ci */ 7898c2ecf20Sopenharmony_ci#define HC_HTXnL9BasH_MASK 0x000000ff 7908c2ecf20Sopenharmony_ci#define HC_HTXnLaBasH_MASK 0x0000ff00 7918c2ecf20Sopenharmony_ci#define HC_HTXnLbBasH_MASK 0x00ff0000 7928c2ecf20Sopenharmony_ci#define HC_HTXnLaBasH_SHIFT 8 7938c2ecf20Sopenharmony_ci#define HC_HTXnLbBasH_SHIFT 16 7948c2ecf20Sopenharmony_ci/* HC_SubA_HTXnLcdeBasH 0x0024 7958c2ecf20Sopenharmony_ci */ 7968c2ecf20Sopenharmony_ci#define HC_HTXnLcBasH_MASK 0x000000ff 7978c2ecf20Sopenharmony_ci#define HC_HTXnLdBasH_MASK 0x0000ff00 7988c2ecf20Sopenharmony_ci#define HC_HTXnLeBasH_MASK 0x00ff0000 7998c2ecf20Sopenharmony_ci#define HC_HTXnLdBasH_SHIFT 8 8008c2ecf20Sopenharmony_ci#define HC_HTXnLeBasH_SHIFT 16 8018c2ecf20Sopenharmony_ci/* HC_SubA_HTXnLcdeBasH 0x0025 8028c2ecf20Sopenharmony_ci */ 8038c2ecf20Sopenharmony_ci#define HC_HTXnLfBasH_MASK 0x000000ff 8048c2ecf20Sopenharmony_ci#define HC_HTXnL10BasH_MASK 0x0000ff00 8058c2ecf20Sopenharmony_ci#define HC_HTXnL11BasH_MASK 0x00ff0000 8068c2ecf20Sopenharmony_ci#define HC_HTXnL10BasH_SHIFT 8 8078c2ecf20Sopenharmony_ci#define HC_HTXnL11BasH_SHIFT 16 8088c2ecf20Sopenharmony_ci/* HC_SubA_HTXnL0Pit 0x002b 8098c2ecf20Sopenharmony_ci */ 8108c2ecf20Sopenharmony_ci#define HC_HTXnLnPit_MASK 0x00003fff 8118c2ecf20Sopenharmony_ci#define HC_HTXnEnPit_MASK 0x00080000 8128c2ecf20Sopenharmony_ci#define HC_HTXnLnPitE_MASK 0x00f00000 8138c2ecf20Sopenharmony_ci#define HC_HTXnLnPitE_SHIFT 20 8148c2ecf20Sopenharmony_ci/* HC_SubA_HTXnL0_5WE 0x004b 8158c2ecf20Sopenharmony_ci */ 8168c2ecf20Sopenharmony_ci#define HC_HTXnL0WE_MASK 0x0000000f 8178c2ecf20Sopenharmony_ci#define HC_HTXnL1WE_MASK 0x000000f0 8188c2ecf20Sopenharmony_ci#define HC_HTXnL2WE_MASK 0x00000f00 8198c2ecf20Sopenharmony_ci#define HC_HTXnL3WE_MASK 0x0000f000 8208c2ecf20Sopenharmony_ci#define HC_HTXnL4WE_MASK 0x000f0000 8218c2ecf20Sopenharmony_ci#define HC_HTXnL5WE_MASK 0x00f00000 8228c2ecf20Sopenharmony_ci#define HC_HTXnL1WE_SHIFT 4 8238c2ecf20Sopenharmony_ci#define HC_HTXnL2WE_SHIFT 8 8248c2ecf20Sopenharmony_ci#define HC_HTXnL3WE_SHIFT 12 8258c2ecf20Sopenharmony_ci#define HC_HTXnL4WE_SHIFT 16 8268c2ecf20Sopenharmony_ci#define HC_HTXnL5WE_SHIFT 20 8278c2ecf20Sopenharmony_ci/* HC_SubA_HTXnL6_bWE 0x004c 8288c2ecf20Sopenharmony_ci */ 8298c2ecf20Sopenharmony_ci#define HC_HTXnL6WE_MASK 0x0000000f 8308c2ecf20Sopenharmony_ci#define HC_HTXnL7WE_MASK 0x000000f0 8318c2ecf20Sopenharmony_ci#define HC_HTXnL8WE_MASK 0x00000f00 8328c2ecf20Sopenharmony_ci#define HC_HTXnL9WE_MASK 0x0000f000 8338c2ecf20Sopenharmony_ci#define HC_HTXnLaWE_MASK 0x000f0000 8348c2ecf20Sopenharmony_ci#define HC_HTXnLbWE_MASK 0x00f00000 8358c2ecf20Sopenharmony_ci#define HC_HTXnL7WE_SHIFT 4 8368c2ecf20Sopenharmony_ci#define HC_HTXnL8WE_SHIFT 8 8378c2ecf20Sopenharmony_ci#define HC_HTXnL9WE_SHIFT 12 8388c2ecf20Sopenharmony_ci#define HC_HTXnLaWE_SHIFT 16 8398c2ecf20Sopenharmony_ci#define HC_HTXnLbWE_SHIFT 20 8408c2ecf20Sopenharmony_ci/* HC_SubA_HTXnLc_11WE 0x004d 8418c2ecf20Sopenharmony_ci */ 8428c2ecf20Sopenharmony_ci#define HC_HTXnLcWE_MASK 0x0000000f 8438c2ecf20Sopenharmony_ci#define HC_HTXnLdWE_MASK 0x000000f0 8448c2ecf20Sopenharmony_ci#define HC_HTXnLeWE_MASK 0x00000f00 8458c2ecf20Sopenharmony_ci#define HC_HTXnLfWE_MASK 0x0000f000 8468c2ecf20Sopenharmony_ci#define HC_HTXnL10WE_MASK 0x000f0000 8478c2ecf20Sopenharmony_ci#define HC_HTXnL11WE_MASK 0x00f00000 8488c2ecf20Sopenharmony_ci#define HC_HTXnLdWE_SHIFT 4 8498c2ecf20Sopenharmony_ci#define HC_HTXnLeWE_SHIFT 8 8508c2ecf20Sopenharmony_ci#define HC_HTXnLfWE_SHIFT 12 8518c2ecf20Sopenharmony_ci#define HC_HTXnL10WE_SHIFT 16 8528c2ecf20Sopenharmony_ci#define HC_HTXnL11WE_SHIFT 20 8538c2ecf20Sopenharmony_ci/* HC_SubA_HTXnL0_5HE 0x0051 8548c2ecf20Sopenharmony_ci */ 8558c2ecf20Sopenharmony_ci#define HC_HTXnL0HE_MASK 0x0000000f 8568c2ecf20Sopenharmony_ci#define HC_HTXnL1HE_MASK 0x000000f0 8578c2ecf20Sopenharmony_ci#define HC_HTXnL2HE_MASK 0x00000f00 8588c2ecf20Sopenharmony_ci#define HC_HTXnL3HE_MASK 0x0000f000 8598c2ecf20Sopenharmony_ci#define HC_HTXnL4HE_MASK 0x000f0000 8608c2ecf20Sopenharmony_ci#define HC_HTXnL5HE_MASK 0x00f00000 8618c2ecf20Sopenharmony_ci#define HC_HTXnL1HE_SHIFT 4 8628c2ecf20Sopenharmony_ci#define HC_HTXnL2HE_SHIFT 8 8638c2ecf20Sopenharmony_ci#define HC_HTXnL3HE_SHIFT 12 8648c2ecf20Sopenharmony_ci#define HC_HTXnL4HE_SHIFT 16 8658c2ecf20Sopenharmony_ci#define HC_HTXnL5HE_SHIFT 20 8668c2ecf20Sopenharmony_ci/* HC_SubA_HTXnL6_bHE 0x0052 8678c2ecf20Sopenharmony_ci */ 8688c2ecf20Sopenharmony_ci#define HC_HTXnL6HE_MASK 0x0000000f 8698c2ecf20Sopenharmony_ci#define HC_HTXnL7HE_MASK 0x000000f0 8708c2ecf20Sopenharmony_ci#define HC_HTXnL8HE_MASK 0x00000f00 8718c2ecf20Sopenharmony_ci#define HC_HTXnL9HE_MASK 0x0000f000 8728c2ecf20Sopenharmony_ci#define HC_HTXnLaHE_MASK 0x000f0000 8738c2ecf20Sopenharmony_ci#define HC_HTXnLbHE_MASK 0x00f00000 8748c2ecf20Sopenharmony_ci#define HC_HTXnL7HE_SHIFT 4 8758c2ecf20Sopenharmony_ci#define HC_HTXnL8HE_SHIFT 8 8768c2ecf20Sopenharmony_ci#define HC_HTXnL9HE_SHIFT 12 8778c2ecf20Sopenharmony_ci#define HC_HTXnLaHE_SHIFT 16 8788c2ecf20Sopenharmony_ci#define HC_HTXnLbHE_SHIFT 20 8798c2ecf20Sopenharmony_ci/* HC_SubA_HTXnLc_11HE 0x0053 8808c2ecf20Sopenharmony_ci */ 8818c2ecf20Sopenharmony_ci#define HC_HTXnLcHE_MASK 0x0000000f 8828c2ecf20Sopenharmony_ci#define HC_HTXnLdHE_MASK 0x000000f0 8838c2ecf20Sopenharmony_ci#define HC_HTXnLeHE_MASK 0x00000f00 8848c2ecf20Sopenharmony_ci#define HC_HTXnLfHE_MASK 0x0000f000 8858c2ecf20Sopenharmony_ci#define HC_HTXnL10HE_MASK 0x000f0000 8868c2ecf20Sopenharmony_ci#define HC_HTXnL11HE_MASK 0x00f00000 8878c2ecf20Sopenharmony_ci#define HC_HTXnLdHE_SHIFT 4 8888c2ecf20Sopenharmony_ci#define HC_HTXnLeHE_SHIFT 8 8898c2ecf20Sopenharmony_ci#define HC_HTXnLfHE_SHIFT 12 8908c2ecf20Sopenharmony_ci#define HC_HTXnL10HE_SHIFT 16 8918c2ecf20Sopenharmony_ci#define HC_HTXnL11HE_SHIFT 20 8928c2ecf20Sopenharmony_ci/* HC_SubA_HTXnL0OS 0x0077 8938c2ecf20Sopenharmony_ci */ 8948c2ecf20Sopenharmony_ci#define HC_HTXnL0OS_MASK 0x003ff000 8958c2ecf20Sopenharmony_ci#define HC_HTXnLVmax_MASK 0x00000fc0 8968c2ecf20Sopenharmony_ci#define HC_HTXnLVmin_MASK 0x0000003f 8978c2ecf20Sopenharmony_ci#define HC_HTXnL0OS_SHIFT 12 8988c2ecf20Sopenharmony_ci#define HC_HTXnLVmax_SHIFT 6 8998c2ecf20Sopenharmony_ci/* HC_SubA_HTXnTB 0x0078 9008c2ecf20Sopenharmony_ci */ 9018c2ecf20Sopenharmony_ci#define HC_HTXnTB_MASK 0x00f00000 9028c2ecf20Sopenharmony_ci#define HC_HTXnFLSe_MASK 0x0000e000 9038c2ecf20Sopenharmony_ci#define HC_HTXnFLSs_MASK 0x00001c00 9048c2ecf20Sopenharmony_ci#define HC_HTXnFLTe_MASK 0x00000380 9058c2ecf20Sopenharmony_ci#define HC_HTXnFLTs_MASK 0x00000070 9068c2ecf20Sopenharmony_ci#define HC_HTXnFLDs_MASK 0x0000000f 9078c2ecf20Sopenharmony_ci#define HC_HTXnTB_NoTB 0x00000000 9088c2ecf20Sopenharmony_ci#define HC_HTXnTB_TBC_S 0x00100000 9098c2ecf20Sopenharmony_ci#define HC_HTXnTB_TBC_T 0x00200000 9108c2ecf20Sopenharmony_ci#define HC_HTXnTB_TB_S 0x00400000 9118c2ecf20Sopenharmony_ci#define HC_HTXnTB_TB_T 0x00800000 9128c2ecf20Sopenharmony_ci#define HC_HTXnFLSe_Nearest 0x00000000 9138c2ecf20Sopenharmony_ci#define HC_HTXnFLSe_Linear 0x00002000 9148c2ecf20Sopenharmony_ci#define HC_HTXnFLSe_NonLinear 0x00004000 9158c2ecf20Sopenharmony_ci#define HC_HTXnFLSe_Sharp 0x00008000 9168c2ecf20Sopenharmony_ci#define HC_HTXnFLSe_Flat_Gaussian_Cubic 0x0000c000 9178c2ecf20Sopenharmony_ci#define HC_HTXnFLSs_Nearest 0x00000000 9188c2ecf20Sopenharmony_ci#define HC_HTXnFLSs_Linear 0x00000400 9198c2ecf20Sopenharmony_ci#define HC_HTXnFLSs_NonLinear 0x00000800 9208c2ecf20Sopenharmony_ci#define HC_HTXnFLSs_Flat_Gaussian_Cubic 0x00001800 9218c2ecf20Sopenharmony_ci#define HC_HTXnFLTe_Nearest 0x00000000 9228c2ecf20Sopenharmony_ci#define HC_HTXnFLTe_Linear 0x00000080 9238c2ecf20Sopenharmony_ci#define HC_HTXnFLTe_NonLinear 0x00000100 9248c2ecf20Sopenharmony_ci#define HC_HTXnFLTe_Sharp 0x00000180 9258c2ecf20Sopenharmony_ci#define HC_HTXnFLTe_Flat_Gaussian_Cubic 0x00000300 9268c2ecf20Sopenharmony_ci#define HC_HTXnFLTs_Nearest 0x00000000 9278c2ecf20Sopenharmony_ci#define HC_HTXnFLTs_Linear 0x00000010 9288c2ecf20Sopenharmony_ci#define HC_HTXnFLTs_NonLinear 0x00000020 9298c2ecf20Sopenharmony_ci#define HC_HTXnFLTs_Flat_Gaussian_Cubic 0x00000060 9308c2ecf20Sopenharmony_ci#define HC_HTXnFLDs_Tex0 0x00000000 9318c2ecf20Sopenharmony_ci#define HC_HTXnFLDs_Nearest 0x00000001 9328c2ecf20Sopenharmony_ci#define HC_HTXnFLDs_Linear 0x00000002 9338c2ecf20Sopenharmony_ci#define HC_HTXnFLDs_NonLinear 0x00000003 9348c2ecf20Sopenharmony_ci#define HC_HTXnFLDs_Dither 0x00000004 9358c2ecf20Sopenharmony_ci#define HC_HTXnFLDs_ConstLOD 0x00000005 9368c2ecf20Sopenharmony_ci#define HC_HTXnFLDs_Ani 0x00000006 9378c2ecf20Sopenharmony_ci#define HC_HTXnFLDs_AniDither 0x00000007 9388c2ecf20Sopenharmony_ci/* HC_SubA_HTXnMPMD 0x0079 9398c2ecf20Sopenharmony_ci */ 9408c2ecf20Sopenharmony_ci#define HC_HTXnMPMD_SMASK 0x00070000 9418c2ecf20Sopenharmony_ci#define HC_HTXnMPMD_TMASK 0x00380000 9428c2ecf20Sopenharmony_ci#define HC_HTXnLODDTf_MASK 0x00000007 9438c2ecf20Sopenharmony_ci#define HC_HTXnXY2ST_MASK 0x00000008 9448c2ecf20Sopenharmony_ci#define HC_HTXnMPMD_Tsingle 0x00000000 9458c2ecf20Sopenharmony_ci#define HC_HTXnMPMD_Tclamp 0x00080000 9468c2ecf20Sopenharmony_ci#define HC_HTXnMPMD_Trepeat 0x00100000 9478c2ecf20Sopenharmony_ci#define HC_HTXnMPMD_Tmirror 0x00180000 9488c2ecf20Sopenharmony_ci#define HC_HTXnMPMD_Twrap 0x00200000 9498c2ecf20Sopenharmony_ci#define HC_HTXnMPMD_Ssingle 0x00000000 9508c2ecf20Sopenharmony_ci#define HC_HTXnMPMD_Sclamp 0x00010000 9518c2ecf20Sopenharmony_ci#define HC_HTXnMPMD_Srepeat 0x00020000 9528c2ecf20Sopenharmony_ci#define HC_HTXnMPMD_Smirror 0x00030000 9538c2ecf20Sopenharmony_ci#define HC_HTXnMPMD_Swrap 0x00040000 9548c2ecf20Sopenharmony_ci/* HC_SubA_HTXnCLODu 0x007a 9558c2ecf20Sopenharmony_ci */ 9568c2ecf20Sopenharmony_ci#define HC_HTXnCLODu_MASK 0x000ffc00 9578c2ecf20Sopenharmony_ci#define HC_HTXnCLODd_MASK 0x000003ff 9588c2ecf20Sopenharmony_ci#define HC_HTXnCLODu_SHIFT 10 9598c2ecf20Sopenharmony_ci/* HC_SubA_HTXnFM 0x007b 9608c2ecf20Sopenharmony_ci */ 9618c2ecf20Sopenharmony_ci#define HC_HTXnFM_MASK 0x00ff0000 9628c2ecf20Sopenharmony_ci#define HC_HTXnLoc_MASK 0x00000003 9638c2ecf20Sopenharmony_ci#define HC_HTXnFM_INDEX 0x00000000 9648c2ecf20Sopenharmony_ci#define HC_HTXnFM_Intensity 0x00080000 9658c2ecf20Sopenharmony_ci#define HC_HTXnFM_Lum 0x00100000 9668c2ecf20Sopenharmony_ci#define HC_HTXnFM_Alpha 0x00180000 9678c2ecf20Sopenharmony_ci#define HC_HTXnFM_DX 0x00280000 9688c2ecf20Sopenharmony_ci#define HC_HTXnFM_ARGB16 0x00880000 9698c2ecf20Sopenharmony_ci#define HC_HTXnFM_ARGB32 0x00980000 9708c2ecf20Sopenharmony_ci#define HC_HTXnFM_ABGR16 0x00a80000 9718c2ecf20Sopenharmony_ci#define HC_HTXnFM_ABGR32 0x00b80000 9728c2ecf20Sopenharmony_ci#define HC_HTXnFM_RGBA16 0x00c80000 9738c2ecf20Sopenharmony_ci#define HC_HTXnFM_RGBA32 0x00d80000 9748c2ecf20Sopenharmony_ci#define HC_HTXnFM_BGRA16 0x00e80000 9758c2ecf20Sopenharmony_ci#define HC_HTXnFM_BGRA32 0x00f80000 9768c2ecf20Sopenharmony_ci#define HC_HTXnFM_BUMPMAP 0x00380000 9778c2ecf20Sopenharmony_ci#define HC_HTXnFM_Index1 (HC_HTXnFM_INDEX | 0x00000000) 9788c2ecf20Sopenharmony_ci#define HC_HTXnFM_Index2 (HC_HTXnFM_INDEX | 0x00010000) 9798c2ecf20Sopenharmony_ci#define HC_HTXnFM_Index4 (HC_HTXnFM_INDEX | 0x00020000) 9808c2ecf20Sopenharmony_ci#define HC_HTXnFM_Index8 (HC_HTXnFM_INDEX | 0x00030000) 9818c2ecf20Sopenharmony_ci#define HC_HTXnFM_T1 (HC_HTXnFM_Intensity | 0x00000000) 9828c2ecf20Sopenharmony_ci#define HC_HTXnFM_T2 (HC_HTXnFM_Intensity | 0x00010000) 9838c2ecf20Sopenharmony_ci#define HC_HTXnFM_T4 (HC_HTXnFM_Intensity | 0x00020000) 9848c2ecf20Sopenharmony_ci#define HC_HTXnFM_T8 (HC_HTXnFM_Intensity | 0x00030000) 9858c2ecf20Sopenharmony_ci#define HC_HTXnFM_L1 (HC_HTXnFM_Lum | 0x00000000) 9868c2ecf20Sopenharmony_ci#define HC_HTXnFM_L2 (HC_HTXnFM_Lum | 0x00010000) 9878c2ecf20Sopenharmony_ci#define HC_HTXnFM_L4 (HC_HTXnFM_Lum | 0x00020000) 9888c2ecf20Sopenharmony_ci#define HC_HTXnFM_L8 (HC_HTXnFM_Lum | 0x00030000) 9898c2ecf20Sopenharmony_ci#define HC_HTXnFM_AL44 (HC_HTXnFM_Lum | 0x00040000) 9908c2ecf20Sopenharmony_ci#define HC_HTXnFM_AL88 (HC_HTXnFM_Lum | 0x00050000) 9918c2ecf20Sopenharmony_ci#define HC_HTXnFM_A1 (HC_HTXnFM_Alpha | 0x00000000) 9928c2ecf20Sopenharmony_ci#define HC_HTXnFM_A2 (HC_HTXnFM_Alpha | 0x00010000) 9938c2ecf20Sopenharmony_ci#define HC_HTXnFM_A4 (HC_HTXnFM_Alpha | 0x00020000) 9948c2ecf20Sopenharmony_ci#define HC_HTXnFM_A8 (HC_HTXnFM_Alpha | 0x00030000) 9958c2ecf20Sopenharmony_ci#define HC_HTXnFM_DX1 (HC_HTXnFM_DX | 0x00010000) 9968c2ecf20Sopenharmony_ci#define HC_HTXnFM_DX23 (HC_HTXnFM_DX | 0x00020000) 9978c2ecf20Sopenharmony_ci#define HC_HTXnFM_DX45 (HC_HTXnFM_DX | 0x00030000) 9988c2ecf20Sopenharmony_ci#define HC_HTXnFM_RGB555 (HC_HTXnFM_ARGB16 | 0x00000000) 9998c2ecf20Sopenharmony_ci#define HC_HTXnFM_RGB565 (HC_HTXnFM_ARGB16 | 0x00010000) 10008c2ecf20Sopenharmony_ci#define HC_HTXnFM_ARGB1555 (HC_HTXnFM_ARGB16 | 0x00020000) 10018c2ecf20Sopenharmony_ci#define HC_HTXnFM_ARGB4444 (HC_HTXnFM_ARGB16 | 0x00030000) 10028c2ecf20Sopenharmony_ci#define HC_HTXnFM_ARGB0888 (HC_HTXnFM_ARGB32 | 0x00000000) 10038c2ecf20Sopenharmony_ci#define HC_HTXnFM_ARGB8888 (HC_HTXnFM_ARGB32 | 0x00010000) 10048c2ecf20Sopenharmony_ci#define HC_HTXnFM_BGR555 (HC_HTXnFM_ABGR16 | 0x00000000) 10058c2ecf20Sopenharmony_ci#define HC_HTXnFM_BGR565 (HC_HTXnFM_ABGR16 | 0x00010000) 10068c2ecf20Sopenharmony_ci#define HC_HTXnFM_ABGR1555 (HC_HTXnFM_ABGR16 | 0x00020000) 10078c2ecf20Sopenharmony_ci#define HC_HTXnFM_ABGR4444 (HC_HTXnFM_ABGR16 | 0x00030000) 10088c2ecf20Sopenharmony_ci#define HC_HTXnFM_ABGR0888 (HC_HTXnFM_ABGR32 | 0x00000000) 10098c2ecf20Sopenharmony_ci#define HC_HTXnFM_ABGR8888 (HC_HTXnFM_ABGR32 | 0x00010000) 10108c2ecf20Sopenharmony_ci#define HC_HTXnFM_RGBA5550 (HC_HTXnFM_RGBA16 | 0x00000000) 10118c2ecf20Sopenharmony_ci#define HC_HTXnFM_RGBA5551 (HC_HTXnFM_RGBA16 | 0x00020000) 10128c2ecf20Sopenharmony_ci#define HC_HTXnFM_RGBA4444 (HC_HTXnFM_RGBA16 | 0x00030000) 10138c2ecf20Sopenharmony_ci#define HC_HTXnFM_RGBA8880 (HC_HTXnFM_RGBA32 | 0x00000000) 10148c2ecf20Sopenharmony_ci#define HC_HTXnFM_RGBA8888 (HC_HTXnFM_RGBA32 | 0x00010000) 10158c2ecf20Sopenharmony_ci#define HC_HTXnFM_BGRA5550 (HC_HTXnFM_BGRA16 | 0x00000000) 10168c2ecf20Sopenharmony_ci#define HC_HTXnFM_BGRA5551 (HC_HTXnFM_BGRA16 | 0x00020000) 10178c2ecf20Sopenharmony_ci#define HC_HTXnFM_BGRA4444 (HC_HTXnFM_BGRA16 | 0x00030000) 10188c2ecf20Sopenharmony_ci#define HC_HTXnFM_BGRA8880 (HC_HTXnFM_BGRA32 | 0x00000000) 10198c2ecf20Sopenharmony_ci#define HC_HTXnFM_BGRA8888 (HC_HTXnFM_BGRA32 | 0x00010000) 10208c2ecf20Sopenharmony_ci#define HC_HTXnFM_VU88 (HC_HTXnFM_BUMPMAP | 0x00000000) 10218c2ecf20Sopenharmony_ci#define HC_HTXnFM_LVU655 (HC_HTXnFM_BUMPMAP | 0x00010000) 10228c2ecf20Sopenharmony_ci#define HC_HTXnFM_LVU888 (HC_HTXnFM_BUMPMAP | 0x00020000) 10238c2ecf20Sopenharmony_ci#define HC_HTXnLoc_Local 0x00000000 10248c2ecf20Sopenharmony_ci#define HC_HTXnLoc_Sys 0x00000002 10258c2ecf20Sopenharmony_ci#define HC_HTXnLoc_AGP 0x00000003 10268c2ecf20Sopenharmony_ci/* HC_SubA_HTXnTRAH 0x007f 10278c2ecf20Sopenharmony_ci */ 10288c2ecf20Sopenharmony_ci#define HC_HTXnTRAH_MASK 0x00ff0000 10298c2ecf20Sopenharmony_ci#define HC_HTXnTRAL_MASK 0x0000ff00 10308c2ecf20Sopenharmony_ci#define HC_HTXnTBA_MASK 0x000000ff 10318c2ecf20Sopenharmony_ci#define HC_HTXnTRAH_SHIFT 16 10328c2ecf20Sopenharmony_ci#define HC_HTXnTRAL_SHIFT 8 10338c2ecf20Sopenharmony_ci/* HC_SubA_HTXnTBLCsat 0x0080 10348c2ecf20Sopenharmony_ci *-- Define the input texture. 10358c2ecf20Sopenharmony_ci */ 10368c2ecf20Sopenharmony_ci#define HC_XTC_TOPC 0x00000000 10378c2ecf20Sopenharmony_ci#define HC_XTC_InvTOPC 0x00000010 10388c2ecf20Sopenharmony_ci#define HC_XTC_TOPCp5 0x00000020 10398c2ecf20Sopenharmony_ci#define HC_XTC_Cbias 0x00000000 10408c2ecf20Sopenharmony_ci#define HC_XTC_InvCbias 0x00000010 10418c2ecf20Sopenharmony_ci#define HC_XTC_0 0x00000000 10428c2ecf20Sopenharmony_ci#define HC_XTC_Dif 0x00000001 10438c2ecf20Sopenharmony_ci#define HC_XTC_Spec 0x00000002 10448c2ecf20Sopenharmony_ci#define HC_XTC_Tex 0x00000003 10458c2ecf20Sopenharmony_ci#define HC_XTC_Cur 0x00000004 10468c2ecf20Sopenharmony_ci#define HC_XTC_Adif 0x00000005 10478c2ecf20Sopenharmony_ci#define HC_XTC_Fog 0x00000006 10488c2ecf20Sopenharmony_ci#define HC_XTC_Atex 0x00000007 10498c2ecf20Sopenharmony_ci#define HC_XTC_Acur 0x00000008 10508c2ecf20Sopenharmony_ci#define HC_XTC_HTXnTBLRC 0x00000009 10518c2ecf20Sopenharmony_ci#define HC_XTC_Ctexnext 0x0000000a 10528c2ecf20Sopenharmony_ci/*-- 10538c2ecf20Sopenharmony_ci */ 10548c2ecf20Sopenharmony_ci#define HC_HTXnTBLCsat_MASK 0x00800000 10558c2ecf20Sopenharmony_ci#define HC_HTXnTBLCa_MASK 0x000fc000 10568c2ecf20Sopenharmony_ci#define HC_HTXnTBLCb_MASK 0x00001f80 10578c2ecf20Sopenharmony_ci#define HC_HTXnTBLCc_MASK 0x0000003f 10588c2ecf20Sopenharmony_ci#define HC_HTXnTBLCa_TOPC (HC_XTC_TOPC << 14) 10598c2ecf20Sopenharmony_ci#define HC_HTXnTBLCa_InvTOPC (HC_XTC_InvTOPC << 14) 10608c2ecf20Sopenharmony_ci#define HC_HTXnTBLCa_TOPCp5 (HC_XTC_TOPCp5 << 14) 10618c2ecf20Sopenharmony_ci#define HC_HTXnTBLCa_0 (HC_XTC_0 << 14) 10628c2ecf20Sopenharmony_ci#define HC_HTXnTBLCa_Dif (HC_XTC_Dif << 14) 10638c2ecf20Sopenharmony_ci#define HC_HTXnTBLCa_Spec (HC_XTC_Spec << 14) 10648c2ecf20Sopenharmony_ci#define HC_HTXnTBLCa_Tex (HC_XTC_Tex << 14) 10658c2ecf20Sopenharmony_ci#define HC_HTXnTBLCa_Cur (HC_XTC_Cur << 14) 10668c2ecf20Sopenharmony_ci#define HC_HTXnTBLCa_Adif (HC_XTC_Adif << 14) 10678c2ecf20Sopenharmony_ci#define HC_HTXnTBLCa_Fog (HC_XTC_Fog << 14) 10688c2ecf20Sopenharmony_ci#define HC_HTXnTBLCa_Atex (HC_XTC_Atex << 14) 10698c2ecf20Sopenharmony_ci#define HC_HTXnTBLCa_Acur (HC_XTC_Acur << 14) 10708c2ecf20Sopenharmony_ci#define HC_HTXnTBLCa_HTXnTBLRC (HC_XTC_HTXnTBLRC << 14) 10718c2ecf20Sopenharmony_ci#define HC_HTXnTBLCa_Ctexnext (HC_XTC_Ctexnext << 14) 10728c2ecf20Sopenharmony_ci#define HC_HTXnTBLCb_TOPC (HC_XTC_TOPC << 7) 10738c2ecf20Sopenharmony_ci#define HC_HTXnTBLCb_InvTOPC (HC_XTC_InvTOPC << 7) 10748c2ecf20Sopenharmony_ci#define HC_HTXnTBLCb_TOPCp5 (HC_XTC_TOPCp5 << 7) 10758c2ecf20Sopenharmony_ci#define HC_HTXnTBLCb_0 (HC_XTC_0 << 7) 10768c2ecf20Sopenharmony_ci#define HC_HTXnTBLCb_Dif (HC_XTC_Dif << 7) 10778c2ecf20Sopenharmony_ci#define HC_HTXnTBLCb_Spec (HC_XTC_Spec << 7) 10788c2ecf20Sopenharmony_ci#define HC_HTXnTBLCb_Tex (HC_XTC_Tex << 7) 10798c2ecf20Sopenharmony_ci#define HC_HTXnTBLCb_Cur (HC_XTC_Cur << 7) 10808c2ecf20Sopenharmony_ci#define HC_HTXnTBLCb_Adif (HC_XTC_Adif << 7) 10818c2ecf20Sopenharmony_ci#define HC_HTXnTBLCb_Fog (HC_XTC_Fog << 7) 10828c2ecf20Sopenharmony_ci#define HC_HTXnTBLCb_Atex (HC_XTC_Atex << 7) 10838c2ecf20Sopenharmony_ci#define HC_HTXnTBLCb_Acur (HC_XTC_Acur << 7) 10848c2ecf20Sopenharmony_ci#define HC_HTXnTBLCb_HTXnTBLRC (HC_XTC_HTXnTBLRC << 7) 10858c2ecf20Sopenharmony_ci#define HC_HTXnTBLCb_Ctexnext (HC_XTC_Ctexnext << 7) 10868c2ecf20Sopenharmony_ci#define HC_HTXnTBLCc_TOPC (HC_XTC_TOPC << 0) 10878c2ecf20Sopenharmony_ci#define HC_HTXnTBLCc_InvTOPC (HC_XTC_InvTOPC << 0) 10888c2ecf20Sopenharmony_ci#define HC_HTXnTBLCc_TOPCp5 (HC_XTC_TOPCp5 << 0) 10898c2ecf20Sopenharmony_ci#define HC_HTXnTBLCc_0 (HC_XTC_0 << 0) 10908c2ecf20Sopenharmony_ci#define HC_HTXnTBLCc_Dif (HC_XTC_Dif << 0) 10918c2ecf20Sopenharmony_ci#define HC_HTXnTBLCc_Spec (HC_XTC_Spec << 0) 10928c2ecf20Sopenharmony_ci#define HC_HTXnTBLCc_Tex (HC_XTC_Tex << 0) 10938c2ecf20Sopenharmony_ci#define HC_HTXnTBLCc_Cur (HC_XTC_Cur << 0) 10948c2ecf20Sopenharmony_ci#define HC_HTXnTBLCc_Adif (HC_XTC_Adif << 0) 10958c2ecf20Sopenharmony_ci#define HC_HTXnTBLCc_Fog (HC_XTC_Fog << 0) 10968c2ecf20Sopenharmony_ci#define HC_HTXnTBLCc_Atex (HC_XTC_Atex << 0) 10978c2ecf20Sopenharmony_ci#define HC_HTXnTBLCc_Acur (HC_XTC_Acur << 0) 10988c2ecf20Sopenharmony_ci#define HC_HTXnTBLCc_HTXnTBLRC (HC_XTC_HTXnTBLRC << 0) 10998c2ecf20Sopenharmony_ci#define HC_HTXnTBLCc_Ctexnext (HC_XTC_Ctexnext << 0) 11008c2ecf20Sopenharmony_ci/* HC_SubA_HTXnTBLCop 0x0081 11018c2ecf20Sopenharmony_ci */ 11028c2ecf20Sopenharmony_ci#define HC_HTXnTBLdot_MASK 0x00c00000 11038c2ecf20Sopenharmony_ci#define HC_HTXnTBLCop_MASK 0x00380000 11048c2ecf20Sopenharmony_ci#define HC_HTXnTBLCbias_MASK 0x0007c000 11058c2ecf20Sopenharmony_ci#define HC_HTXnTBLCshift_MASK 0x00001800 11068c2ecf20Sopenharmony_ci#define HC_HTXnTBLAop_MASK 0x00000380 11078c2ecf20Sopenharmony_ci#define HC_HTXnTBLAbias_MASK 0x00000078 11088c2ecf20Sopenharmony_ci#define HC_HTXnTBLAshift_MASK 0x00000003 11098c2ecf20Sopenharmony_ci#define HC_HTXnTBLCop_Add 0x00000000 11108c2ecf20Sopenharmony_ci#define HC_HTXnTBLCop_Sub 0x00080000 11118c2ecf20Sopenharmony_ci#define HC_HTXnTBLCop_Min 0x00100000 11128c2ecf20Sopenharmony_ci#define HC_HTXnTBLCop_Max 0x00180000 11138c2ecf20Sopenharmony_ci#define HC_HTXnTBLCop_Mask 0x00200000 11148c2ecf20Sopenharmony_ci#define HC_HTXnTBLCbias_Cbias (HC_XTC_Cbias << 14) 11158c2ecf20Sopenharmony_ci#define HC_HTXnTBLCbias_InvCbias (HC_XTC_InvCbias << 14) 11168c2ecf20Sopenharmony_ci#define HC_HTXnTBLCbias_0 (HC_XTC_0 << 14) 11178c2ecf20Sopenharmony_ci#define HC_HTXnTBLCbias_Dif (HC_XTC_Dif << 14) 11188c2ecf20Sopenharmony_ci#define HC_HTXnTBLCbias_Spec (HC_XTC_Spec << 14) 11198c2ecf20Sopenharmony_ci#define HC_HTXnTBLCbias_Tex (HC_XTC_Tex << 14) 11208c2ecf20Sopenharmony_ci#define HC_HTXnTBLCbias_Cur (HC_XTC_Cur << 14) 11218c2ecf20Sopenharmony_ci#define HC_HTXnTBLCbias_Adif (HC_XTC_Adif << 14) 11228c2ecf20Sopenharmony_ci#define HC_HTXnTBLCbias_Fog (HC_XTC_Fog << 14) 11238c2ecf20Sopenharmony_ci#define HC_HTXnTBLCbias_Atex (HC_XTC_Atex << 14) 11248c2ecf20Sopenharmony_ci#define HC_HTXnTBLCbias_Acur (HC_XTC_Acur << 14) 11258c2ecf20Sopenharmony_ci#define HC_HTXnTBLCbias_HTXnTBLRC (HC_XTC_HTXnTBLRC << 14) 11268c2ecf20Sopenharmony_ci#define HC_HTXnTBLCshift_1 0x00000000 11278c2ecf20Sopenharmony_ci#define HC_HTXnTBLCshift_2 0x00000800 11288c2ecf20Sopenharmony_ci#define HC_HTXnTBLCshift_No 0x00001000 11298c2ecf20Sopenharmony_ci#define HC_HTXnTBLCshift_DotP 0x00001800 11308c2ecf20Sopenharmony_ci/*=* John Sheng [2003.7.18] texture combine *=*/ 11318c2ecf20Sopenharmony_ci#define HC_HTXnTBLDOT3 0x00080000 11328c2ecf20Sopenharmony_ci#define HC_HTXnTBLDOT4 0x000C0000 11338c2ecf20Sopenharmony_ci 11348c2ecf20Sopenharmony_ci#define HC_HTXnTBLAop_Add 0x00000000 11358c2ecf20Sopenharmony_ci#define HC_HTXnTBLAop_Sub 0x00000080 11368c2ecf20Sopenharmony_ci#define HC_HTXnTBLAop_Min 0x00000100 11378c2ecf20Sopenharmony_ci#define HC_HTXnTBLAop_Max 0x00000180 11388c2ecf20Sopenharmony_ci#define HC_HTXnTBLAop_Mask 0x00000200 11398c2ecf20Sopenharmony_ci#define HC_HTXnTBLAbias_Inv 0x00000040 11408c2ecf20Sopenharmony_ci#define HC_HTXnTBLAbias_Adif 0x00000000 11418c2ecf20Sopenharmony_ci#define HC_HTXnTBLAbias_Fog 0x00000008 11428c2ecf20Sopenharmony_ci#define HC_HTXnTBLAbias_Acur 0x00000010 11438c2ecf20Sopenharmony_ci#define HC_HTXnTBLAbias_HTXnTBLRAbias 0x00000018 11448c2ecf20Sopenharmony_ci#define HC_HTXnTBLAbias_Atex 0x00000020 11458c2ecf20Sopenharmony_ci#define HC_HTXnTBLAshift_1 0x00000000 11468c2ecf20Sopenharmony_ci#define HC_HTXnTBLAshift_2 0x00000001 11478c2ecf20Sopenharmony_ci#define HC_HTXnTBLAshift_No 0x00000002 11488c2ecf20Sopenharmony_ci/* #define HC_HTXnTBLAshift_DotP 0x00000003 */ 11498c2ecf20Sopenharmony_ci/* HC_SubA_HTXnTBLMPFog 0x0082 11508c2ecf20Sopenharmony_ci */ 11518c2ecf20Sopenharmony_ci#define HC_HTXnTBLMPfog_MASK 0x00e00000 11528c2ecf20Sopenharmony_ci#define HC_HTXnTBLMPfog_0 0x00000000 11538c2ecf20Sopenharmony_ci#define HC_HTXnTBLMPfog_Adif 0x00200000 11548c2ecf20Sopenharmony_ci#define HC_HTXnTBLMPfog_Fog 0x00400000 11558c2ecf20Sopenharmony_ci#define HC_HTXnTBLMPfog_Atex 0x00600000 11568c2ecf20Sopenharmony_ci#define HC_HTXnTBLMPfog_Acur 0x00800000 11578c2ecf20Sopenharmony_ci#define HC_HTXnTBLMPfog_GHTXnTBLRFog 0x00a00000 11588c2ecf20Sopenharmony_ci/* HC_SubA_HTXnTBLAsat 0x0083 11598c2ecf20Sopenharmony_ci *-- Define the texture alpha input. 11608c2ecf20Sopenharmony_ci */ 11618c2ecf20Sopenharmony_ci#define HC_XTA_TOPA 0x00000000 11628c2ecf20Sopenharmony_ci#define HC_XTA_InvTOPA 0x00000008 11638c2ecf20Sopenharmony_ci#define HC_XTA_TOPAp5 0x00000010 11648c2ecf20Sopenharmony_ci#define HC_XTA_Adif 0x00000000 11658c2ecf20Sopenharmony_ci#define HC_XTA_Fog 0x00000001 11668c2ecf20Sopenharmony_ci#define HC_XTA_Acur 0x00000002 11678c2ecf20Sopenharmony_ci#define HC_XTA_HTXnTBLRA 0x00000003 11688c2ecf20Sopenharmony_ci#define HC_XTA_Atex 0x00000004 11698c2ecf20Sopenharmony_ci#define HC_XTA_Atexnext 0x00000005 11708c2ecf20Sopenharmony_ci/*-- 11718c2ecf20Sopenharmony_ci */ 11728c2ecf20Sopenharmony_ci#define HC_HTXnTBLAsat_MASK 0x00800000 11738c2ecf20Sopenharmony_ci#define HC_HTXnTBLAMB_MASK 0x00700000 11748c2ecf20Sopenharmony_ci#define HC_HTXnTBLAa_MASK 0x0007c000 11758c2ecf20Sopenharmony_ci#define HC_HTXnTBLAb_MASK 0x00000f80 11768c2ecf20Sopenharmony_ci#define HC_HTXnTBLAc_MASK 0x0000001f 11778c2ecf20Sopenharmony_ci#define HC_HTXnTBLAMB_SHIFT 20 11788c2ecf20Sopenharmony_ci#define HC_HTXnTBLAa_TOPA (HC_XTA_TOPA << 14) 11798c2ecf20Sopenharmony_ci#define HC_HTXnTBLAa_InvTOPA (HC_XTA_InvTOPA << 14) 11808c2ecf20Sopenharmony_ci#define HC_HTXnTBLAa_TOPAp5 (HC_XTA_TOPAp5 << 14) 11818c2ecf20Sopenharmony_ci#define HC_HTXnTBLAa_Adif (HC_XTA_Adif << 14) 11828c2ecf20Sopenharmony_ci#define HC_HTXnTBLAa_Fog (HC_XTA_Fog << 14) 11838c2ecf20Sopenharmony_ci#define HC_HTXnTBLAa_Acur (HC_XTA_Acur << 14) 11848c2ecf20Sopenharmony_ci#define HC_HTXnTBLAa_HTXnTBLRA (HC_XTA_HTXnTBLRA << 14) 11858c2ecf20Sopenharmony_ci#define HC_HTXnTBLAa_Atex (HC_XTA_Atex << 14) 11868c2ecf20Sopenharmony_ci#define HC_HTXnTBLAa_Atexnext (HC_XTA_Atexnext << 14) 11878c2ecf20Sopenharmony_ci#define HC_HTXnTBLAb_TOPA (HC_XTA_TOPA << 7) 11888c2ecf20Sopenharmony_ci#define HC_HTXnTBLAb_InvTOPA (HC_XTA_InvTOPA << 7) 11898c2ecf20Sopenharmony_ci#define HC_HTXnTBLAb_TOPAp5 (HC_XTA_TOPAp5 << 7) 11908c2ecf20Sopenharmony_ci#define HC_HTXnTBLAb_Adif (HC_XTA_Adif << 7) 11918c2ecf20Sopenharmony_ci#define HC_HTXnTBLAb_Fog (HC_XTA_Fog << 7) 11928c2ecf20Sopenharmony_ci#define HC_HTXnTBLAb_Acur (HC_XTA_Acur << 7) 11938c2ecf20Sopenharmony_ci#define HC_HTXnTBLAb_HTXnTBLRA (HC_XTA_HTXnTBLRA << 7) 11948c2ecf20Sopenharmony_ci#define HC_HTXnTBLAb_Atex (HC_XTA_Atex << 7) 11958c2ecf20Sopenharmony_ci#define HC_HTXnTBLAb_Atexnext (HC_XTA_Atexnext << 7) 11968c2ecf20Sopenharmony_ci#define HC_HTXnTBLAc_TOPA (HC_XTA_TOPA << 0) 11978c2ecf20Sopenharmony_ci#define HC_HTXnTBLAc_InvTOPA (HC_XTA_InvTOPA << 0) 11988c2ecf20Sopenharmony_ci#define HC_HTXnTBLAc_TOPAp5 (HC_XTA_TOPAp5 << 0) 11998c2ecf20Sopenharmony_ci#define HC_HTXnTBLAc_Adif (HC_XTA_Adif << 0) 12008c2ecf20Sopenharmony_ci#define HC_HTXnTBLAc_Fog (HC_XTA_Fog << 0) 12018c2ecf20Sopenharmony_ci#define HC_HTXnTBLAc_Acur (HC_XTA_Acur << 0) 12028c2ecf20Sopenharmony_ci#define HC_HTXnTBLAc_HTXnTBLRA (HC_XTA_HTXnTBLRA << 0) 12038c2ecf20Sopenharmony_ci#define HC_HTXnTBLAc_Atex (HC_XTA_Atex << 0) 12048c2ecf20Sopenharmony_ci#define HC_HTXnTBLAc_Atexnext (HC_XTA_Atexnext << 0) 12058c2ecf20Sopenharmony_ci/* HC_SubA_HTXnTBLRAa 0x0089 12068c2ecf20Sopenharmony_ci */ 12078c2ecf20Sopenharmony_ci#define HC_HTXnTBLRAa_MASK 0x00ff0000 12088c2ecf20Sopenharmony_ci#define HC_HTXnTBLRAb_MASK 0x0000ff00 12098c2ecf20Sopenharmony_ci#define HC_HTXnTBLRAc_MASK 0x000000ff 12108c2ecf20Sopenharmony_ci#define HC_HTXnTBLRAa_SHIFT 16 12118c2ecf20Sopenharmony_ci#define HC_HTXnTBLRAb_SHIFT 8 12128c2ecf20Sopenharmony_ci#define HC_HTXnTBLRAc_SHIFT 0 12138c2ecf20Sopenharmony_ci/* HC_SubA_HTXnTBLRFog 0x008a 12148c2ecf20Sopenharmony_ci */ 12158c2ecf20Sopenharmony_ci#define HC_HTXnTBLRFog_MASK 0x0000ff00 12168c2ecf20Sopenharmony_ci#define HC_HTXnTBLRAbias_MASK 0x000000ff 12178c2ecf20Sopenharmony_ci#define HC_HTXnTBLRFog_SHIFT 8 12188c2ecf20Sopenharmony_ci#define HC_HTXnTBLRAbias_SHIFT 0 12198c2ecf20Sopenharmony_ci/* HC_SubA_HTXnLScale 0x0094 12208c2ecf20Sopenharmony_ci */ 12218c2ecf20Sopenharmony_ci#define HC_HTXnLScale_MASK 0x0007fc00 12228c2ecf20Sopenharmony_ci#define HC_HTXnLOff_MASK 0x000001ff 12238c2ecf20Sopenharmony_ci#define HC_HTXnLScale_SHIFT 10 12248c2ecf20Sopenharmony_ci/* HC_SubA_HTXSMD 0x0000 12258c2ecf20Sopenharmony_ci */ 12268c2ecf20Sopenharmony_ci#define HC_HTXSMD_MASK 0x00000080 12278c2ecf20Sopenharmony_ci#define HC_HTXTMD_MASK 0x00000040 12288c2ecf20Sopenharmony_ci#define HC_HTXNum_MASK 0x00000038 12298c2ecf20Sopenharmony_ci#define HC_HTXTRMD_MASK 0x00000006 12308c2ecf20Sopenharmony_ci#define HC_HTXCHCLR_MASK 0x00000001 12318c2ecf20Sopenharmony_ci#define HC_HTXNum_SHIFT 3 12328c2ecf20Sopenharmony_ci 12338c2ecf20Sopenharmony_ci/* Texture Palette n 12348c2ecf20Sopenharmony_ci */ 12358c2ecf20Sopenharmony_ci#define HC_SubType_TexPalette0 0x00000000 12368c2ecf20Sopenharmony_ci#define HC_SubType_TexPalette1 0x00000001 12378c2ecf20Sopenharmony_ci#define HC_SubType_FogTable 0x00000010 12388c2ecf20Sopenharmony_ci#define HC_SubType_Stipple 0x00000014 12398c2ecf20Sopenharmony_ci/* HC_SubA_TexPalette0 0x0000 12408c2ecf20Sopenharmony_ci */ 12418c2ecf20Sopenharmony_ci#define HC_HTPnA_MASK 0xff000000 12428c2ecf20Sopenharmony_ci#define HC_HTPnR_MASK 0x00ff0000 12438c2ecf20Sopenharmony_ci#define HC_HTPnG_MASK 0x0000ff00 12448c2ecf20Sopenharmony_ci#define HC_HTPnB_MASK 0x000000ff 12458c2ecf20Sopenharmony_ci/* HC_SubA_FogTable 0x0010 12468c2ecf20Sopenharmony_ci */ 12478c2ecf20Sopenharmony_ci#define HC_HFPn3_MASK 0xff000000 12488c2ecf20Sopenharmony_ci#define HC_HFPn2_MASK 0x00ff0000 12498c2ecf20Sopenharmony_ci#define HC_HFPn1_MASK 0x0000ff00 12508c2ecf20Sopenharmony_ci#define HC_HFPn_MASK 0x000000ff 12518c2ecf20Sopenharmony_ci#define HC_HFPn3_SHIFT 24 12528c2ecf20Sopenharmony_ci#define HC_HFPn2_SHIFT 16 12538c2ecf20Sopenharmony_ci#define HC_HFPn1_SHIFT 8 12548c2ecf20Sopenharmony_ci 12558c2ecf20Sopenharmony_ci/* Auto Testing & Security 12568c2ecf20Sopenharmony_ci */ 12578c2ecf20Sopenharmony_ci#define HC_SubA_HenFIFOAT 0x0000 12588c2ecf20Sopenharmony_ci#define HC_SubA_HFBDrawFirst 0x0004 12598c2ecf20Sopenharmony_ci#define HC_SubA_HFBBasL 0x0005 12608c2ecf20Sopenharmony_ci#define HC_SubA_HFBDst 0x0006 12618c2ecf20Sopenharmony_ci/* HC_SubA_HenFIFOAT 0x0000 12628c2ecf20Sopenharmony_ci */ 12638c2ecf20Sopenharmony_ci#define HC_HenFIFOAT_MASK 0x00000020 12648c2ecf20Sopenharmony_ci#define HC_HenGEMILock_MASK 0x00000010 12658c2ecf20Sopenharmony_ci#define HC_HenFBASwap_MASK 0x00000008 12668c2ecf20Sopenharmony_ci#define HC_HenOT_MASK 0x00000004 12678c2ecf20Sopenharmony_ci#define HC_HenCMDQ_MASK 0x00000002 12688c2ecf20Sopenharmony_ci#define HC_HenTXCTSU_MASK 0x00000001 12698c2ecf20Sopenharmony_ci/* HC_SubA_HFBDrawFirst 0x0004 12708c2ecf20Sopenharmony_ci */ 12718c2ecf20Sopenharmony_ci#define HC_HFBDrawFirst_MASK 0x00000800 12728c2ecf20Sopenharmony_ci#define HC_HFBQueue_MASK 0x00000400 12738c2ecf20Sopenharmony_ci#define HC_HFBLock_MASK 0x00000200 12748c2ecf20Sopenharmony_ci#define HC_HEOF_MASK 0x00000100 12758c2ecf20Sopenharmony_ci#define HC_HFBBasH_MASK 0x000000ff 12768c2ecf20Sopenharmony_ci 12778c2ecf20Sopenharmony_ci/* GEMI Setting 12788c2ecf20Sopenharmony_ci */ 12798c2ecf20Sopenharmony_ci#define HC_SubA_HTArbRCM 0x0008 12808c2ecf20Sopenharmony_ci#define HC_SubA_HTArbRZ 0x000a 12818c2ecf20Sopenharmony_ci#define HC_SubA_HTArbWZ 0x000b 12828c2ecf20Sopenharmony_ci#define HC_SubA_HTArbRTX 0x000c 12838c2ecf20Sopenharmony_ci#define HC_SubA_HTArbRCW 0x000d 12848c2ecf20Sopenharmony_ci#define HC_SubA_HTArbE2 0x000e 12858c2ecf20Sopenharmony_ci#define HC_SubA_HArbRQCM 0x0010 12868c2ecf20Sopenharmony_ci#define HC_SubA_HArbWQCM 0x0011 12878c2ecf20Sopenharmony_ci#define HC_SubA_HGEMITout 0x0020 12888c2ecf20Sopenharmony_ci#define HC_SubA_HFthRTXD 0x0040 12898c2ecf20Sopenharmony_ci#define HC_SubA_HFthRTXA 0x0044 12908c2ecf20Sopenharmony_ci#define HC_SubA_HCMDQstL 0x0050 12918c2ecf20Sopenharmony_ci#define HC_SubA_HCMDQendL 0x0051 12928c2ecf20Sopenharmony_ci#define HC_SubA_HCMDQLen 0x0052 12938c2ecf20Sopenharmony_ci/* HC_SubA_HTArbRCM 0x0008 12948c2ecf20Sopenharmony_ci */ 12958c2ecf20Sopenharmony_ci#define HC_HTArbRCM_MASK 0x0000ffff 12968c2ecf20Sopenharmony_ci/* HC_SubA_HTArbRZ 0x000a 12978c2ecf20Sopenharmony_ci */ 12988c2ecf20Sopenharmony_ci#define HC_HTArbRZ_MASK 0x0000ffff 12998c2ecf20Sopenharmony_ci/* HC_SubA_HTArbWZ 0x000b 13008c2ecf20Sopenharmony_ci */ 13018c2ecf20Sopenharmony_ci#define HC_HTArbWZ_MASK 0x0000ffff 13028c2ecf20Sopenharmony_ci/* HC_SubA_HTArbRTX 0x000c 13038c2ecf20Sopenharmony_ci */ 13048c2ecf20Sopenharmony_ci#define HC_HTArbRTX_MASK 0x0000ffff 13058c2ecf20Sopenharmony_ci/* HC_SubA_HTArbRCW 0x000d 13068c2ecf20Sopenharmony_ci */ 13078c2ecf20Sopenharmony_ci#define HC_HTArbRCW_MASK 0x0000ffff 13088c2ecf20Sopenharmony_ci/* HC_SubA_HTArbE2 0x000e 13098c2ecf20Sopenharmony_ci */ 13108c2ecf20Sopenharmony_ci#define HC_HTArbE2_MASK 0x0000ffff 13118c2ecf20Sopenharmony_ci/* HC_SubA_HArbRQCM 0x0010 13128c2ecf20Sopenharmony_ci */ 13138c2ecf20Sopenharmony_ci#define HC_HTArbRQCM_MASK 0x0000ffff 13148c2ecf20Sopenharmony_ci/* HC_SubA_HArbWQCM 0x0011 13158c2ecf20Sopenharmony_ci */ 13168c2ecf20Sopenharmony_ci#define HC_HArbWQCM_MASK 0x0000ffff 13178c2ecf20Sopenharmony_ci/* HC_SubA_HGEMITout 0x0020 13188c2ecf20Sopenharmony_ci */ 13198c2ecf20Sopenharmony_ci#define HC_HGEMITout_MASK 0x000f0000 13208c2ecf20Sopenharmony_ci#define HC_HNPArbZC_MASK 0x0000ffff 13218c2ecf20Sopenharmony_ci#define HC_HGEMITout_SHIFT 16 13228c2ecf20Sopenharmony_ci/* HC_SubA_HFthRTXD 0x0040 13238c2ecf20Sopenharmony_ci */ 13248c2ecf20Sopenharmony_ci#define HC_HFthRTXD_MASK 0x00ff0000 13258c2ecf20Sopenharmony_ci#define HC_HFthRZD_MASK 0x0000ff00 13268c2ecf20Sopenharmony_ci#define HC_HFthWZD_MASK 0x000000ff 13278c2ecf20Sopenharmony_ci#define HC_HFthRTXD_SHIFT 16 13288c2ecf20Sopenharmony_ci#define HC_HFthRZD_SHIFT 8 13298c2ecf20Sopenharmony_ci/* HC_SubA_HFthRTXA 0x0044 13308c2ecf20Sopenharmony_ci */ 13318c2ecf20Sopenharmony_ci#define HC_HFthRTXA_MASK 0x000000ff 13328c2ecf20Sopenharmony_ci 13338c2ecf20Sopenharmony_ci/****************************************************************************** 13348c2ecf20Sopenharmony_ci** Define the Halcyon Internal register access constants. For simulator only. 13358c2ecf20Sopenharmony_ci******************************************************************************/ 13368c2ecf20Sopenharmony_ci#define HC_SIMA_HAGPBstL 0x0000 13378c2ecf20Sopenharmony_ci#define HC_SIMA_HAGPBendL 0x0001 13388c2ecf20Sopenharmony_ci#define HC_SIMA_HAGPCMNT 0x0002 13398c2ecf20Sopenharmony_ci#define HC_SIMA_HAGPBpL 0x0003 13408c2ecf20Sopenharmony_ci#define HC_SIMA_HAGPBpH 0x0004 13418c2ecf20Sopenharmony_ci#define HC_SIMA_HClipTB 0x0005 13428c2ecf20Sopenharmony_ci#define HC_SIMA_HClipLR 0x0006 13438c2ecf20Sopenharmony_ci#define HC_SIMA_HFPClipTL 0x0007 13448c2ecf20Sopenharmony_ci#define HC_SIMA_HFPClipBL 0x0008 13458c2ecf20Sopenharmony_ci#define HC_SIMA_HFPClipLL 0x0009 13468c2ecf20Sopenharmony_ci#define HC_SIMA_HFPClipRL 0x000a 13478c2ecf20Sopenharmony_ci#define HC_SIMA_HFPClipTBH 0x000b 13488c2ecf20Sopenharmony_ci#define HC_SIMA_HFPClipLRH 0x000c 13498c2ecf20Sopenharmony_ci#define HC_SIMA_HLP 0x000d 13508c2ecf20Sopenharmony_ci#define HC_SIMA_HLPRF 0x000e 13518c2ecf20Sopenharmony_ci#define HC_SIMA_HSolidCL 0x000f 13528c2ecf20Sopenharmony_ci#define HC_SIMA_HPixGC 0x0010 13538c2ecf20Sopenharmony_ci#define HC_SIMA_HSPXYOS 0x0011 13548c2ecf20Sopenharmony_ci#define HC_SIMA_HCmdA 0x0012 13558c2ecf20Sopenharmony_ci#define HC_SIMA_HCmdB 0x0013 13568c2ecf20Sopenharmony_ci#define HC_SIMA_HEnable 0x0014 13578c2ecf20Sopenharmony_ci#define HC_SIMA_HZWBBasL 0x0015 13588c2ecf20Sopenharmony_ci#define HC_SIMA_HZWBBasH 0x0016 13598c2ecf20Sopenharmony_ci#define HC_SIMA_HZWBType 0x0017 13608c2ecf20Sopenharmony_ci#define HC_SIMA_HZBiasL 0x0018 13618c2ecf20Sopenharmony_ci#define HC_SIMA_HZWBend 0x0019 13628c2ecf20Sopenharmony_ci#define HC_SIMA_HZWTMD 0x001a 13638c2ecf20Sopenharmony_ci#define HC_SIMA_HZWCDL 0x001b 13648c2ecf20Sopenharmony_ci#define HC_SIMA_HZWCTAGnum 0x001c 13658c2ecf20Sopenharmony_ci#define HC_SIMA_HZCYNum 0x001d 13668c2ecf20Sopenharmony_ci#define HC_SIMA_HZWCFire 0x001e 13678c2ecf20Sopenharmony_ci/* #define HC_SIMA_HSBBasL 0x001d */ 13688c2ecf20Sopenharmony_ci/* #define HC_SIMA_HSBBasH 0x001e */ 13698c2ecf20Sopenharmony_ci/* #define HC_SIMA_HSBFM 0x001f */ 13708c2ecf20Sopenharmony_ci#define HC_SIMA_HSTREF 0x0020 13718c2ecf20Sopenharmony_ci#define HC_SIMA_HSTMD 0x0021 13728c2ecf20Sopenharmony_ci#define HC_SIMA_HABBasL 0x0022 13738c2ecf20Sopenharmony_ci#define HC_SIMA_HABBasH 0x0023 13748c2ecf20Sopenharmony_ci#define HC_SIMA_HABFM 0x0024 13758c2ecf20Sopenharmony_ci#define HC_SIMA_HATMD 0x0025 13768c2ecf20Sopenharmony_ci#define HC_SIMA_HABLCsat 0x0026 13778c2ecf20Sopenharmony_ci#define HC_SIMA_HABLCop 0x0027 13788c2ecf20Sopenharmony_ci#define HC_SIMA_HABLAsat 0x0028 13798c2ecf20Sopenharmony_ci#define HC_SIMA_HABLAop 0x0029 13808c2ecf20Sopenharmony_ci#define HC_SIMA_HABLRCa 0x002a 13818c2ecf20Sopenharmony_ci#define HC_SIMA_HABLRFCa 0x002b 13828c2ecf20Sopenharmony_ci#define HC_SIMA_HABLRCbias 0x002c 13838c2ecf20Sopenharmony_ci#define HC_SIMA_HABLRCb 0x002d 13848c2ecf20Sopenharmony_ci#define HC_SIMA_HABLRFCb 0x002e 13858c2ecf20Sopenharmony_ci#define HC_SIMA_HABLRAa 0x002f 13868c2ecf20Sopenharmony_ci#define HC_SIMA_HABLRAb 0x0030 13878c2ecf20Sopenharmony_ci#define HC_SIMA_HDBBasL 0x0031 13888c2ecf20Sopenharmony_ci#define HC_SIMA_HDBBasH 0x0032 13898c2ecf20Sopenharmony_ci#define HC_SIMA_HDBFM 0x0033 13908c2ecf20Sopenharmony_ci#define HC_SIMA_HFBBMSKL 0x0034 13918c2ecf20Sopenharmony_ci#define HC_SIMA_HROP 0x0035 13928c2ecf20Sopenharmony_ci#define HC_SIMA_HFogLF 0x0036 13938c2ecf20Sopenharmony_ci#define HC_SIMA_HFogCL 0x0037 13948c2ecf20Sopenharmony_ci#define HC_SIMA_HFogCH 0x0038 13958c2ecf20Sopenharmony_ci#define HC_SIMA_HFogStL 0x0039 13968c2ecf20Sopenharmony_ci#define HC_SIMA_HFogStH 0x003a 13978c2ecf20Sopenharmony_ci#define HC_SIMA_HFogOOdMF 0x003b 13988c2ecf20Sopenharmony_ci#define HC_SIMA_HFogOOdEF 0x003c 13998c2ecf20Sopenharmony_ci#define HC_SIMA_HFogEndL 0x003d 14008c2ecf20Sopenharmony_ci#define HC_SIMA_HFogDenst 0x003e 14018c2ecf20Sopenharmony_ci/*---- start of texture 0 setting ---- 14028c2ecf20Sopenharmony_ci */ 14038c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L0BasL 0x0040 14048c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L1BasL 0x0041 14058c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L2BasL 0x0042 14068c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L3BasL 0x0043 14078c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L4BasL 0x0044 14088c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L5BasL 0x0045 14098c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L6BasL 0x0046 14108c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L7BasL 0x0047 14118c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L8BasL 0x0048 14128c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L9BasL 0x0049 14138c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0LaBasL 0x004a 14148c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0LbBasL 0x004b 14158c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0LcBasL 0x004c 14168c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0LdBasL 0x004d 14178c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0LeBasL 0x004e 14188c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0LfBasL 0x004f 14198c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L10BasL 0x0050 14208c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L11BasL 0x0051 14218c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L012BasH 0x0052 14228c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L345BasH 0x0053 14238c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L678BasH 0x0054 14248c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L9abBasH 0x0055 14258c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0LcdeBasH 0x0056 14268c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0Lf1011BasH 0x0057 14278c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L0Pit 0x0058 14288c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L1Pit 0x0059 14298c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L2Pit 0x005a 14308c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L3Pit 0x005b 14318c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L4Pit 0x005c 14328c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L5Pit 0x005d 14338c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L6Pit 0x005e 14348c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L7Pit 0x005f 14358c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L8Pit 0x0060 14368c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L9Pit 0x0061 14378c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0LaPit 0x0062 14388c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0LbPit 0x0063 14398c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0LcPit 0x0064 14408c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0LdPit 0x0065 14418c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0LePit 0x0066 14428c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0LfPit 0x0067 14438c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L10Pit 0x0068 14448c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L11Pit 0x0069 14458c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L0_5WE 0x006a 14468c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L6_bWE 0x006b 14478c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0Lc_11WE 0x006c 14488c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L0_5HE 0x006d 14498c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L6_bHE 0x006e 14508c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0Lc_11HE 0x006f 14518c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0L0OS 0x0070 14528c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0TB 0x0071 14538c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0MPMD 0x0072 14548c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0CLODu 0x0073 14558c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0FM 0x0074 14568c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0TRCH 0x0075 14578c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0TRCL 0x0076 14588c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0TBC 0x0077 14598c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0TRAH 0x0078 14608c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0TBLCsat 0x0079 14618c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0TBLCop 0x007a 14628c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0TBLMPfog 0x007b 14638c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0TBLAsat 0x007c 14648c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0TBLRCa 0x007d 14658c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0TBLRCb 0x007e 14668c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0TBLRCc 0x007f 14678c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0TBLRCbias 0x0080 14688c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0TBLRAa 0x0081 14698c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0TBLRFog 0x0082 14708c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0BumpM00 0x0083 14718c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0BumpM01 0x0084 14728c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0BumpM10 0x0085 14738c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0BumpM11 0x0086 14748c2ecf20Sopenharmony_ci#define HC_SIMA_HTX0LScale 0x0087 14758c2ecf20Sopenharmony_ci/*---- end of texture 0 setting ---- 0x008f 14768c2ecf20Sopenharmony_ci */ 14778c2ecf20Sopenharmony_ci#define HC_SIMA_TX0TX1_OFF 0x0050 14788c2ecf20Sopenharmony_ci/*---- start of texture 1 setting ---- 14798c2ecf20Sopenharmony_ci */ 14808c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L0BasL (HC_SIMA_HTX0L0BasL + HC_SIMA_TX0TX1_OFF) 14818c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L1BasL (HC_SIMA_HTX0L1BasL + HC_SIMA_TX0TX1_OFF) 14828c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L2BasL (HC_SIMA_HTX0L2BasL + HC_SIMA_TX0TX1_OFF) 14838c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L3BasL (HC_SIMA_HTX0L3BasL + HC_SIMA_TX0TX1_OFF) 14848c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L4BasL (HC_SIMA_HTX0L4BasL + HC_SIMA_TX0TX1_OFF) 14858c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L5BasL (HC_SIMA_HTX0L5BasL + HC_SIMA_TX0TX1_OFF) 14868c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L6BasL (HC_SIMA_HTX0L6BasL + HC_SIMA_TX0TX1_OFF) 14878c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L7BasL (HC_SIMA_HTX0L7BasL + HC_SIMA_TX0TX1_OFF) 14888c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L8BasL (HC_SIMA_HTX0L8BasL + HC_SIMA_TX0TX1_OFF) 14898c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L9BasL (HC_SIMA_HTX0L9BasL + HC_SIMA_TX0TX1_OFF) 14908c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1LaBasL (HC_SIMA_HTX0LaBasL + HC_SIMA_TX0TX1_OFF) 14918c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1LbBasL (HC_SIMA_HTX0LbBasL + HC_SIMA_TX0TX1_OFF) 14928c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1LcBasL (HC_SIMA_HTX0LcBasL + HC_SIMA_TX0TX1_OFF) 14938c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1LdBasL (HC_SIMA_HTX0LdBasL + HC_SIMA_TX0TX1_OFF) 14948c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1LeBasL (HC_SIMA_HTX0LeBasL + HC_SIMA_TX0TX1_OFF) 14958c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1LfBasL (HC_SIMA_HTX0LfBasL + HC_SIMA_TX0TX1_OFF) 14968c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L10BasL (HC_SIMA_HTX0L10BasL + HC_SIMA_TX0TX1_OFF) 14978c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L11BasL (HC_SIMA_HTX0L11BasL + HC_SIMA_TX0TX1_OFF) 14988c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L012BasH (HC_SIMA_HTX0L012BasH + HC_SIMA_TX0TX1_OFF) 14998c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L345BasH (HC_SIMA_HTX0L345BasH + HC_SIMA_TX0TX1_OFF) 15008c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L678BasH (HC_SIMA_HTX0L678BasH + HC_SIMA_TX0TX1_OFF) 15018c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L9abBasH (HC_SIMA_HTX0L9abBasH + HC_SIMA_TX0TX1_OFF) 15028c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1LcdeBasH (HC_SIMA_HTX0LcdeBasH + HC_SIMA_TX0TX1_OFF) 15038c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1Lf1011BasH (HC_SIMA_HTX0Lf1011BasH + HC_SIMA_TX0TX1_OFF) 15048c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L0Pit (HC_SIMA_HTX0L0Pit + HC_SIMA_TX0TX1_OFF) 15058c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L1Pit (HC_SIMA_HTX0L1Pit + HC_SIMA_TX0TX1_OFF) 15068c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L2Pit (HC_SIMA_HTX0L2Pit + HC_SIMA_TX0TX1_OFF) 15078c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L3Pit (HC_SIMA_HTX0L3Pit + HC_SIMA_TX0TX1_OFF) 15088c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L4Pit (HC_SIMA_HTX0L4Pit + HC_SIMA_TX0TX1_OFF) 15098c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L5Pit (HC_SIMA_HTX0L5Pit + HC_SIMA_TX0TX1_OFF) 15108c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L6Pit (HC_SIMA_HTX0L6Pit + HC_SIMA_TX0TX1_OFF) 15118c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L7Pit (HC_SIMA_HTX0L7Pit + HC_SIMA_TX0TX1_OFF) 15128c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L8Pit (HC_SIMA_HTX0L8Pit + HC_SIMA_TX0TX1_OFF) 15138c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L9Pit (HC_SIMA_HTX0L9Pit + HC_SIMA_TX0TX1_OFF) 15148c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1LaPit (HC_SIMA_HTX0LaPit + HC_SIMA_TX0TX1_OFF) 15158c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1LbPit (HC_SIMA_HTX0LbPit + HC_SIMA_TX0TX1_OFF) 15168c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1LcPit (HC_SIMA_HTX0LcPit + HC_SIMA_TX0TX1_OFF) 15178c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1LdPit (HC_SIMA_HTX0LdPit + HC_SIMA_TX0TX1_OFF) 15188c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1LePit (HC_SIMA_HTX0LePit + HC_SIMA_TX0TX1_OFF) 15198c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1LfPit (HC_SIMA_HTX0LfPit + HC_SIMA_TX0TX1_OFF) 15208c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L10Pit (HC_SIMA_HTX0L10Pit + HC_SIMA_TX0TX1_OFF) 15218c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L11Pit (HC_SIMA_HTX0L11Pit + HC_SIMA_TX0TX1_OFF) 15228c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L0_5WE (HC_SIMA_HTX0L0_5WE + HC_SIMA_TX0TX1_OFF) 15238c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L6_bWE (HC_SIMA_HTX0L6_bWE + HC_SIMA_TX0TX1_OFF) 15248c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1Lc_11WE (HC_SIMA_HTX0Lc_11WE + HC_SIMA_TX0TX1_OFF) 15258c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L0_5HE (HC_SIMA_HTX0L0_5HE + HC_SIMA_TX0TX1_OFF) 15268c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L6_bHE (HC_SIMA_HTX0L6_bHE + HC_SIMA_TX0TX1_OFF) 15278c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1Lc_11HE (HC_SIMA_HTX0Lc_11HE + HC_SIMA_TX0TX1_OFF) 15288c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1L0OS (HC_SIMA_HTX0L0OS + HC_SIMA_TX0TX1_OFF) 15298c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1TB (HC_SIMA_HTX0TB + HC_SIMA_TX0TX1_OFF) 15308c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1MPMD (HC_SIMA_HTX0MPMD + HC_SIMA_TX0TX1_OFF) 15318c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1CLODu (HC_SIMA_HTX0CLODu + HC_SIMA_TX0TX1_OFF) 15328c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1FM (HC_SIMA_HTX0FM + HC_SIMA_TX0TX1_OFF) 15338c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1TRCH (HC_SIMA_HTX0TRCH + HC_SIMA_TX0TX1_OFF) 15348c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1TRCL (HC_SIMA_HTX0TRCL + HC_SIMA_TX0TX1_OFF) 15358c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1TBC (HC_SIMA_HTX0TBC + HC_SIMA_TX0TX1_OFF) 15368c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1TRAH (HC_SIMA_HTX0TRAH + HC_SIMA_TX0TX1_OFF) 15378c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1LTC (HC_SIMA_HTX0LTC + HC_SIMA_TX0TX1_OFF) 15388c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1LTA (HC_SIMA_HTX0LTA + HC_SIMA_TX0TX1_OFF) 15398c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1TBLCsat (HC_SIMA_HTX0TBLCsat + HC_SIMA_TX0TX1_OFF) 15408c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1TBLCop (HC_SIMA_HTX0TBLCop + HC_SIMA_TX0TX1_OFF) 15418c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1TBLMPfog (HC_SIMA_HTX0TBLMPfog + HC_SIMA_TX0TX1_OFF) 15428c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1TBLAsat (HC_SIMA_HTX0TBLAsat + HC_SIMA_TX0TX1_OFF) 15438c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1TBLRCa (HC_SIMA_HTX0TBLRCa + HC_SIMA_TX0TX1_OFF) 15448c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1TBLRCb (HC_SIMA_HTX0TBLRCb + HC_SIMA_TX0TX1_OFF) 15458c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1TBLRCc (HC_SIMA_HTX0TBLRCc + HC_SIMA_TX0TX1_OFF) 15468c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1TBLRCbias (HC_SIMA_HTX0TBLRCbias + HC_SIMA_TX0TX1_OFF) 15478c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1TBLRAa (HC_SIMA_HTX0TBLRAa + HC_SIMA_TX0TX1_OFF) 15488c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1TBLRFog (HC_SIMA_HTX0TBLRFog + HC_SIMA_TX0TX1_OFF) 15498c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1BumpM00 (HC_SIMA_HTX0BumpM00 + HC_SIMA_TX0TX1_OFF) 15508c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1BumpM01 (HC_SIMA_HTX0BumpM01 + HC_SIMA_TX0TX1_OFF) 15518c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1BumpM10 (HC_SIMA_HTX0BumpM10 + HC_SIMA_TX0TX1_OFF) 15528c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1BumpM11 (HC_SIMA_HTX0BumpM11 + HC_SIMA_TX0TX1_OFF) 15538c2ecf20Sopenharmony_ci#define HC_SIMA_HTX1LScale (HC_SIMA_HTX0LScale + HC_SIMA_TX0TX1_OFF) 15548c2ecf20Sopenharmony_ci/*---- end of texture 1 setting ---- 0xaf 15558c2ecf20Sopenharmony_ci */ 15568c2ecf20Sopenharmony_ci#define HC_SIMA_HTXSMD 0x00b0 15578c2ecf20Sopenharmony_ci#define HC_SIMA_HenFIFOAT 0x00b1 15588c2ecf20Sopenharmony_ci#define HC_SIMA_HFBDrawFirst 0x00b2 15598c2ecf20Sopenharmony_ci#define HC_SIMA_HFBBasL 0x00b3 15608c2ecf20Sopenharmony_ci#define HC_SIMA_HTArbRCM 0x00b4 15618c2ecf20Sopenharmony_ci#define HC_SIMA_HTArbRZ 0x00b5 15628c2ecf20Sopenharmony_ci#define HC_SIMA_HTArbWZ 0x00b6 15638c2ecf20Sopenharmony_ci#define HC_SIMA_HTArbRTX 0x00b7 15648c2ecf20Sopenharmony_ci#define HC_SIMA_HTArbRCW 0x00b8 15658c2ecf20Sopenharmony_ci#define HC_SIMA_HTArbE2 0x00b9 15668c2ecf20Sopenharmony_ci#define HC_SIMA_HGEMITout 0x00ba 15678c2ecf20Sopenharmony_ci#define HC_SIMA_HFthRTXD 0x00bb 15688c2ecf20Sopenharmony_ci#define HC_SIMA_HFthRTXA 0x00bc 15698c2ecf20Sopenharmony_ci/* Define the texture palette 0 15708c2ecf20Sopenharmony_ci */ 15718c2ecf20Sopenharmony_ci#define HC_SIMA_HTP0 0x0100 15728c2ecf20Sopenharmony_ci#define HC_SIMA_HTP1 0x0200 15738c2ecf20Sopenharmony_ci#define HC_SIMA_FOGTABLE 0x0300 15748c2ecf20Sopenharmony_ci#define HC_SIMA_STIPPLE 0x0400 15758c2ecf20Sopenharmony_ci#define HC_SIMA_HE3Fire 0x0440 15768c2ecf20Sopenharmony_ci#define HC_SIMA_TRANS_SET 0x0441 15778c2ecf20Sopenharmony_ci#define HC_SIMA_HREngSt 0x0442 15788c2ecf20Sopenharmony_ci#define HC_SIMA_HRFIFOempty 0x0443 15798c2ecf20Sopenharmony_ci#define HC_SIMA_HRFIFOfull 0x0444 15808c2ecf20Sopenharmony_ci#define HC_SIMA_HRErr 0x0445 15818c2ecf20Sopenharmony_ci#define HC_SIMA_FIFOstatus 0x0446 15828c2ecf20Sopenharmony_ci 15838c2ecf20Sopenharmony_ci/****************************************************************************** 15848c2ecf20Sopenharmony_ci** Define the AGP command header. 15858c2ecf20Sopenharmony_ci******************************************************************************/ 15868c2ecf20Sopenharmony_ci#define HC_ACMD_MASK 0xfe000000 15878c2ecf20Sopenharmony_ci#define HC_ACMD_SUB_MASK 0x0c000000 15888c2ecf20Sopenharmony_ci#define HC_ACMD_HCmdA 0xee000000 15898c2ecf20Sopenharmony_ci#define HC_ACMD_HCmdB 0xec000000 15908c2ecf20Sopenharmony_ci#define HC_ACMD_HCmdC 0xea000000 15918c2ecf20Sopenharmony_ci#define HC_ACMD_H1 0xf0000000 15928c2ecf20Sopenharmony_ci#define HC_ACMD_H2 0xf2000000 15938c2ecf20Sopenharmony_ci#define HC_ACMD_H3 0xf4000000 15948c2ecf20Sopenharmony_ci#define HC_ACMD_H4 0xf6000000 15958c2ecf20Sopenharmony_ci 15968c2ecf20Sopenharmony_ci#define HC_ACMD_H1IO_MASK 0x000001ff 15978c2ecf20Sopenharmony_ci#define HC_ACMD_H2IO1_MASK 0x001ff000 15988c2ecf20Sopenharmony_ci#define HC_ACMD_H2IO2_MASK 0x000001ff 15998c2ecf20Sopenharmony_ci#define HC_ACMD_H2IO1_SHIFT 12 16008c2ecf20Sopenharmony_ci#define HC_ACMD_H2IO2_SHIFT 0 16018c2ecf20Sopenharmony_ci#define HC_ACMD_H3IO_MASK 0x000001ff 16028c2ecf20Sopenharmony_ci#define HC_ACMD_H3COUNT_MASK 0x01fff000 16038c2ecf20Sopenharmony_ci#define HC_ACMD_H3COUNT_SHIFT 12 16048c2ecf20Sopenharmony_ci#define HC_ACMD_H4ID_MASK 0x000001ff 16058c2ecf20Sopenharmony_ci#define HC_ACMD_H4COUNT_MASK 0x01fffe00 16068c2ecf20Sopenharmony_ci#define HC_ACMD_H4COUNT_SHIFT 9 16078c2ecf20Sopenharmony_ci 16088c2ecf20Sopenharmony_ci/******************************************************************************** 16098c2ecf20Sopenharmony_ci** Define Header 16108c2ecf20Sopenharmony_ci********************************************************************************/ 16118c2ecf20Sopenharmony_ci#define HC_HEADER2 0xF210F110 16128c2ecf20Sopenharmony_ci 16138c2ecf20Sopenharmony_ci/******************************************************************************** 16148c2ecf20Sopenharmony_ci** Define Dummy Value 16158c2ecf20Sopenharmony_ci********************************************************************************/ 16168c2ecf20Sopenharmony_ci#define HC_DUMMY 0xCCCCCCCC 16178c2ecf20Sopenharmony_ci/******************************************************************************** 16188c2ecf20Sopenharmony_ci** Define for DMA use 16198c2ecf20Sopenharmony_ci********************************************************************************/ 16208c2ecf20Sopenharmony_ci#define HALCYON_HEADER2 0XF210F110 16218c2ecf20Sopenharmony_ci#define HALCYON_FIRECMD 0XEE100000 16228c2ecf20Sopenharmony_ci#define HALCYON_FIREMASK 0XFFF00000 16238c2ecf20Sopenharmony_ci#define HALCYON_CMDB 0XEC000000 16248c2ecf20Sopenharmony_ci#define HALCYON_CMDBMASK 0XFFFE0000 16258c2ecf20Sopenharmony_ci#define HALCYON_SUB_ADDR0 0X00000000 16268c2ecf20Sopenharmony_ci#define HALCYON_HEADER1MASK 0XFFFFFC00 16278c2ecf20Sopenharmony_ci#define HALCYON_HEADER1 0XF0000000 16288c2ecf20Sopenharmony_ci#define HC_SubA_HAGPBstL 0x0060 16298c2ecf20Sopenharmony_ci#define HC_SubA_HAGPBendL 0x0061 16308c2ecf20Sopenharmony_ci#define HC_SubA_HAGPCMNT 0x0062 16318c2ecf20Sopenharmony_ci#define HC_SubA_HAGPBpL 0x0063 16328c2ecf20Sopenharmony_ci#define HC_SubA_HAGPBpH 0x0064 16338c2ecf20Sopenharmony_ci#define HC_HAGPCMNT_MASK 0x00800000 16348c2ecf20Sopenharmony_ci#define HC_HCmdErrClr_MASK 0x00400000 16358c2ecf20Sopenharmony_ci#define HC_HAGPBendH_MASK 0x0000ff00 16368c2ecf20Sopenharmony_ci#define HC_HAGPBstH_MASK 0x000000ff 16378c2ecf20Sopenharmony_ci#define HC_HAGPBendH_SHIFT 8 16388c2ecf20Sopenharmony_ci#define HC_HAGPBstH_SHIFT 0 16398c2ecf20Sopenharmony_ci#define HC_HAGPBpL_MASK 0x00fffffc 16408c2ecf20Sopenharmony_ci#define HC_HAGPBpID_MASK 0x00000003 16418c2ecf20Sopenharmony_ci#define HC_HAGPBpID_PAUSE 0x00000000 16428c2ecf20Sopenharmony_ci#define HC_HAGPBpID_JUMP 0x00000001 16438c2ecf20Sopenharmony_ci#define HC_HAGPBpID_STOP 0x00000002 16448c2ecf20Sopenharmony_ci#define HC_HAGPBpH_MASK 0x00ffffff 16458c2ecf20Sopenharmony_ci 16468c2ecf20Sopenharmony_ci#define VIA_VIDEO_HEADER5 0xFE040000 16478c2ecf20Sopenharmony_ci#define VIA_VIDEO_HEADER6 0xFE050000 16488c2ecf20Sopenharmony_ci#define VIA_VIDEO_HEADER7 0xFE060000 16498c2ecf20Sopenharmony_ci#define VIA_VIDEOMASK 0xFFFF0000 16508c2ecf20Sopenharmony_ci#endif 1651