internal.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* For use by Linux/ACPI infrastructure, not drivers */
  2. int init_acpi_device_notify(void);
  3. int acpi_scan_init(void);
  4. int acpi_system_init(void);
  5. #ifdef CONFIG_ACPI_DEBUG
  6. int acpi_debug_init(void);
  7. #else
  8. static inline int acpi_debug_init(void) { return 0; }
  9. #endif
  10. /* --------------------------------------------------------------------------
  11. Power Resource
  12. -------------------------------------------------------------------------- */
  13. int acpi_power_init(void);
  14. int acpi_device_sleep_wake(struct acpi_device *dev,
  15. int enable, int sleep_state, int dev_state);
  16. int acpi_enable_wakeup_device_power(struct acpi_device *dev, int sleep_state);
  17. int acpi_disable_wakeup_device_power(struct acpi_device *dev);
  18. int acpi_power_get_inferred_state(struct acpi_device *device);
  19. int acpi_power_transition(struct acpi_device *device, int state);
  20. extern int acpi_power_nocheck;
  21. int acpi_wakeup_device_init(void);
  22. /* --------------------------------------------------------------------------
  23. Embedded Controller
  24. -------------------------------------------------------------------------- */
  25. int acpi_ec_init(void);
  26. int acpi_ec_ecdt_probe(void);
  27. int acpi_boot_ec_enable(void);
  28. /*--------------------------------------------------------------------------
  29. Suspend/Resume
  30. -------------------------------------------------------------------------- */
  31. extern int acpi_sleep_init(void);
  32. #ifdef CONFIG_ACPI_SLEEP
  33. int acpi_sleep_proc_init(void);
  34. #else
  35. static inline int acpi_sleep_proc_init(void) { return 0; }
  36. #endif