driver.txt

来自「linux 内核源代码」· 文本 代码 · 共 31 行

TXT
31
字号
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 + =
减小字号Ctrl + -
显示快捷键?