diff options
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r-- | include/linux/acpi.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 5a5a13b64d09..25fb4dcc0e6b 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
@@ -25,6 +25,7 @@ | |||
25 | #ifndef _LINUX_ACPI_H | 25 | #ifndef _LINUX_ACPI_H |
26 | #define _LINUX_ACPI_H | 26 | #define _LINUX_ACPI_H |
27 | 27 | ||
28 | #include <linux/ioport.h> /* for struct resource */ | ||
28 | 29 | ||
29 | #ifdef CONFIG_ACPI | 30 | #ifdef CONFIG_ACPI |
30 | 31 | ||
@@ -238,6 +239,13 @@ extern int pnpacpi_disabled; | |||
238 | #define PXM_INVAL (-1) | 239 | #define PXM_INVAL (-1) |
239 | #define NID_INVAL (-1) | 240 | #define NID_INVAL (-1) |
240 | 241 | ||
242 | int acpi_check_resource_conflict(struct resource *res); | ||
243 | |||
244 | int acpi_check_region(resource_size_t start, resource_size_t n, | ||
245 | const char *name); | ||
246 | int acpi_check_mem_region(resource_size_t start, resource_size_t n, | ||
247 | const char *name); | ||
248 | |||
241 | #else /* CONFIG_ACPI */ | 249 | #else /* CONFIG_ACPI */ |
242 | 250 | ||
243 | static inline int acpi_boot_init(void) | 251 | static inline int acpi_boot_init(void) |
@@ -250,5 +258,22 @@ static inline int acpi_boot_table_init(void) | |||
250 | return 0; | 258 | return 0; |
251 | } | 259 | } |
252 | 260 | ||
261 | static inline int acpi_check_resource_conflict(struct resource *res) | ||
262 | { | ||
263 | return 0; | ||
264 | } | ||
265 | |||
266 | static inline int acpi_check_region(resource_size_t start, resource_size_t n, | ||
267 | const char *name) | ||
268 | { | ||
269 | return 0; | ||
270 | } | ||
271 | |||
272 | static inline int acpi_check_mem_region(resource_size_t start, | ||
273 | resource_size_t n, const char *name) | ||
274 | { | ||
275 | return 0; | ||
276 | } | ||
277 | |||
253 | #endif /* !CONFIG_ACPI */ | 278 | #endif /* !CONFIG_ACPI */ |
254 | #endif /*_LINUX_ACPI_H*/ | 279 | #endif /*_LINUX_ACPI_H*/ |