0001
0002
0003
0004
0005
0006
0007
0008 #ifndef _PND2_REGS_H
0009 #define _PND2_REGS_H
0010
0011 struct b_cr_touud_lo_pci {
0012 u32 lock : 1;
0013 u32 reserved_1 : 19;
0014 u32 touud : 12;
0015 };
0016
0017 #define b_cr_touud_lo_pci_port 0x4c
0018 #define b_cr_touud_lo_pci_offset 0xa8
0019 #define b_cr_touud_lo_pci_r_opcode 0x04
0020
0021 struct b_cr_touud_hi_pci {
0022 u32 touud : 7;
0023 u32 reserved_0 : 25;
0024 };
0025
0026 #define b_cr_touud_hi_pci_port 0x4c
0027 #define b_cr_touud_hi_pci_offset 0xac
0028 #define b_cr_touud_hi_pci_r_opcode 0x04
0029
0030 struct b_cr_tolud_pci {
0031 u32 lock : 1;
0032 u32 reserved_0 : 19;
0033 u32 tolud : 12;
0034 };
0035
0036 #define b_cr_tolud_pci_port 0x4c
0037 #define b_cr_tolud_pci_offset 0xbc
0038 #define b_cr_tolud_pci_r_opcode 0x04
0039
0040 struct b_cr_mchbar_lo_pci {
0041 u32 enable : 1;
0042 u32 pad_3_1 : 3;
0043 u32 pad_14_4: 11;
0044 u32 base: 17;
0045 };
0046
0047 struct b_cr_mchbar_hi_pci {
0048 u32 base : 7;
0049 u32 pad_31_7 : 25;
0050 };
0051
0052
0053 struct b_cr_slice_channel_hash {
0054 u64 slice_1_disabled : 1;
0055 u64 hvm_mode : 1;
0056 u64 interleave_mode : 2;
0057 u64 slice_0_mem_disabled : 1;
0058 u64 reserved_0 : 1;
0059 u64 slice_hash_mask : 14;
0060 u64 reserved_1 : 11;
0061 u64 enable_pmi_dual_data_mode : 1;
0062 u64 ch_1_disabled : 1;
0063 u64 reserved_2 : 1;
0064 u64 sym_slice0_channel_enabled : 2;
0065 u64 sym_slice1_channel_enabled : 2;
0066 u64 ch_hash_mask : 14;
0067 u64 reserved_3 : 11;
0068 u64 lock : 1;
0069 };
0070
0071 #define b_cr_slice_channel_hash_port 0x4c
0072 #define b_cr_slice_channel_hash_offset 0x4c58
0073 #define b_cr_slice_channel_hash_r_opcode 0x06
0074
0075 struct b_cr_mot_out_base_mchbar {
0076 u32 reserved_0 : 14;
0077 u32 mot_out_base : 15;
0078 u32 reserved_1 : 1;
0079 u32 tr_en : 1;
0080 u32 imr_en : 1;
0081 };
0082
0083 #define b_cr_mot_out_base_mchbar_port 0x4c
0084 #define b_cr_mot_out_base_mchbar_offset 0x6af0
0085 #define b_cr_mot_out_base_mchbar_r_opcode 0x00
0086
0087 struct b_cr_mot_out_mask_mchbar {
0088 u32 reserved_0 : 14;
0089 u32 mot_out_mask : 15;
0090 u32 reserved_1 : 1;
0091 u32 ia_iwb_en : 1;
0092 u32 gt_iwb_en : 1;
0093 };
0094
0095 #define b_cr_mot_out_mask_mchbar_port 0x4c
0096 #define b_cr_mot_out_mask_mchbar_offset 0x6af4
0097 #define b_cr_mot_out_mask_mchbar_r_opcode 0x00
0098
0099 struct b_cr_asym_mem_region0_mchbar {
0100 u32 pad : 4;
0101 u32 slice0_asym_base : 11;
0102 u32 pad_18_15 : 4;
0103 u32 slice0_asym_limit : 11;
0104 u32 slice0_asym_channel_select : 1;
0105 u32 slice0_asym_enable : 1;
0106 };
0107
0108 #define b_cr_asym_mem_region0_mchbar_port 0x4c
0109 #define b_cr_asym_mem_region0_mchbar_offset 0x6e40
0110 #define b_cr_asym_mem_region0_mchbar_r_opcode 0x00
0111
0112 struct b_cr_asym_mem_region1_mchbar {
0113 u32 pad : 4;
0114 u32 slice1_asym_base : 11;
0115 u32 pad_18_15 : 4;
0116 u32 slice1_asym_limit : 11;
0117 u32 slice1_asym_channel_select : 1;
0118 u32 slice1_asym_enable : 1;
0119 };
0120
0121 #define b_cr_asym_mem_region1_mchbar_port 0x4c
0122 #define b_cr_asym_mem_region1_mchbar_offset 0x6e44
0123 #define b_cr_asym_mem_region1_mchbar_r_opcode 0x00
0124
0125
0126 struct b_cr_asym_mem_region_denverton {
0127 u32 pad : 4;
0128 u32 slice_asym_base : 8;
0129 u32 pad_19_12 : 8;
0130 u32 slice_asym_limit : 8;
0131 u32 pad_28_30 : 3;
0132 u32 slice_asym_enable : 1;
0133 };
0134
0135 struct b_cr_asym_2way_mem_region_mchbar {
0136 u32 pad : 2;
0137 u32 asym_2way_intlv_mode : 2;
0138 u32 asym_2way_base : 11;
0139 u32 pad_16_15 : 2;
0140 u32 asym_2way_limit : 11;
0141 u32 pad_30_28 : 3;
0142 u32 asym_2way_interleave_enable : 1;
0143 };
0144
0145 #define b_cr_asym_2way_mem_region_mchbar_port 0x4c
0146 #define b_cr_asym_2way_mem_region_mchbar_offset 0x6e50
0147 #define b_cr_asym_2way_mem_region_mchbar_r_opcode 0x00
0148
0149
0150
0151 struct d_cr_drp0 {
0152 u32 rken0 : 1;
0153 u32 rken1 : 1;
0154 u32 ddmen : 1;
0155 u32 rsvd3 : 1;
0156 u32 dwid : 2;
0157 u32 dden : 3;
0158 u32 rsvd13_9 : 5;
0159 u32 rsien : 1;
0160 u32 bahen : 1;
0161 u32 rsvd18_16 : 3;
0162 u32 caswizzle : 2;
0163 u32 eccen : 1;
0164 u32 dramtype : 3;
0165 u32 blmode : 3;
0166 u32 addrdec : 2;
0167 u32 dramdevice_pr : 2;
0168 };
0169
0170 #define d_cr_drp0_offset 0x1400
0171 #define d_cr_drp0_r_opcode 0x00
0172
0173
0174
0175 struct d_cr_dsch {
0176 u32 ch0en : 1;
0177 u32 ch1en : 1;
0178 u32 ddr4en : 1;
0179 u32 coldwake : 1;
0180 u32 newbypdis : 1;
0181 u32 chan_width : 1;
0182 u32 rsvd6_6 : 1;
0183 u32 ooodis : 1;
0184 u32 rsvd18_8 : 11;
0185 u32 ic : 1;
0186 u32 rsvd31_20 : 12;
0187 };
0188
0189 #define d_cr_dsch_port 0x16
0190 #define d_cr_dsch_offset 0x0
0191 #define d_cr_dsch_r_opcode 0x0
0192
0193 struct d_cr_ecc_ctrl {
0194 u32 eccen : 1;
0195 u32 rsvd31_1 : 31;
0196 };
0197
0198 #define d_cr_ecc_ctrl_offset 0x180
0199 #define d_cr_ecc_ctrl_r_opcode 0x0
0200
0201 struct d_cr_drp {
0202 u32 rken0 : 1;
0203 u32 rken1 : 1;
0204 u32 rken2 : 1;
0205 u32 rken3 : 1;
0206 u32 dimmdwid0 : 2;
0207 u32 dimmdden0 : 2;
0208 u32 dimmdwid1 : 2;
0209 u32 dimmdden1 : 2;
0210 u32 rsvd15_12 : 4;
0211 u32 dimmflip : 1;
0212 u32 rsvd31_17 : 15;
0213 };
0214
0215 #define d_cr_drp_offset 0x158
0216 #define d_cr_drp_r_opcode 0x0
0217
0218 struct d_cr_dmap {
0219 u32 ba0 : 5;
0220 u32 ba1 : 5;
0221 u32 bg0 : 5;
0222 u32 bg1 : 5;
0223 u32 rs0 : 5;
0224 u32 rs1 : 5;
0225 u32 rsvd : 2;
0226 };
0227
0228 #define d_cr_dmap_offset 0x174
0229 #define d_cr_dmap_r_opcode 0x0
0230
0231 struct d_cr_dmap1 {
0232 u32 ca11 : 6;
0233 u32 bxor : 1;
0234 u32 rsvd : 25;
0235 };
0236
0237 #define d_cr_dmap1_offset 0xb4
0238 #define d_cr_dmap1_r_opcode 0x0
0239
0240 struct d_cr_dmap2 {
0241 u32 row0 : 5;
0242 u32 row1 : 5;
0243 u32 row2 : 5;
0244 u32 row3 : 5;
0245 u32 row4 : 5;
0246 u32 row5 : 5;
0247 u32 rsvd : 2;
0248 };
0249
0250 #define d_cr_dmap2_offset 0x148
0251 #define d_cr_dmap2_r_opcode 0x0
0252
0253 struct d_cr_dmap3 {
0254 u32 row6 : 5;
0255 u32 row7 : 5;
0256 u32 row8 : 5;
0257 u32 row9 : 5;
0258 u32 row10 : 5;
0259 u32 row11 : 5;
0260 u32 rsvd : 2;
0261 };
0262
0263 #define d_cr_dmap3_offset 0x14c
0264 #define d_cr_dmap3_r_opcode 0x0
0265
0266 struct d_cr_dmap4 {
0267 u32 row12 : 5;
0268 u32 row13 : 5;
0269 u32 row14 : 5;
0270 u32 row15 : 5;
0271 u32 row16 : 5;
0272 u32 row17 : 5;
0273 u32 rsvd : 2;
0274 };
0275
0276 #define d_cr_dmap4_offset 0x150
0277 #define d_cr_dmap4_r_opcode 0x0
0278
0279 struct d_cr_dmap5 {
0280 u32 ca3 : 4;
0281 u32 ca4 : 4;
0282 u32 ca5 : 4;
0283 u32 ca6 : 4;
0284 u32 ca7 : 4;
0285 u32 ca8 : 4;
0286 u32 ca9 : 4;
0287 u32 rsvd : 4;
0288 };
0289
0290 #define d_cr_dmap5_offset 0x154
0291 #define d_cr_dmap5_r_opcode 0x0
0292
0293 #endif