Lines Matching +full:0 +full:xfffffe00

20 #define PEM_CFG_WR 0x28
21 #define PEM_CFG_RD 0x30
44 if (devfn != 0 || where >= 2048) { in thunder_pem_bridge_read()
45 *val = ~0; in thunder_pem_bridge_read()
64 case 0x40: in thunder_pem_bridge_read()
65 read_val &= 0xffff00ff; in thunder_pem_bridge_read()
66 read_val |= 0x00007000; /* Skip MSI CAP */ in thunder_pem_bridge_read()
68 case 0x70: /* Express Cap */ in thunder_pem_bridge_read()
71 * reads as 0, else leave it alone. in thunder_pem_bridge_read()
73 if (!(read_val & (0x1f << 25))) in thunder_pem_bridge_read()
76 case 0xb0: /* MSI-X Cap */ in thunder_pem_bridge_read()
78 read_val &= 0xc00000ff; in thunder_pem_bridge_read()
80 * If Express Cap(0x70) raw PME vector reads as 0 we are on in thunder_pem_bridge_read()
84 writeq(0x70, pem_pci->pem_reg_base + PEM_CFG_RD); in thunder_pem_bridge_read()
87 if (!(tmp_val & (0x1f << 25))) in thunder_pem_bridge_read()
88 read_val |= 0x0003bc00; in thunder_pem_bridge_read()
90 read_val |= 0x0001bc00; in thunder_pem_bridge_read()
92 case 0xb4: in thunder_pem_bridge_read()
93 /* Table offset=0, BIR=0 */ in thunder_pem_bridge_read()
94 read_val = 0x00000000; in thunder_pem_bridge_read()
96 case 0xb8: in thunder_pem_bridge_read()
97 /* BPA offset=0xf0000, BIR=0 */ in thunder_pem_bridge_read()
98 read_val = 0x000f0000; in thunder_pem_bridge_read()
100 case 0xbc: in thunder_pem_bridge_read()
102 read_val = 0x00010014; in thunder_pem_bridge_read()
104 case 0xc0: in thunder_pem_bridge_read()
106 read_val = 0x00000000; in thunder_pem_bridge_read()
108 case 0xc4: in thunder_pem_bridge_read()
109 /* Entry BEI=0, PP=0x00, SP=0xff, ES=3 */ in thunder_pem_bridge_read()
110 read_val = 0x80ff0003; in thunder_pem_bridge_read()
112 case 0xc8: in thunder_pem_bridge_read()
113 read_val = pem_pci->ea_entry[0]; in thunder_pem_bridge_read()
115 case 0xcc: in thunder_pem_bridge_read()
118 case 0xd0: in thunder_pem_bridge_read()
127 read_val &= 0xff; in thunder_pem_bridge_read()
130 read_val &= 0xffff; in thunder_pem_bridge_read()
165 u32 w1c_bits = 0; in thunder_pem_bridge_w1c_bits()
168 case 0x04: /* Command/Status */ in thunder_pem_bridge_w1c_bits()
169 case 0x1c: /* Base and I/O Limit/Secondary Status */ in thunder_pem_bridge_w1c_bits()
170 w1c_bits = 0xff000000; in thunder_pem_bridge_w1c_bits()
172 case 0x44: /* Power Management Control and Status */ in thunder_pem_bridge_w1c_bits()
173 w1c_bits = 0xfffffe00; in thunder_pem_bridge_w1c_bits()
175 case 0x78: /* Device Control/Device Status */ in thunder_pem_bridge_w1c_bits()
176 case 0x80: /* Link Control/Link Status */ in thunder_pem_bridge_w1c_bits()
177 case 0x88: /* Slot Control/Slot Status */ in thunder_pem_bridge_w1c_bits()
178 case 0x90: /* Root Status */ in thunder_pem_bridge_w1c_bits()
179 case 0xa0: /* Link Control 2 Registers/Link Status 2 */ in thunder_pem_bridge_w1c_bits()
180 w1c_bits = 0xffff0000; in thunder_pem_bridge_w1c_bits()
182 case 0x104: /* Uncorrectable Error Status */ in thunder_pem_bridge_w1c_bits()
183 case 0x110: /* Correctable Error Status */ in thunder_pem_bridge_w1c_bits()
184 case 0x130: /* Error Status */ in thunder_pem_bridge_w1c_bits()
185 case 0x160: /* Link Control 4 */ in thunder_pem_bridge_w1c_bits()
186 w1c_bits = 0xffffffff; in thunder_pem_bridge_w1c_bits()
200 case 0x1c: /* I/O Base / I/O Limit, Secondary Status */ in thunder_pem_bridge_w1_bits()
202 w1_bits = 0x0101; in thunder_pem_bridge_w1_bits()
204 case 0x24: /* Prefetchable Memory Base / Prefetchable Memory Limit */ in thunder_pem_bridge_w1_bits()
206 w1_bits = 0x00010001; in thunder_pem_bridge_w1_bits()
209 w1_bits = 0; in thunder_pem_bridge_w1_bits()
222 u32 mask = 0; in thunder_pem_bridge_write()
225 if (devfn != 0 || where >= 2048) in thunder_pem_bridge_write()
239 mask = ~(0xff << (8 * (where & 3))); in thunder_pem_bridge_write()
241 val = (val & 0xff) << (8 * (where & 3)); in thunder_pem_bridge_write()
248 mask = ~(0xffff << (8 * (where & 3))); in thunder_pem_bridge_write()
250 val = (val & 0xffff) << (8 * (where & 3)); in thunder_pem_bridge_write()
317 pem_pci->pem_reg_base = devm_ioremap(dev, res_pem->start, 0x10000); in thunder_pem_init()
327 bar4_start = res_pem->start + 0xf00000; in thunder_pem_init()
328 pem_pci->ea_entry[0] = lower_32_bits(bar4_start) | 2; in thunder_pem_init()
333 return 0; in thunder_pem_init()
338 #define PEM_RES_BASE 0x87e0c0000000ULL
372 node = 0; in thunder_pem_legacy_fw()