]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Families/IONDRVSupport/IONDRVLibraries.cpp
xnu-124.7.tar.gz
[apple/xnu.git] / iokit / Families / IONDRVSupport / IONDRVLibraries.cpp
index 565126fefbda3c69de100b3c6a8d24e19b5f0802..24ab2ee5cd35d7c38a57ac5c4825daac1e83e23e 100644 (file)
@@ -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;