blob: 5fb41ec51eb61e7546416fa5288f6a50b7215ba6 [file] [log] [blame]
Stephen Boydb9fab142012-06-20 15:33:32 -07001/* Copyright (c) 2011-2012, Code Aurora Forum. 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
Stephen Boydc1a72612012-07-05 14:07:35 -070016struct device;
17
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070018struct ramdump_segment {
19 unsigned long address;
20 unsigned long size;
21};
22
Stephen Boydc1a72612012-07-05 14:07:35 -070023void *create_ramdump_device(const char *dev_name, struct device *parent);
Stephen Boydb9fab142012-06-20 15:33:32 -070024void destroy_ramdump_device(void *dev);
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070025int do_ramdump(void *handle, struct ramdump_segment *segments,
26 int nsegments);
Stephen Boyd73bab7f2012-11-29 12:41:29 -080027int do_elf_ramdump(void *handle, struct ramdump_segment *segments,
28 int nsegments);
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070029
30#endif