-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 54163 b: refs/heads/master c: 6179b55 h: refs/heads/master i: 54161: a4cb183 54159: bd13c37 v: v3
- Loading branch information
Bernhard Walle
authored and
Linus Torvalds
committed
May 7, 2007
1 parent
4af6bf1
commit 23c7d2c
Showing
4 changed files
with
149 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 02c83595b86480ee4d61665beb13f76685d40239 | ||
refs/heads/master: 6179b5562d5d17c7c09b54cb11dd925ca308d7a9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
PCMCIA Driver | ||
------------- | ||
|
||
|
||
sysfs | ||
----- | ||
|
||
New PCMCIA IDs may be added to a device driver pcmcia_device_id table at | ||
runtime 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_id | ||
|
||
All fields are passed in as hexadecimal values (no leading 0x). | ||
The meaning is described in the PCMCIA specification, the match_flags is | ||
a bitwise or-ed combination from PCMCIA_DEV_ID_MATCH_* constants | ||
defined in include/linux/mod_devicetable.h. | ||
|
||
Once added, the driver probe routine will be invoked for any unclaimed | ||
PCMCIA device listed in its (newly updated) pcmcia_device_id list. | ||
|
||
A common use-case is to add a new device according to the manufacturer ID | ||
and 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_id | ||
|
||
after loading the driver. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters