Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
0002 /*
0003  * Copyright (c) 2003-2019, Intel Corporation. All rights reserved.
0004  * Intel Management Engine Interface (Intel MEI) Linux driver
0005  */
0006 #ifndef _MEI_HW_MEI_REGS_H_
0007 #define _MEI_HW_MEI_REGS_H_
0008 
0009 /*
0010  * MEI device IDs
0011  */
0012 #define MEI_DEV_ID_82946GZ    0x2974  /* 82946GZ/GL */
0013 #define MEI_DEV_ID_82G35      0x2984  /* 82G35 Express */
0014 #define MEI_DEV_ID_82Q965     0x2994  /* 82Q963/Q965 */
0015 #define MEI_DEV_ID_82G965     0x29A4  /* 82P965/G965 */
0016 
0017 #define MEI_DEV_ID_82GM965    0x2A04  /* Mobile PM965/GM965 */
0018 #define MEI_DEV_ID_82GME965   0x2A14  /* Mobile GME965/GLE960 */
0019 
0020 #define MEI_DEV_ID_ICH9_82Q35 0x29B4  /* 82Q35 Express */
0021 #define MEI_DEV_ID_ICH9_82G33 0x29C4  /* 82G33/G31/P35/P31 Express */
0022 #define MEI_DEV_ID_ICH9_82Q33 0x29D4  /* 82Q33 Express */
0023 #define MEI_DEV_ID_ICH9_82X38 0x29E4  /* 82X38/X48 Express */
0024 #define MEI_DEV_ID_ICH9_3200  0x29F4  /* 3200/3210 Server */
0025 
0026 #define MEI_DEV_ID_ICH9_6     0x28B4  /* Bearlake */
0027 #define MEI_DEV_ID_ICH9_7     0x28C4  /* Bearlake */
0028 #define MEI_DEV_ID_ICH9_8     0x28D4  /* Bearlake */
0029 #define MEI_DEV_ID_ICH9_9     0x28E4  /* Bearlake */
0030 #define MEI_DEV_ID_ICH9_10    0x28F4  /* Bearlake */
0031 
0032 #define MEI_DEV_ID_ICH9M_1    0x2A44  /* Cantiga */
0033 #define MEI_DEV_ID_ICH9M_2    0x2A54  /* Cantiga */
0034 #define MEI_DEV_ID_ICH9M_3    0x2A64  /* Cantiga */
0035 #define MEI_DEV_ID_ICH9M_4    0x2A74  /* Cantiga */
0036 
0037 #define MEI_DEV_ID_ICH10_1    0x2E04  /* Eaglelake */
0038 #define MEI_DEV_ID_ICH10_2    0x2E14  /* Eaglelake */
0039 #define MEI_DEV_ID_ICH10_3    0x2E24  /* Eaglelake */
0040 #define MEI_DEV_ID_ICH10_4    0x2E34  /* Eaglelake */
0041 
0042 #define MEI_DEV_ID_IBXPK_1    0x3B64  /* Calpella */
0043 #define MEI_DEV_ID_IBXPK_2    0x3B65  /* Calpella */
0044 
0045 #define MEI_DEV_ID_CPT_1      0x1C3A  /* Couger Point */
0046 #define MEI_DEV_ID_PBG_1      0x1D3A  /* C600/X79 Patsburg */
0047 
0048 #define MEI_DEV_ID_PPT_1      0x1E3A  /* Panther Point */
0049 #define MEI_DEV_ID_PPT_2      0x1CBA  /* Panther Point */
0050 #define MEI_DEV_ID_PPT_3      0x1DBA  /* Panther Point */
0051 
0052 #define MEI_DEV_ID_LPT_H      0x8C3A  /* Lynx Point H */
0053 #define MEI_DEV_ID_LPT_W      0x8D3A  /* Lynx Point - Wellsburg */
0054 #define MEI_DEV_ID_LPT_LP     0x9C3A  /* Lynx Point LP */
0055 #define MEI_DEV_ID_LPT_HR     0x8CBA  /* Lynx Point H Refresh */
0056 
0057 #define MEI_DEV_ID_WPT_LP     0x9CBA  /* Wildcat Point LP */
0058 #define MEI_DEV_ID_WPT_LP_2   0x9CBB  /* Wildcat Point LP 2 */
0059 
0060 #define MEI_DEV_ID_SPT        0x9D3A  /* Sunrise Point */
0061 #define MEI_DEV_ID_SPT_2      0x9D3B  /* Sunrise Point 2 */
0062 #define MEI_DEV_ID_SPT_3      0x9D3E  /* Sunrise Point 3 (iToutch) */
0063 #define MEI_DEV_ID_SPT_H      0xA13A  /* Sunrise Point H */
0064 #define MEI_DEV_ID_SPT_H_2    0xA13B  /* Sunrise Point H 2 */
0065 
0066 #define MEI_DEV_ID_LBG        0xA1BA  /* Lewisburg (SPT) */
0067 
0068 #define MEI_DEV_ID_BXT_M      0x1A9A  /* Broxton M */
0069 #define MEI_DEV_ID_APL_I      0x5A9A  /* Apollo Lake I */
0070 
0071 #define MEI_DEV_ID_DNV_IE     0x19E5  /* Denverton IE */
0072 
0073 #define MEI_DEV_ID_GLK        0x319A  /* Gemini Lake */
0074 
0075 #define MEI_DEV_ID_KBP        0xA2BA  /* Kaby Point */
0076 #define MEI_DEV_ID_KBP_2      0xA2BB  /* Kaby Point 2 */
0077 #define MEI_DEV_ID_KBP_3      0xA2BE  /* Kaby Point 3 (iTouch) */
0078 
0079 #define MEI_DEV_ID_CNP_LP     0x9DE0  /* Cannon Point LP */
0080 #define MEI_DEV_ID_CNP_LP_3   0x9DE4  /* Cannon Point LP 3 (iTouch) */
0081 #define MEI_DEV_ID_CNP_H      0xA360  /* Cannon Point H */
0082 #define MEI_DEV_ID_CNP_H_3    0xA364  /* Cannon Point H 3 (iTouch) */
0083 
0084 #define MEI_DEV_ID_CMP_LP     0x02e0  /* Comet Point LP */
0085 #define MEI_DEV_ID_CMP_LP_3   0x02e4  /* Comet Point LP 3 (iTouch) */
0086 
0087 #define MEI_DEV_ID_CMP_V      0xA3BA  /* Comet Point Lake V */
0088 
0089 #define MEI_DEV_ID_CMP_H      0x06e0  /* Comet Lake H */
0090 #define MEI_DEV_ID_CMP_H_3    0x06e4  /* Comet Lake H 3 (iTouch) */
0091 
0092 #define MEI_DEV_ID_CDF        0x18D3  /* Cedar Fork */
0093 
0094 #define MEI_DEV_ID_ICP_LP     0x34E0  /* Ice Lake Point LP */
0095 #define MEI_DEV_ID_ICP_N      0x38E0  /* Ice Lake Point N */
0096 
0097 #define MEI_DEV_ID_JSP_N      0x4DE0  /* Jasper Lake Point N */
0098 
0099 #define MEI_DEV_ID_TGP_LP     0xA0E0  /* Tiger Lake Point LP */
0100 #define MEI_DEV_ID_TGP_H      0x43E0  /* Tiger Lake Point H */
0101 
0102 #define MEI_DEV_ID_MCC        0x4B70  /* Mule Creek Canyon (EHL) */
0103 #define MEI_DEV_ID_MCC_4      0x4B75  /* Mule Creek Canyon 4 (EHL) */
0104 
0105 #define MEI_DEV_ID_EBG        0x1BE0  /* Emmitsburg WS */
0106 
0107 #define MEI_DEV_ID_ADP_S      0x7AE8  /* Alder Lake Point S */
0108 #define MEI_DEV_ID_ADP_LP     0x7A60  /* Alder Lake Point LP */
0109 #define MEI_DEV_ID_ADP_P      0x51E0  /* Alder Lake Point P */
0110 #define MEI_DEV_ID_ADP_N      0x54E0  /* Alder Lake Point N */
0111 
0112 #define MEI_DEV_ID_RPL_S      0x7A68  /* Raptor Lake Point S */
0113 
0114 /*
0115  * MEI HW Section
0116  */
0117 
0118 /* Host Firmware Status Registers in PCI Config Space */
0119 #define PCI_CFG_HFS_1         0x40
0120 #  define PCI_CFG_HFS_1_D0I3_MSK     0x80000000
0121 #  define PCI_CFG_HFS_1_OPMODE_MSK 0xf0000 /* OP MODE Mask: SPS <= 4.0 */
0122 #  define PCI_CFG_HFS_1_OPMODE_SPS 0xf0000 /* SPS SKU : SPS <= 4.0 */
0123 #define PCI_CFG_HFS_2         0x48
0124 #define PCI_CFG_HFS_3         0x60
0125 #  define PCI_CFG_HFS_3_FW_SKU_MSK   0x00000070
0126 #  define PCI_CFG_HFS_3_FW_SKU_IGN   0x00000000
0127 #  define PCI_CFG_HFS_3_FW_SKU_SPS   0x00000060
0128 #define PCI_CFG_HFS_4         0x64
0129 #define PCI_CFG_HFS_5         0x68
0130 #define PCI_CFG_HFS_6         0x6C
0131 
0132 /* MEI registers */
0133 /* H_CB_WW - Host Circular Buffer (CB) Write Window register */
0134 #define H_CB_WW    0
0135 /* H_CSR - Host Control Status register */
0136 #define H_CSR      4
0137 /* ME_CB_RW - ME Circular Buffer Read Window register (read only) */
0138 #define ME_CB_RW   8
0139 /* ME_CSR_HA - ME Control Status Host Access register (read only) */
0140 #define ME_CSR_HA  0xC
0141 /* H_HGC_CSR - PGI register */
0142 #define H_HPG_CSR  0x10
0143 /* H_D0I3C - D0I3 Control  */
0144 #define H_D0I3C    0x800
0145 
0146 /* register bits of H_CSR (Host Control Status register) */
0147 /* Host Circular Buffer Depth - maximum number of 32-bit entries in CB */
0148 #define H_CBD             0xFF000000
0149 /* Host Circular Buffer Write Pointer */
0150 #define H_CBWP            0x00FF0000
0151 /* Host Circular Buffer Read Pointer */
0152 #define H_CBRP            0x0000FF00
0153 /* Host Reset */
0154 #define H_RST             0x00000010
0155 /* Host Ready */
0156 #define H_RDY             0x00000008
0157 /* Host Interrupt Generate */
0158 #define H_IG              0x00000004
0159 /* Host Interrupt Status */
0160 #define H_IS              0x00000002
0161 /* Host Interrupt Enable */
0162 #define H_IE              0x00000001
0163 /* Host D0I3 Interrupt Enable */
0164 #define H_D0I3C_IE        0x00000020
0165 /* Host D0I3 Interrupt Status */
0166 #define H_D0I3C_IS        0x00000040
0167 
0168 /* H_CSR masks */
0169 #define H_CSR_IE_MASK     (H_IE | H_D0I3C_IE)
0170 #define H_CSR_IS_MASK     (H_IS | H_D0I3C_IS)
0171 
0172 /* register bits of ME_CSR_HA (ME Control Status Host Access register) */
0173 /* ME CB (Circular Buffer) Depth HRA (Host Read Access) - host read only
0174 access to ME_CBD */
0175 #define ME_CBD_HRA        0xFF000000
0176 /* ME CB Write Pointer HRA - host read only access to ME_CBWP */
0177 #define ME_CBWP_HRA       0x00FF0000
0178 /* ME CB Read Pointer HRA - host read only access to ME_CBRP */
0179 #define ME_CBRP_HRA       0x0000FF00
0180 /* ME Power Gate Isolation Capability HRA  - host ready only access */
0181 #define ME_PGIC_HRA       0x00000040
0182 /* ME Reset HRA - host read only access to ME_RST */
0183 #define ME_RST_HRA        0x00000010
0184 /* ME Ready HRA - host read only access to ME_RDY */
0185 #define ME_RDY_HRA        0x00000008
0186 /* ME Interrupt Generate HRA - host read only access to ME_IG */
0187 #define ME_IG_HRA         0x00000004
0188 /* ME Interrupt Status HRA - host read only access to ME_IS */
0189 #define ME_IS_HRA         0x00000002
0190 /* ME Interrupt Enable HRA - host read only access to ME_IE */
0191 #define ME_IE_HRA         0x00000001
0192 /* TRC control shadow register */
0193 #define ME_TRC            0x00000030
0194 
0195 /* H_HPG_CSR register bits */
0196 #define H_HPG_CSR_PGIHEXR 0x00000001
0197 #define H_HPG_CSR_PGI     0x00000002
0198 
0199 /* H_D0I3C register bits */
0200 #define H_D0I3C_CIP      0x00000001
0201 #define H_D0I3C_IR       0x00000002
0202 #define H_D0I3C_I3       0x00000004
0203 #define H_D0I3C_RR       0x00000008
0204 
0205 #endif /* _MEI_HW_MEI_REGS_H_ */