OLD | NEW |
1 /** | 1 /** |
2 * Copyright (c) 2011 NVIDIA Corporation. All rights reserved. | 2 * Copyright (c) 2011 NVIDIA Corporation. All rights reserved. |
3 * | 3 * |
4 * See file CREDITS for list of people who contributed to this | 4 * See file CREDITS for list of people who contributed to this |
5 * project. | 5 * project. |
6 * | 6 * |
7 * This program is free software; you can redistribute it and/or | 7 * This program is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU General Public License as | 8 * modify it under the terms of the GNU General Public License as |
9 * published by the Free Software Foundation; either version 2 of | 9 * published by the Free Software Foundation; either version 2 of |
10 * the License, or (at your option) any later version. | 10 * the License, or (at your option) any later version. |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 } | 92 } |
93 | 93 |
94 read_bct_file(&context); | 94 read_bct_file(&context); |
95 | 95 |
96 for (i = 0; i < sizeof(values) / sizeof(values[0]); ++i) { | 96 for (i = 0; i < sizeof(values) / sizeof(values[0]); ++i) { |
97 e = context.bctlib.get_value(values[i].id, &data, context.bct); | 97 e = context.bctlib.get_value(values[i].id, &data, context.bct); |
98 printf(values[i].message, e == 0 ? data : -1); | 98 printf(values[i].message, e == 0 ? data : -1); |
99 } | 99 } |
100 | 100 |
101 e = context.bctlib.get_value(nvbct_lib_id_bootloader_used, | 101 e = context.bctlib.get_value(nvbct_lib_id_bootloader_used, |
102 » » » » » » » » &bootloaders_us
ed, | 102 » » » » &bootloaders_used, |
103 » » » » » » » » context.bct); | 103 » » » » context.bct); |
104 | 104 |
105 for (i = 0; (e == 0) && (i < bootloaders_used); ++i) { | 105 for (i = 0; (e == 0) && (i < bootloaders_used); ++i) { |
106 printf("Bootloader[%d]\n", i); | 106 printf("Bootloader[%d]\n", i); |
107 | 107 |
108 for (j = 0; j < sizeof(bl_values) / sizeof(bl_values[0]); ++j) { | 108 for (j = 0; j < sizeof(bl_values) / sizeof(bl_values[0]); ++j) { |
109 e = context.bctlib.getbl_param(i, | 109 e = context.bctlib.getbl_param(i, |
110 » » » » » » » » » »
bl_values[j].id, | 110 » » » » » » bl_values[j].id, |
111 » » » » » » » » » »
&data, | 111 » » » » » » &data, |
112 » » » » » » » » » »
context.bct); | 112 » » » » » » context.bct); |
113 printf(bl_values[j].message, e == 0 ? data : -1); | 113 printf(bl_values[j].message, e == 0 ? data : -1); |
114 } | 114 } |
115 } | 115 } |
116 | 116 |
117 /* Clean up memory. */ | 117 /* Clean up memory. */ |
118 cleanup_context(&context); | 118 cleanup_context(&context); |
119 | 119 |
120 return e; | 120 return e; |
121 } | 121 } |
OLD | NEW |