Skip to content

Commit 24a4b87

Browse files
jmarinhorafaeljw
authored andcommitted
ACPICA: Detect GED device and keep track of _EVT
ACPICA commit dc6fd1d12903015726a8a6f87f63e86141576a68 The GED device is described by a _HID of ACPI0013. This code traverses the namespace identifying all GED devices. For each GED device in the namespace we record 1) the Interrupt objects and the _EVT method. This information is used when an interrupt is simulate. Link: acpica/acpica@dc6fd1d1 Signed-off-by: Jose Marinho <[email protected]> Signed-off-by: Bob Moore <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 9558c2a commit 24a4b87

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

drivers/acpi/acpica/acglobal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ ACPI_GLOBAL(acpi_table_handler, acpi_gbl_table_handler);
129129
ACPI_GLOBAL(void *, acpi_gbl_table_handler_context);
130130
ACPI_GLOBAL(acpi_interface_handler, acpi_gbl_interface_handler);
131131
ACPI_GLOBAL(struct acpi_sci_handler_info *, acpi_gbl_sci_handler_list);
132+
ACPI_GLOBAL(struct acpi_ged_handler_info *, acpi_gbl_ged_handler_list);
132133

133134
/* Owner ID support */
134135

drivers/acpi/acpica/aclocal.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,14 @@ struct acpi_field_info {
543543
u32 pkg_length;
544544
};
545545

546+
/* Information about the interrupt ID and _EVT of a GED device */
547+
548+
struct acpi_ged_handler_info {
549+
struct acpi_ged_handler_info *next;
550+
u32 int_id; /* The interrupt ID that triggers the execution ofthe evt_method. */
551+
struct acpi_namespace_node *evt_method; /* The _EVT method to be executed when an interrupt with ID = int_ID is received */
552+
};
553+
546554
/*****************************************************************************
547555
*
548556
* Generic "state" object for stacks

include/acpi/acnames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#define METHOD_NAME__DDN "_DDN"
2323
#define METHOD_NAME__DIS "_DIS"
2424
#define METHOD_NAME__DMA "_DMA"
25+
#define METHOD_NAME__EVT "_EVT"
2526
#define METHOD_NAME__HID "_HID"
2627
#define METHOD_NAME__INI "_INI"
2728
#define METHOD_NAME__PLD "_PLD"

0 commit comments

Comments
 (0)