ACPI/IRQ: Add interrupt mode to IRQ connection

Read flags (polarity/trigger) from MADT and add information to 'Irq_connection'
arguments.

Issue #390
This commit is contained in:
Sebastian Sumpf
2012-10-05 14:23:59 +02:00
committed by Norman Feske
parent 4a1b545770
commit ff0c7825e4
5 changed files with 63 additions and 14 deletions

View File

@ -28,6 +28,17 @@ namespace Genode {
struct Irq_session : Session
{
/**
* Interrupt trigger
*/
enum Trigger { TRIGGER_UNCHANGED = 0, TRIGGER_LEVEL, TRIGGER_EDGE };
/**
* Interrupt trigger polarity
*/
enum Polarity { POLARITY_UNCHANGED = 0, POLARITY_HIGH, POLARITY_LOW };
static const char *service_name() { return "IRQ"; }
virtual ~Irq_session() { }