Skip to content

Commit

Permalink
ACPI: Add field offset to struct resource_list_entry
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiang Liu authored and Rafael J. Wysocki committed Feb 3, 2015
1 parent 2ea3d26 commit 93286f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/acpi/resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions include/linux/acpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 93286f4

Please sign in to comment.