diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-14 18:30:01 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-14 18:30:01 -0500 |
commit | 046d9ce6820e99087e81511284045eada94950e8 (patch) | |
tree | ee711962f10007ca4f439aedbe8986ac531a4988 /include/linux/acpi.h | |
parent | b4b6cae2f36d92b31788f10816709d5290a1119a (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.h | 10 |
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 | ||
254 | bool acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res); | ||
255 | bool acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res); | ||
256 | bool acpi_dev_resource_address_space(struct acpi_resource *ares, | ||
257 | struct resource *res); | ||
258 | bool acpi_dev_resource_ext_address_space(struct acpi_resource *ares, | ||
259 | struct resource *res); | ||
260 | unsigned long acpi_dev_irq_flags(u8 triggering, u8 polarity, u8 shareable); | ||
261 | bool acpi_dev_resource_interrupt(struct acpi_resource *ares, int index, | ||
262 | struct resource *res); | ||
263 | |||
254 | int acpi_check_resource_conflict(const struct resource *res); | 264 | int acpi_check_resource_conflict(const struct resource *res); |
255 | 265 | ||
256 | int acpi_check_region(resource_size_t start, resource_size_t n, | 266 | int acpi_check_region(resource_size_t start, resource_size_t n, |