-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherase_info.h
More file actions
43 lines (37 loc) · 1.19 KB
/
erase_info.h
File metadata and controls
43 lines (37 loc) · 1.19 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* 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 (26)
/*
* 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 */