aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/acpi.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-11-14 18:30:01 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-11-14 18:30:01 -0500
commit046d9ce6820e99087e81511284045eada94950e8 (patch)
treeee711962f10007ca4f439aedbe8986ac531a4988 /include/linux/acpi.h
parentb4b6cae2f36d92b31788f10816709d5290a1119a (diff)
ACPI: Move device resources interpretation code from PNP to ACPI core
Move some code used for parsing ACPI device resources from the PNP subsystem to the ACPI core, so that other bus types (platform, SPI, I2C) can use the same routines for parsing resources in a consistent way, without duplicating code. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r--include/linux/acpi.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 48761cb481db..16fcaf8dad3d 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -251,6 +251,16 @@ extern int pnpacpi_disabled;
251 251
252#define PXM_INVAL (-1) 252#define PXM_INVAL (-1)
253 253
254bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res);
255bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res);
256bool acpi_dev_resource_address_space(struct acpi_resource *ares,
257 struct resource *res);
258bool acpi_dev_resource_ext_address_space(struct acpi_resource *ares,
259 struct resource *res);
260unsigned long acpi_dev_irq_flags(u8 triggering, u8 polarity, u8 shareable);
261bool acpi_dev_resource_interrupt(struct acpi_resource *ares, int index,
262 struct resource *res);
263
254int acpi_check_resource_conflict(const struct resource *res); 264int acpi_check_resource_conflict(const struct resource *res);
255 265
256int acpi_check_region(resource_size_t start, resource_size_t n, 266int acpi_check_region(resource_size_t start, resource_size_t n,