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

📄 driver.txt

📁 linux 内核源代码
💻 TXT
字号:
PCMCIA Driver-------------sysfs-----New PCMCIA IDs may be added to a device driver pcmcia_device_id table atruntime as shown below:echo "match_flags manf_id card_id func_id function device_no \prod_id_hash[0] prod_id_hash[1] prod_id_hash[2] prod_id_hash[3]" > \/sys/bus/pcmcia/drivers/{driver}/new_idAll fields are passed in as hexadecimal values (no leading 0x).The meaning is described in the PCMCIA specification, the match_flags isa bitwise or-ed combination from PCMCIA_DEV_ID_MATCH_* constantsdefined in include/linux/mod_devicetable.h.Once added, the driver probe routine will be invoked for any unclaimedPCMCIA device listed in its (newly updated) pcmcia_device_id list.A common use-case is to add a new device according to the manufacturer IDand the card ID (form the manf_id and card_id file in the device tree).For this, just use:echo "0x3 manf_id card_id 0 0 0 0 0 0 0" > \        /sys/bus/pcmcia/drivers/{driver}/new_idafter loading the driver.

⌨️ 快捷键说明

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