blob: 522978b352c1bd9867827a14ad9dba77916e5658 [file] [log] [blame]
Duy Truonge833aca2013-02-12 13:35:08 -08001/* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved.
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef _RAMDUMP_HEADER
14#define _RAMDUMP_HEADER
15
16struct ramdump_segment {
17 unsigned long address;
18 unsigned long size;
19};
20
21void *create_ramdump_device(const char *dev_name);
Stephen Boydb9fab142012-06-20 15:33:32 -070022void destroy_ramdump_device(void *dev);
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070023int do_ramdump(void *handle, struct ramdump_segment *segments,
24 int nsegments);
25
26#endif