X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/150bd0745008d57c273e65929515dd6bbe568d83..e7c99d92bf4e4d1189c904195ed317951f9a35ad:/iokit/Families/IONDRVSupport/IONDRVLibraries.cpp diff --git a/iokit/Families/IONDRVSupport/IONDRVLibraries.cpp b/iokit/Families/IONDRVSupport/IONDRVLibraries.cpp index 565126fef..24ab2ee5c 100644 --- a/iokit/Families/IONDRVSupport/IONDRVLibraries.cpp +++ b/iokit/Families/IONDRVSupport/IONDRVLibraries.cpp @@ -655,7 +655,8 @@ _eRegistryCStrEntryLookup( const RegEntryID * parentEntry, char * buf; char * cvtPath; char c; -#define kDTRoot "Devices:device-tree:" +#define kDTRoot "Devices:device-tree:" +#define kMacIORoot "Devices:device-tree:pci:mac-io:" if( parentEntry) { REG_ENTRY_TO_OBJ( parentEntry, regEntry) @@ -669,6 +670,10 @@ _eRegistryCStrEntryLookup( const RegEntryID * parentEntry, cvtPath = buf; if( ':' == path[0]) path++; + else if( 0 == strncmp( path, kMacIORoot, strlen( kMacIORoot ))) { + path += strlen( kMacIORoot ) - 7; + regEntry = 0; + } else if( 0 == strncmp( path, kDTRoot, strlen( kDTRoot ))) { path += strlen( kDTRoot ) - 1; regEntry = 0;