⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 devicetable.txt

📁 linux 内核源代码
💻 TXT
字号:
Matching of PCMCIA devices to drivers is done using one or more of thefollowing criteria:- manufactor ID- card ID- product ID strings _and_ hashes of these strings- function ID- device function (actual and pseudo)You should use the helpers in include/pcmcia/device_id.h for generating thestruct pcmcia_device_id[] entries which match devices to drivers.If you want to match product ID strings, you also need to pass the crc32hashes of the string to the macro, e.g. if you want to match the product IDstring 1, you need to usePCMCIA_DEVICE_PROD_ID1("some_string", 0x(hash_of_some_string)),If the hash is incorrect, the kernel will inform you about this in "dmesg"upon module initialization, and tell you of the correct hash.You can determine the hash of the product ID strings by catting the file"modalias" in the sysfs directory of the PCMCIA device. It generates a stringin the following form:pcmcia:m0149cC1ABf06pfn00fn00pa725B842DpbF1EFEE84pc0877B627pd00000000The hex value after "pa" is the hash of product ID string 1, after "pb" forstring 2 and so on.Alternatively, you can use crc32hash (see Documentation/pcmcia/crc32hash.c)to determine the crc32 hash.  Simply pass the string you want to evaluateas argument to this program, e.g.:$ ./crc32hash "Dual Speed"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -