summaryrefslogtreecommitdiff
path: root/erase_info.h
diff options
context:
space:
mode:
authorKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>2011-09-07 16:52:46 +0900
committerKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>2011-09-07 16:52:46 +0900
commitfb9393298fe8991a4d0116903ff81024a97499ff (patch)
tree6be77cb44a4bde1a981830f99d0b518d3f6a8891 /erase_info.h
parent6a78de7c41391f6d684507e27fbfb1eb5e73f13d (diff)
[PATCH] Cleanup: Add erase_info.c for reducing makedumpfile.c
makedumpfile.c becomes big and the readability is not good. To reduce the code of makedumpfile.c, this patch adds erase_info.c. Signed-off-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Diffstat (limited to 'erase_info.h')
-rw-r--r--erase_info.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/erase_info.h b/erase_info.h
new file mode 100644
index 0000000..c3b91de
--- /dev/null
+++ b/erase_info.h
@@ -0,0 +1,43 @@
+/*
+ * erase_info.h
+ *
+ * Created by: Mahesh J Salgaonkar <mahesh@linux.vnet.ibm.com>
+ *
+ * Copyright (C) 2011 IBM Corporation
+ * Copyright (C) 2011 NEC Corporation
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+#ifndef _ERASE_INFO_H
+#define _ERASE_INFO_H
+
+#define MAX_SIZE_STR_LEN (21)
+
+/*
+ * Erase information, original symbol expressions.
+ */
+struct erase_info {
+ char *symbol_expr;
+ int num_sizes;
+ long *sizes;
+ int erased; /* 1= erased, 0= Not erased */
+};
+
+extern struct erase_info *erase_info;
+extern unsigned long num_erase_info;
+
+int gather_filter_info(void);
+void clear_filter_info(void);
+void filter_data_buffer(unsigned char *buf, unsigned long long paddr, size_t size);
+unsigned long get_size_eraseinfo(void);
+
+#endif /* _ERASE_INFO_H */
+