2008-03-22 06:37:08 +07:00
|
|
|
/*
|
|
|
|
* Hypervisor-assisted dump
|
|
|
|
*
|
|
|
|
* Linas Vepstas, Manish Ahuja 2008
|
|
|
|
* Copyright 2008 IBM Corp.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version
|
|
|
|
* 2 of the License, or (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _PPC64_PHYP_DUMP_H
|
|
|
|
#define _PPC64_PHYP_DUMP_H
|
|
|
|
|
|
|
|
#ifdef CONFIG_PHYP_DUMP
|
|
|
|
|
|
|
|
/* The RMR region will be saved for later dumping
|
|
|
|
* whenever the kernel crashes. Set this to 256MB. */
|
|
|
|
#define PHYP_DUMP_RMR_START 0x0
|
|
|
|
#define PHYP_DUMP_RMR_END (1UL<<28)
|
|
|
|
|
|
|
|
struct phyp_dump {
|
|
|
|
/* Memory that is reserved during very early boot. */
|
|
|
|
unsigned long init_reserve_start;
|
|
|
|
unsigned long init_reserve_size;
|
2008-04-12 06:31:52 +07:00
|
|
|
/* cmd line options during boot */
|
|
|
|
unsigned long reserve_bootvar;
|
2008-03-22 07:38:59 +07:00
|
|
|
unsigned long phyp_dump_at_boot;
|
2008-04-12 06:31:52 +07:00
|
|
|
/* Check status during boot if dump supported, active & present*/
|
2008-03-22 06:37:08 +07:00
|
|
|
unsigned long phyp_dump_configured;
|
|
|
|
unsigned long phyp_dump_is_active;
|
|
|
|
/* store cpu & hpte size */
|
|
|
|
unsigned long cpu_state_size;
|
|
|
|
unsigned long hpte_region_size;
|
2008-03-22 06:45:22 +07:00
|
|
|
/* previous scratch area values */
|
|
|
|
unsigned long reserved_scratch_addr;
|
|
|
|
unsigned long reserved_scratch_size;
|
2008-03-22 06:37:08 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct phyp_dump *phyp_dump_info;
|
|
|
|
|
|
|
|
int early_init_dt_scan_phyp_dump(unsigned long node,
|
|
|
|
const char *uname, int depth, void *data);
|
|
|
|
|
|
|
|
#endif /* CONFIG_PHYP_DUMP */
|
|
|
|
#endif /* _PPC64_PHYP_DUMP_H */
|