Root/
1 | PCMCIA Driver |
2 | ------------- |
3 | |
4 | |
5 | sysfs |
6 | ----- |
7 | |
8 | New PCMCIA IDs may be added to a device driver pcmcia_device_id table at |
9 | runtime as shown below: |
10 | |
11 | echo "match_flags manf_id card_id func_id function device_no \ |
12 | prod_id_hash[0] prod_id_hash[1] prod_id_hash[2] prod_id_hash[3]" > \ |
13 | /sys/bus/pcmcia/drivers/{driver}/new_id |
14 | |
15 | All fields are passed in as hexadecimal values (no leading 0x). |
16 | The meaning is described in the PCMCIA specification, the match_flags is |
17 | a bitwise or-ed combination from PCMCIA_DEV_ID_MATCH_* constants |
18 | defined in include/linux/mod_devicetable.h. |
19 | |
20 | Once added, the driver probe routine will be invoked for any unclaimed |
21 | PCMCIA device listed in its (newly updated) pcmcia_device_id list. |
22 | |
23 | A common use-case is to add a new device according to the manufacturer ID |
24 | and the card ID (form the manf_id and card_id file in the device tree). |
25 | For this, just use: |
26 | |
27 | echo "0x3 manf_id card_id 0 0 0 0 0 0 0" > \ |
28 | /sys/bus/pcmcia/drivers/{driver}/new_id |
29 | |
30 | after loading the driver. |
31 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9