diff options
Diffstat (limited to 'include/linux/acpi.h')
| -rw-r--r-- | include/linux/acpi.h | 45 |
1 files changed, 18 insertions, 27 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index b46a5205ee7b..026c3c011dc0 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
| @@ -41,7 +41,7 @@ | |||
| 41 | #include <asm/acpi.h> | 41 | #include <asm/acpi.h> |
| 42 | 42 | ||
| 43 | 43 | ||
| 44 | #ifdef CONFIG_ACPI_BOOT | 44 | #ifdef CONFIG_ACPI |
| 45 | 45 | ||
| 46 | enum acpi_irq_model_id { | 46 | enum acpi_irq_model_id { |
| 47 | ACPI_IRQ_MODEL_PIC = 0, | 47 | ACPI_IRQ_MODEL_PIC = 0, |
| @@ -429,23 +429,13 @@ extern int pci_mmcfg_config_num; | |||
| 429 | 429 | ||
| 430 | extern int sbf_port ; | 430 | extern int sbf_port ; |
| 431 | 431 | ||
| 432 | #else /*!CONFIG_ACPI_BOOT*/ | 432 | #else /* !CONFIG_ACPI */ |
| 433 | 433 | ||
| 434 | #define acpi_mp_config 0 | 434 | #define acpi_mp_config 0 |
| 435 | 435 | ||
| 436 | static inline int acpi_boot_init(void) | 436 | #endif /* !CONFIG_ACPI */ |
| 437 | { | ||
| 438 | return 0; | ||
| 439 | } | ||
| 440 | |||
| 441 | static inline int acpi_boot_table_init(void) | ||
| 442 | { | ||
| 443 | return 0; | ||
| 444 | } | ||
| 445 | 437 | ||
| 446 | #endif /*!CONFIG_ACPI_BOOT*/ | 438 | int acpi_register_gsi (u32 gsi, int edge_level, int active_high_low); |
| 447 | |||
| 448 | unsigned int acpi_register_gsi (u32 gsi, int edge_level, int active_high_low); | ||
| 449 | int acpi_gsi_to_irq (u32 gsi, unsigned int *irq); | 439 | int acpi_gsi_to_irq (u32 gsi, unsigned int *irq); |
| 450 | 440 | ||
| 451 | /* | 441 | /* |
| @@ -455,7 +445,7 @@ int acpi_gsi_to_irq (u32 gsi, unsigned int *irq); | |||
| 455 | */ | 445 | */ |
| 456 | void acpi_unregister_gsi (u32 gsi); | 446 | void acpi_unregister_gsi (u32 gsi); |
| 457 | 447 | ||
| 458 | #ifdef CONFIG_ACPI_PCI | 448 | #ifdef CONFIG_ACPI |
| 459 | 449 | ||
| 460 | struct acpi_prt_entry { | 450 | struct acpi_prt_entry { |
| 461 | struct list_head node; | 451 | struct list_head node; |
| @@ -489,7 +479,7 @@ struct acpi_pci_driver { | |||
| 489 | int acpi_pci_register_driver(struct acpi_pci_driver *driver); | 479 | int acpi_pci_register_driver(struct acpi_pci_driver *driver); |
| 490 | void acpi_pci_unregister_driver(struct acpi_pci_driver *driver); | 480 | void acpi_pci_unregister_driver(struct acpi_pci_driver *driver); |
| 491 | 481 | ||
| 492 | #endif /*CONFIG_ACPI_PCI*/ | 482 | #endif /* CONFIG_ACPI */ |
| 493 | 483 | ||
| 494 | #ifdef CONFIG_ACPI_EC | 484 | #ifdef CONFIG_ACPI_EC |
| 495 | 485 | ||
| @@ -498,20 +488,9 @@ extern int ec_write(u8 addr, u8 val); | |||
| 498 | 488 | ||
| 499 | #endif /*CONFIG_ACPI_EC*/ | 489 | #endif /*CONFIG_ACPI_EC*/ |
| 500 | 490 | ||
| 501 | #ifdef CONFIG_ACPI_INTERPRETER | ||
| 502 | |||
| 503 | extern int acpi_blacklisted(void); | 491 | extern int acpi_blacklisted(void); |
| 504 | extern void acpi_bios_year(char *s); | 492 | extern void acpi_bios_year(char *s); |
| 505 | 493 | ||
| 506 | #else /*!CONFIG_ACPI_INTERPRETER*/ | ||
| 507 | |||
| 508 | static inline int acpi_blacklisted(void) | ||
| 509 | { | ||
| 510 | return 0; | ||
| 511 | } | ||
| 512 | |||
| 513 | #endif /*!CONFIG_ACPI_INTERPRETER*/ | ||
| 514 | |||
| 515 | #define ACPI_CSTATE_LIMIT_DEFINED /* for driver builds */ | 494 | #define ACPI_CSTATE_LIMIT_DEFINED /* for driver builds */ |
| 516 | #ifdef CONFIG_ACPI | 495 | #ifdef CONFIG_ACPI |
| 517 | 496 | ||
| @@ -549,5 +528,17 @@ static inline int acpi_get_pxm(acpi_handle handle) | |||
| 549 | 528 | ||
| 550 | extern int pnpacpi_disabled; | 529 | extern int pnpacpi_disabled; |
| 551 | 530 | ||
| 531 | #else /* CONFIG_ACPI */ | ||
| 532 | |||
| 533 | static inline int acpi_boot_init(void) | ||
| 534 | { | ||
| 535 | return 0; | ||
| 536 | } | ||
| 537 | |||
| 538 | static inline int acpi_boot_table_init(void) | ||
| 539 | { | ||
| 540 | return 0; | ||
| 541 | } | ||
| 542 | |||
| 552 | #endif /* CONFIG_ACPI */ | 543 | #endif /* CONFIG_ACPI */ |
| 553 | #endif /*_LINUX_ACPI_H*/ | 544 | #endif /*_LINUX_ACPI_H*/ |
