phyp_dump.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Hypervisor-assisted dump
  3. *
  4. * Linas Vepstas, Manish Ahuja 2008
  5. * Copyright 2008 IBM Corp.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * as published by the Free Software Foundation; either version
  10. * 2 of the License, or (at your option) any later version.
  11. */
  12. #ifndef _PPC64_PHYP_DUMP_H
  13. #define _PPC64_PHYP_DUMP_H
  14. #ifdef CONFIG_PHYP_DUMP
  15. /* The RMR region will be saved for later dumping
  16. * whenever the kernel crashes. Set this to 256MB. */
  17. #define PHYP_DUMP_RMR_START 0x0
  18. #define PHYP_DUMP_RMR_END (1UL<<28)
  19. struct phyp_dump {
  20. /* Memory that is reserved during very early boot. */
  21. unsigned long init_reserve_start;
  22. unsigned long init_reserve_size;
  23. /* cmd line options during boot */
  24. unsigned long reserve_bootvar;
  25. unsigned long phyp_dump_at_boot;
  26. /* Check status during boot if dump supported, active & present*/
  27. unsigned long phyp_dump_configured;
  28. unsigned long phyp_dump_is_active;
  29. /* store cpu & hpte size */
  30. unsigned long cpu_state_size;
  31. unsigned long hpte_region_size;
  32. /* previous scratch area values */
  33. unsigned long reserved_scratch_addr;
  34. unsigned long reserved_scratch_size;
  35. };
  36. extern struct phyp_dump *phyp_dump_info;
  37. int early_init_dt_scan_phyp_dump(unsigned long node,
  38. const char *uname, int depth, void *data);
  39. #endif /* CONFIG_PHYP_DUMP */
  40. #endif /* _PPC64_PHYP_DUMP_H */