Fix include style
[bcusdk.git] / common / eibloadresult.h
blob3e10b414316ad2697302d5d094be402e96da4725
1 /*
2 EIBD client library
3 Copyright (C) 2005-2010 Martin Koegler <mkoegler@auto.tuwien.ac.at>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 In addition to the permissions in the GNU General Public License,
11 you may link the compiled version of this file into combinations
12 with other programs, and distribute those combinations without any
13 restriction coming from the use of this file. (The General Public
14 License restrictions do apply in other respects; for example, they
15 cover modification of the file, and distribution when not linked into
16 a combine executable.)
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
28 #ifndef EIB_LOAD_RESULT_H
29 #define EIB_LOAD_RESULT_H
31 #define IMG_UNKNOWN_ERROR 0
32 #define IMG_UNRECOG_FORMAT 1
33 #define IMG_INVALID_FORMAT 2
34 #define IMG_NO_BCUTYPE 3
35 #define IMG_UNKNOWN_BCUTYPE 4
36 #define IMG_NO_CODE 5
37 #define IMG_NO_SIZE 6
38 #define IMG_LODATA_OVERFLOW 7
39 #define IMG_HIDATA_OVERFLOW 8
40 #define IMG_TEXT_OVERFLOW 9
41 #define IMG_NO_ADDRESS 10
42 #define IMG_WRONG_SIZE 11
43 #define IMG_IMAGE_LOADABLE 12
44 #define IMG_NO_DEVICE_CONNECTION 13
45 #define IMG_MASK_READ_FAILED 14
46 #define IMG_WRONG_MASK_VERSION 15
47 #define IMG_CLEAR_ERROR 16
48 #define IMG_RESET_ADDR_TAB 17
49 #define IMG_LOAD_HEADER 18
50 #define IMG_LOAD_MAIN 19
51 #define IMG_ZERO_RAM 20
52 #define IMG_FINALIZE_ADDR_TAB 21
53 #define IMG_PREPARE_RUN 22
54 #define IMG_RESTART 23
55 #define IMG_LOADED 24
56 #define IMG_NO_START 25
57 #define IMG_WRONG_ADDRTAB 26
58 #define IMG_ADDRTAB_OVERFLOW 27
59 #define IMG_OVERLAP_ASSOCTAB 28
60 #define IMG_OVERLAP_TEXT 29
61 #define IMG_NEGATIV_TEXT_SIZE 30
62 #define IMG_OVERLAP_PARAM 31
63 #define IMG_OVERLAP_EEPROM 32
64 #define IMG_OBJTAB_OVERFLOW 33
65 #define IMG_WRONG_LOADCTL 34
66 #define IMG_UNLOAD_ADDR 35
67 #define IMG_UNLOAD_ASSOC 36
68 #define IMG_UNLOAD_PROG 37
69 #define IMG_LOAD_ADDR 38
70 #define IMG_WRITE_ADDR 39
71 #define IMG_SET_ADDR 40
72 #define IMG_FINISH_ADDR 41
73 #define IMG_LOAD_ASSOC 42
74 #define IMG_WRITE_ASSOC 43
75 #define IMG_SET_ASSOC 44
76 #define IMG_FINISH_ASSOC 45
77 #define IMG_LOAD_PROG 46
78 #define IMG_ALLOC_LORAM 47
79 #define IMG_ALLOC_HIRAM 48
80 #define IMG_ALLOC_INIT 49
81 #define IMG_ALLOC_RO 50
82 #define IMG_ALLOC_EEPROM 51
83 #define IMG_ALLOC_PARAM 52
84 #define IMG_SET_PROG 53
85 #define IMG_SET_TASK_PTR 54
86 #define IMG_SET_OBJ 55
87 #define IMG_SET_TASK2 56
88 #define IMG_FINISH_PROC 57
89 #define IMG_WRONG_CHECKLIM 58
90 #define IMG_INVALID_KEY 59
91 #define IMG_AUTHORIZATION_FAILED 60
92 #define IMG_KEY_WRITE 61
94 typedef int BCU_LOAD_RESULT;
96 #endif