2019-05-29 07:17:56 -07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2012-05-17 00:15:08 -07:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2010 Marco Stornelli <marco.stornelli@gmail.com>
|
|
|
|
|
* Copyright (C) 2011 Kees Cook <keescook@chromium.org>
|
|
|
|
|
* Copyright (C) 2011 Google, Inc.
|
|
|
|
|
*/
|
|
|
|
|
|
2012-05-16 05:43:08 -07:00
|
|
|
#ifndef __LINUX_PSTORE_RAM_H__
|
|
|
|
|
#define __LINUX_PSTORE_RAM_H__
|
2010-10-27 15:34:52 -07:00
|
|
|
|
2018-11-03 16:38:16 -07:00
|
|
|
#include <linux/pstore.h>
|
2012-05-17 00:15:08 -07:00
|
|
|
|
2012-05-22 16:33:23 -07:00
|
|
|
struct persistent_ram_ecc_info {
|
|
|
|
|
int block_size;
|
|
|
|
|
int ecc_size;
|
|
|
|
|
int symsize;
|
|
|
|
|
int poly;
|
2018-03-07 12:18:33 -08:00
|
|
|
uint16_t *par;
|
2012-05-22 16:33:23 -07:00
|
|
|
};
|
|
|
|
|
|
2010-10-27 15:34:52 -07:00
|
|
|
/*
|
|
|
|
|
* Ramoops platform data
|
|
|
|
|
* @mem_size memory size for ramoops
|
|
|
|
|
* @mem_address physical memory address to contain ramoops
|
|
|
|
|
*/
|
|
|
|
|
|
2016-10-20 00:34:04 -07:00
|
|
|
#define RAMOOPS_FLAG_FTRACE_PER_CPU BIT(0)
|
|
|
|
|
|
2010-10-27 15:34:52 -07:00
|
|
|
struct ramoops_platform_data {
|
|
|
|
|
unsigned long mem_size;
|
2015-11-13 12:10:05 +00:00
|
|
|
phys_addr_t mem_address;
|
2014-09-16 13:50:01 -07:00
|
|
|
unsigned int mem_type;
|
2011-07-26 16:08:59 -07:00
|
|
|
unsigned long record_size;
|
2012-05-26 06:20:23 -07:00
|
|
|
unsigned long console_size;
|
2012-07-09 17:10:44 -07:00
|
|
|
unsigned long ftrace_size;
|
2015-01-16 16:01:10 -08:00
|
|
|
unsigned long pmsg_size;
|
2020-05-13 14:35:03 -07:00
|
|
|
int max_reason;
|
2016-10-20 00:34:04 -07:00
|
|
|
u32 flags;
|
2012-05-22 16:33:23 -07:00
|
|
|
struct persistent_ram_ecc_info ecc_info;
|
2010-10-27 15:34:52 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|