diff options
author | Jiang Liu <jiang.liu@linux.intel.com> | 2015-02-01 21:43:00 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-02-03 16:27:23 -0500 |
commit | 93286f4798590e711aa395503401f8632fb74f9a (patch) | |
tree | c8294efe2c8b9e2550b334fbeaa91130dc7ab525 | |
parent | 2ea3d266bab3b497238113b20136f7c3f69ad9c0 (diff) |
ACPI: Add field offset to struct resource_list_entry
Add field offset to struct resource_list_entry to host address space
translation offset so it could be used to represent bridge resources.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/acpi/resource.c | 1 | ||||
-rw-r--r-- | include/linux/acpi.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c index 4dc8cfb2e94e..1c3abae6f2fa 100644 --- a/drivers/acpi/resource.c +++ b/drivers/acpi/resource.c | |||
@@ -472,6 +472,7 @@ static acpi_status acpi_dev_new_resource_entry(struct resource_win *win, | |||
472 | return AE_NO_MEMORY; | 472 | return AE_NO_MEMORY; |
473 | } | 473 | } |
474 | rentry->res = win->res; | 474 | rentry->res = win->res; |
475 | rentry->offset = win->offset; | ||
475 | list_add_tail(&rentry->node, c->list); | 476 | list_add_tail(&rentry->node, c->list); |
476 | c->count++; | 477 | c->count++; |
477 | return AE_OK; | 478 | return AE_OK; |
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index be9eaee8f4ae..21dac3cb62d2 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
@@ -303,6 +303,7 @@ bool acpi_dev_resource_interrupt(struct acpi_resource *ares, int index, | |||
303 | struct resource_list_entry { | 303 | struct resource_list_entry { |
304 | struct list_head node; | 304 | struct list_head node; |
305 | struct resource res; | 305 | struct resource res; |
306 | resource_size_t offset; | ||
306 | }; | 307 | }; |
307 | 308 | ||
308 | void acpi_dev_free_resource_list(struct list_head *list); | 309 | void acpi_dev_free_resource_list(struct list_head *list); |