public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Accessing DSDT entries within a kernel device driver
@ 2005-08-02 19:29 Marcel Selhorst
       [not found] ` <42EFC9AD.8060607-yWjUBOtONefk1uMJSBkQmQ@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Selhorst @ 2005-08-02 19:29 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Dear ACPI-List,

I am pretty new to ACPI and I hope that my question is not offending, but I didn't
find an answer in the mailing archive.
I am writing a device driver for a trusted platform module (TPM), which is connected
to the mainboard via the LPC-bus. The corresponding ioports needed to communicate
with the chip are written into the ACPI-table (DSDT) through the BIOS.
So what I would like to do is simply read out the values stored inside the DSDT-table
and gather the information I need to configure the TPM-chip with the correct ioports.
The corresponding DSDT-entry looks like this:

Device (TPM)
        {
            Name (_HID, EisaId ("IFX0101"))
            Name (_UID, 0x01)
            Name (_CRS, ResourceTemplate ()
            {
                IO (Decode16, 0x004E, 0x004E, 0x01, 0x02)
                IO (Decode16, 0x4700, 0x4700, 0x01, 0x0C)
            })
        }

Is there a way to get the information (without userspace disassembling through iasl)?

Thanks a lot,

Marcel Selhorst


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-08-02 22:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-02 19:29 Accessing DSDT entries within a kernel device driver Marcel Selhorst
     [not found] ` <42EFC9AD.8060607-yWjUBOtONefk1uMJSBkQmQ@public.gmane.org>
2005-08-02 20:18   ` Bjorn Helgaas
     [not found]     ` <200508021418.40355.bjorn.helgaas-VXdhtT5mjnY@public.gmane.org>
2005-08-02 21:00       ` Marcel Selhorst
2005-08-02 20:38   ` Alex Williamson
2005-08-02 21:33     ` Marcel Selhorst
     [not found]       ` <42EFE697.8030701-yWjUBOtONefk1uMJSBkQmQ@public.gmane.org>
2005-08-02 21:50         ` Alex Williamson
2005-08-02 22:05           ` Marcel Selhorst

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox