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