Jump to content

[How To] define Vendor and ID Ranges to be accepted


xtraa
 Share

2 posts in this topic

Recommended Posts

Hi,

 

I just found a useful little tutorial, somewhere down in the Outta-Rim-Territory of the darwin space.

 

Instead of define exact types of hardware in the .kext / Info.plist, it would make more sense to define a

whole range.

 

This would support different types of cards by one vendor with just one workaround for all, for example.

 

Examples:

 

<key>IOPCIMatch</key>

<string>0x00261011</string>

 

Matches a device whose vendor ID is 0x1011, and device ID is 0x0026, including subsystem IDs.

 

<key>IOPCIMatch</key>

<string>0x00789004&0x00ffffff 0x78009004&0x0xff00ffff</string>

 

Matches with any device with a vendor ID of 0x9004, and a device ID of 0xzz78 or 0x78zz, where 'z' is don't care.

 

<key>IOPCIClassMatch</key>

<string>0x02000000&0xffff0000</string>

 

Matches a device whose class code is 0x0200zz, an ethernet device.

 

Source link click here

 

Hope you find this useful.

Link to comment
Share on other sites

 Share

×
×
  • Create New...