Stephen Boyd | b9fab14 | 2012-06-20 15:33:32 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved. |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 2 | * |
| 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 Boyd | c1a7261 | 2012-07-05 14:07:35 -0700 | [diff] [blame] | 16 | struct device; |
| 17 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 18 | struct ramdump_segment { |
| 19 | unsigned long address; |
| 20 | unsigned long size; |
| 21 | }; |
| 22 | |
Stephen Boyd | c1a7261 | 2012-07-05 14:07:35 -0700 | [diff] [blame] | 23 | void *create_ramdump_device(const char *dev_name, struct device *parent); |
Stephen Boyd | b9fab14 | 2012-06-20 15:33:32 -0700 | [diff] [blame] | 24 | void destroy_ramdump_device(void *dev); |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 25 | int do_ramdump(void *handle, struct ramdump_segment *segments, |
| 26 | int nsegments); |
Stephen Boyd | 73bab7f | 2012-11-29 12:41:29 -0800 | [diff] [blame] | 27 | int do_elf_ramdump(void *handle, struct ramdump_segment *segments, |
| 28 | int nsegments); |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 29 | |
| 30 | #endif |