Jump to content

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


  • Please log in to reply
1 reply to this topic

#1
xtraa

xtraa

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,063 posts
  • Gender:Male
  • Location:Hamburg
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.

#2
donzee

donzee

    InsanelyMac Protégé

  • Members
  • Pip
  • 26 posts
interresting : thnx for sharing :P





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy