ACPI: Add field offset to struct resource_list_entry
authorJiang Liu <jiang.liu@linux.intel.com>
Mon, 2 Feb 2015 02:43:00 +0000 (10:43 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 3 Feb 2015 21:27:23 +0000 (22:27 +0100)
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>
drivers/acpi/resource.c
include/linux/acpi.h

index 4dc8cfb2e94e8a52f911e9eb7c25c737d933702f..1c3abae6f2fa6d7c6ccda2b47d2c19a08e103168 100644 (file)
@@ -472,6 +472,7 @@ static acpi_status acpi_dev_new_resource_entry(struct resource_win *win,
                return AE_NO_MEMORY;
        }
        rentry->res = win->res;
+       rentry->offset = win->offset;
        list_add_tail(&rentry->node, c->list);
        c->count++;
        return AE_OK;
index be9eaee8f4ae657670699dddf332de670dbf0040..21dac3cb62d25828af746717f467dd121272816f 100644 (file)
@@ -303,6 +303,7 @@ bool acpi_dev_resource_interrupt(struct acpi_resource *ares, int index,
 struct resource_list_entry {
        struct list_head node;
        struct resource res;
+       resource_size_t offset;
 };
 
 void acpi_dev_free_resource_list(struct list_head *list);