blob: 3d6db5e09136ea735f0c8e5948d133e07244ac54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/* Copyright 2023 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Commands for dumping EC memory */
#ifndef __CROS_EC_HOST_COMMAND_MEMORY_DUMP_H
#define __CROS_EC_HOST_COMMAND_MEMORY_DUMP_H
#include "stdint.h"
/**
* Register a memory range to be included in the memory dump.
*
* Do not register memory that could potentially contain sensitive data.
*
* @returns EC_SUCCESS or EC_XXX on error
*/
int register_memory_dump(uint32_t address, uint32_t size);
/**
* Clear previously registered memory dump.
*
* @returns EC_SUCCESS or EC_XXX on error
*/
int clear_memory_dump(void);
#endif /* __CROS_EC_HOST_COMMAND_MEMORY_DUMP_H */
|