hibernate.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* $OpenBSD: hibernate.h,v 1.2 2014/05/31 06:30:16 mlarkin Exp $ */
  2. /*
  3. * Copyright (c) 2013 Paul Irofti.
  4. *
  5. * Permission to use, copy, modify, and distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. */
  17. #include <machine/hibernate_var.h>
  18. /* Loongson hibernate support structures and functions */
  19. int get_hibernate_info_md(union hibernate_info *);
  20. void hibernate_flush(void);
  21. void hibernate_enter_resume_mapping(vaddr_t, paddr_t, int);
  22. int hibernate_inflate_skip(union hibernate_info *, paddr_t);
  23. int hibernate_suspend(void);
  24. void hibernate_switch_stack_machdep(void);
  25. void hibernate_resume_machdep(void);
  26. void hibernate_activate_resume_pt_machdep(void);
  27. void hibernate_enable_intr_machdep(void);
  28. void hibernate_disable_intr_machdep(void);