| 1228 | } |
| 1229 | |
| 1230 | BOOLEAN CmpAdr (UINT8 *dsdt, UINT32 j, UINT32 PciAdr) |
| 1231 | { |
| 1232 | // Name (_ADR, 0x001f0001) |
| 1233 | return (BOOLEAN) |
| 1234 | ((dsdt[j + 4] == 0x08) && |
| 1235 | (dsdt[j + 5] == 0x5F) && |
| 1236 | (dsdt[j + 6] == 0x41) && |
| 1237 | (dsdt[j + 7] == 0x44) && |
| 1238 | (dsdt[j + 8] == 0x52) && |
| 1239 | (//-------------------- |
| 1240 | ((dsdt[j + 9] == 0x0C) && |
| 1241 | (dsdt[j + 10] == ((PciAdr & 0x000000ff) >> 0)) && |
| 1242 | (dsdt[j + 11] == ((PciAdr & 0x0000ff00) >> 8)) && |
| 1243 | (dsdt[j + 12] == ((PciAdr & 0x00ff0000) >> 16)) && |
| 1244 | (dsdt[j + 13] == ((PciAdr & 0xff000000) >> 24)) |
| 1245 | ) || |
| 1246 | //-------------------- |
| 1247 | ((dsdt[j + 9] == 0x0B) && |
| 1248 | (dsdt[j + 10] == ((PciAdr & 0x000000ff) >> 0)) && |
| 1249 | (dsdt[j + 11] == ((PciAdr & 0x0000ff00) >> 8)) && |
| 1250 | (PciAdr < 0x10000) |
| 1251 | ) || |
| 1252 | //----------------------- |
| 1253 | ((dsdt[j + 9] == 0x0A) && |
| 1254 | (dsdt[j + 10] == (PciAdr & 0x000000ff)) && |
| 1255 | (PciAdr < 0x100) |
| 1256 | ) || |
| 1257 | //----------------- |
| 1258 | ((dsdt[j + 9] == 0x00) && (PciAdr == 0)) || |
| 1259 | //------------------ |
| 1260 | ((dsdt[j + 9] == 0x01) && (PciAdr == 1)) |
| 1261 | ) |
| 1262 | ); |
| 1263 | } |
| 1264 | |
| 1265 | BOOLEAN CmpPNP (UINT8 *dsdt, UINT32 j, UINT16 PNP) |
| 1266 | { |
no outgoing calls
no test coverage detected