Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(755)

Side by Side Diff: cbootimage.h

Issue 6579034: Add the device type/parameters support for cbootimage tool. (Closed) Base URL: http://git.chromium.org/git/cbootimage.git@master
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « GNUmakefile ('k') | cbootimage.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 u_int32_t version; 104 u_int32_t version;
105 /* Allocation data. */ 105 /* Allocation data. */
106 struct blk_data_rec *memory; /* Representation of memory */ 106 struct blk_data_rec *memory; /* Representation of memory */
107 /* block number for the (first) journal block */ 107 /* block number for the (first) journal block */
108 u_int32_t journal_blk; 108 u_int32_t journal_blk;
109 109
110 char *newbl_filename; 110 char *newbl_filename;
111 u_int32_t newbl_load_addr; 111 u_int32_t newbl_load_addr;
112 u_int32_t newbl_entry_point; 112 u_int32_t newbl_entry_point;
113 u_int32_t newbl_attr; 113 u_int32_t newbl_attr;
114 u_int8_t generate_bct;
114 u_int8_t *bct; 115 u_int8_t *bct;
115 116
116 struct addon_table_rec addon_tbl; 117 struct addon_table_rec addon_tbl;
117 char *bct_filename; 118 char *bct_filename;
118 u_int32_t last_bl_blk; 119 u_int32_t last_bl_blk;
119 u_int32_t addon_tbl_blk; 120 u_int32_t addon_tbl_blk;
120 } build_image_context; 121 } build_image_context;
121 122
122 /* Function prototypes */ 123 /* Function prototypes */
123 124
124 int write_image_file(build_image_context *context); 125 int write_image_file(build_image_context *context);
125 126
126 /* Global data */ 127 /* Global data */
127 extern int enable_debug; 128 extern int enable_debug;
128 129
129 /* Useful macros */ 130 /* Useful macros */
130 131
131 #define GET_VALUE(id, ptr) \ 132 #define GET_VALUE(id, ptr) \
132 (void)context->bctlib.get_value(nvbct_lib_id_##id, \ 133 (void)context->bctlib.get_value(nvbct_lib_id_##id, \
133 ptr, \ 134 ptr, \
134 context->bct); 135 context->bct);
135 136
136 #define SET_VALUE(id, value) \ 137 #define SET_VALUE(id, value) \
137 (void)context->bctlib.set_value(nvbct_lib_id_##id, \ 138 (void)context->bctlib.set_value(nvbct_lib_id_##id, \
138 value, \ 139 value, \
139 context->bct); 140 context->bct);
140 141
141 #endif /* #ifndef INCLUDED_BUILDIMAGE_H */ 142 #endif /* #ifndef INCLUDED_BUILDIMAGE_H */
OLDNEW
« no previous file with comments | « GNUmakefile ('k') | cbootimage.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698