From: Matthew Garrett <mjg59@srcf.ucam.org>
To: Daniel Toussaint <daniel@dmhome.net>
Cc: linux-acpi@vger.kernel.org
Subject: Re: Driver for handling SCI interrupt.
Date: Mon, 6 Feb 2012 14:57:59 +0000 [thread overview]
Message-ID: <20120206145759.GA29805@srcf.ucam.org> (raw)
In-Reply-To: <CADVYk4RTY3=Xiw5JsiDssN9i3yo+jQw1p_i42tKrMDVH5=_ykQ@mail.gmail.com>
On Mon, Feb 06, 2012 at 11:25:20AM +0800, Daniel Toussaint wrote:
> I am working on an Intel (ICH8) based system. A custom device on the system
> emits interrupts to a GPI on the ICH8 chip. Currently, as a test, I have
> from userspace configured the GPI we use to send a SCI. This seems to work,
> because I get a "IRQ9 , nobody cared" message from the kernel.
> My questions now are :
> How do I go about and create an ACPI based driver to catch this event ? Or am
> I searching in the wrong direction.
> If I am right, and the driver has to go through ACPI, are changes to the
> ACPI tables in BIOS required ?
The ACPI tables should declare the device and its resources, along with
a unique _HID() to allow the driver to bind to it. There should also be
a _Lxx or_Exx (depending on whether it's level or edge triggered) method
for the appropriate GPE (which is the GPIO number + 0x10 on ICH8, I
believe) which sends a Notify to the ACPI device. It's then trivial to
write a small Linux acpi driver which will get the notifications.
--
Matthew Garrett | mjg59@srcf.ucam.org
next prev parent reply other threads:[~2012-02-06 14:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-06 3:25 Driver for handling SCI interrupt Daniel Toussaint
2012-02-06 14:57 ` Matthew Garrett [this message]
2012-02-09 5:24 ` Daniel Toussaint
2012-02-09 12:36 ` Matthew Garrett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120206145759.GA29805@srcf.ucam.org \
--to=mjg59@srcf.ucam.org \
--cc=daniel@dmhome.net \
--cc=linux-acpi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox