ACPI: Return translation offset when parsing ACPI address space resources
Change function acpi_dev_resource_address_space() and acpi_dev_resource_ext_address_space() to return address space translation offset. It's based on a patch from Yinghai Lu <yinghai@kernel.org>. Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:

committed by
Rafael J. Wysocki

parent
a274019fc3
commit
a49170b552
@@ -285,12 +285,17 @@ extern int pnpacpi_disabled;
|
||||
|
||||
#define PXM_INVAL (-1)
|
||||
|
||||
struct resource_win {
|
||||
struct resource res;
|
||||
resource_size_t offset;
|
||||
};
|
||||
|
||||
bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res);
|
||||
bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res);
|
||||
bool acpi_dev_resource_address_space(struct acpi_resource *ares,
|
||||
struct resource *res);
|
||||
struct resource_win *win);
|
||||
bool acpi_dev_resource_ext_address_space(struct acpi_resource *ares,
|
||||
struct resource *res);
|
||||
struct resource_win *win);
|
||||
unsigned long acpi_dev_irq_flags(u8 triggering, u8 polarity, u8 shareable);
|
||||
bool acpi_dev_resource_interrupt(struct acpi_resource *ares, int index,
|
||||
struct resource *res);
|
||||
|
Reference in New Issue
Block a user