MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / CmpAdr

Function CmpAdr

rEFIt_UEFI/Platform/FixBiosDsdt.cpp:1230–1263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1228}
1229
1230BOOLEAN 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
1265BOOLEAN CmpPNP (UINT8 *dsdt, UINT32 j, UINT16 PNP)
1266{

Callers 15

FixHPETFunction · 0.85
FIXLPCBFunction · 0.85
FIXDisplayFunction · 0.85
AddHDMIFunction · 0.85
FIXNetworkFunction · 0.85
FIXAirportFunction · 0.85
FIXSBUSFunction · 0.85
AddIMEIFunction · 0.85
FIXFirewireFunction · 0.85
AddHDEFFunction · 0.85
FIXUSBFunction · 0.85
FIXIDEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected