ACPI to driver connection
I'm currently writing a driver for a sd card reader. This reader is present in the ACPI DSDT tree and can be identified there using the EISA PNP id. I'm not all too familiar with exactly how ACPI works and even less how ACPI works on linux so my question is this. Is there anything my driver should do to associate the entries in the DSDT with the device? Perhaps there are methods that should be called or similar? I do not have the time to study ACPI in detail so I'd appreciate any help.
Rgds
Pierre Ossman
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi!
Quoted 7 lines
I'm currently writing a driver for a sd card reader. This reader is present in the ACPI DSDT tree and can be identified there using the EISA PNP id. I'm not all too familiar with exactly how ACPI works and even less how ACPI works on linux so my question is this. Is there anything my driver should do to associate the entries in the DSDT with the device? Perhaps there are methods that should be called or similar? I do not have the time to study ACPI in detail so I'd appreciate any help.
See for example battery.c driver -- it detects battery based on PNP id.
Pavel
Signature · 9 lines
People were complaining that M$ turns users into beta-testers... ...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl! ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
A message that is not in the archive (sent off-list or not yet received): 20040913223952.GB28524-I/[email protected]
Quoted 4 lines · Pavel Machek
Hi!
Quoted 9 lines
Quoted 3 lines
I'm currently writing a driver for a sd card reader. This reader is present in the ACPI DSDT tree and can be identified there using the EISA PNP id. I'm not all too familiar with exactly how ACPI works and even less how ACPI works on linux so my question is this. Is there anything my driver should do to associate the entries in the DSDT with the device? Perhaps there are methods that should be called or similar? I do not have the time to study ACPI in detail so I'd appreciate any help.
See for example
battery.cdriver -- it detects battery based on PNP id.
Pavel
The acpi_device doesn't seem to be connected to a "normal" device structure. Is the intention that one should register with the ACPI subsystem, wait for the add routine to be called and then add the device as previously (to the platform bus in this case)?
/Pierre
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php