andyvand
11-26-2010, 08:08 PM
This is an example of using the DeviceMergeNub for injection.
The stock plist injects into an SMBus controller.
In the case of the example it uses
-Vendor ID: 0x8086 (Intel) with vendor-id (<86800000>)
-Device ID: 0x27da with device-id (<da270000>)
And it injects the following values through IOProviderMergeProperties:
-device-id: set to 0x303a (<3a300000>)
-name: set to pci8086,303a
-IOName: set to pci8086,303a
It is possible to inject for any device this way.
It can even match for entire classes if class-code is used instead of vendor-id and device-id.
IORegistryExplorer is handy for looking up the exact device entries.
You need to get the Apple plist editor for editing the Info.plist
Download example:
http://rapidshare.com/files/433312133/DeviceMergeNub_inject.zip
Download plist editor:
http://rapidshare.com/files/433312297/Property_List_Editor.zip
Download IORegistryExplorer:
http://rapidshare.com/files/430687772/IORegistryExplorer.zip
Sources for DeviceMergeNub:
http://rapidshare.com/files/432918115/DeviceMergeNub.zip
Sources and builds for Tiger, Leopard and Snow Leopard:
http://rapidshare.com/files/433496862/DeviceMergeNub_all_os.zip
The stock plist injects into an SMBus controller.
In the case of the example it uses
-Vendor ID: 0x8086 (Intel) with vendor-id (<86800000>)
-Device ID: 0x27da with device-id (<da270000>)
And it injects the following values through IOProviderMergeProperties:
-device-id: set to 0x303a (<3a300000>)
-name: set to pci8086,303a
-IOName: set to pci8086,303a
It is possible to inject for any device this way.
It can even match for entire classes if class-code is used instead of vendor-id and device-id.
IORegistryExplorer is handy for looking up the exact device entries.
You need to get the Apple plist editor for editing the Info.plist
Download example:
http://rapidshare.com/files/433312133/DeviceMergeNub_inject.zip
Download plist editor:
http://rapidshare.com/files/433312297/Property_List_Editor.zip
Download IORegistryExplorer:
http://rapidshare.com/files/430687772/IORegistryExplorer.zip
Sources for DeviceMergeNub:
http://rapidshare.com/files/432918115/DeviceMergeNub.zip
Sources and builds for Tiger, Leopard and Snow Leopard:
http://rapidshare.com/files/433496862/DeviceMergeNub_all_os.zip