blob: df255437395a65835aee98b79dc7bd4b4fee38ad (
plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
/*
* Copyright (c) 2019 Samsung Electronics Co., Ltd
* http://www.samsung.com
*
* 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.
*
*/
#ifndef SEC_NAD_BPS_CLASSIFIER_H
#define SEC_NAD_BPS_CLASSIFIER_H
#if defined(CONFIG_SEC_FACTORY)
/*
* very important !!!
* if the nad partition size has changed it must be change as well.
*/
#define NAD_BPS_REFER_PARTITION_SIZE (1 * 512 * 1024)
#define NAD_BPS_MAX_QUICKBUILD_LEN 10
#define NAD_BPS_INIT_MAGIC1 0xABCDABCD
#define NAD_BPS_CLASSIFIER_MAGIC2 0xDCBADCBA
/* a structure for storing upload information for fac binary */
struct upload_info {
int sp;
int wp;
int dp;
int kp;
int mp;
int tp;
int cp;
};
struct bps_info {
/* magic code for bps */
unsigned int magic[2];
/* factory upload info */
struct upload_info up_cnt;
/* BPS filter count */
int pc_lr_cnt;
int pc_lr_last_idx;
int bus_cnt;
int smu_cnt;
int klg_cnt;
/* binary download info */
int dn_cnt;
char build_id[NAD_BPS_MAX_QUICKBUILD_LEN];
#if defined(CONFIG_SEC_BPS_INFO)
int rbps_magic;
int rbpsp;
int rbpsf;
int n1bps;
int n2bps;
int n3bps;
int n4bps;
#if defined(CONFIG_SEC_BPS_INFO_ADD)
/* factory info */
int fac_info;
/* fac info : smd f/t end ~ rf cal start */
struct upload_info semi_asm_up_cnt;
int semi_asm_pc_lr_cnt;
int semi_asm_pc_lr_last_idx;
/* fac info : rf cal start ~ */
struct upload_info asm_up_cnt;
int asm_pc_lr_cnt;
int asm_pc_lr_last_idx;
#endif
#endif
};
static struct bps_info sec_nad_bps_env;
static bool sec_nad_bps_env_initialized;
#endif
#endif
|