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

Side by Side Diff: cbootimage.h

Issue 6611009: Add the nand device support for cbootimage tool. (Closed) Base URL: http://git.chromium.org/git/cbootimage.git@master
Patch Set: Created 9 years, 9 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 | « no previous file | cbootimage.c » ('j') | cbootimage.c » ('J')
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 17 matching lines...) Expand all
28 #define INCLUDED_BUILDIMAGE_H 28 #define INCLUDED_BUILDIMAGE_H
29 29
30 #include "nvboot_bct.h" 30 #include "nvboot_bct.h"
31 #include "nvbctlib.h" 31 #include "nvbctlib.h"
32 #include <stdio.h> 32 #include <stdio.h>
33 #include <stdlib.h> 33 #include <stdlib.h>
34 #include <assert.h> 34 #include <assert.h>
35 #include <errno.h> 35 #include <errno.h>
36 36
37 #define NVBOOT_AES_BLOCK_SIZE_LOG2 4 37 #define NVBOOT_AES_BLOCK_SIZE_LOG2 4
38
39 #define KEY_LENGTH (128/8)
40
41 #define MAX_BUFFER 200 38 #define MAX_BUFFER 200
42 #define MAX_STR_LEN 20 39 #define MAX_STR_LEN 20
43 #define MAX_BOOTLOADER_SIZE (16 * 1024 * 1024) 40 #define MAX_BOOTLOADER_SIZE (16 * 1024 * 1024)
41 #define NVBOOT_BOOTDATA_VERSION(a, b) ((((a)&0xffff) << 16) | ((b)&0xffff))
44 42
45 /* 43 /*
46 * Enumerations 44 * Enumerations
47 */ 45 */
48 46
49 typedef enum 47 typedef enum
50 { 48 {
51 file_type_bl = 0, 49 file_type_bl = 0,
52 file_type_bct, 50 file_type_bct,
53 file_type_addon 51 file_type_addon
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 (void)context->bctlib.get_value(nvbct_lib_id_##id, \ 131 (void)context->bctlib.get_value(nvbct_lib_id_##id, \
134 ptr, \ 132 ptr, \
135 context->bct); 133 context->bct);
136 134
137 #define SET_VALUE(id, value) \ 135 #define SET_VALUE(id, value) \
138 (void)context->bctlib.set_value(nvbct_lib_id_##id, \ 136 (void)context->bctlib.set_value(nvbct_lib_id_##id, \
139 value, \ 137 value, \
140 context->bct); 138 context->bct);
141 139
142 #endif /* #ifndef INCLUDED_BUILDIMAGE_H */ 140 #endif /* #ifndef INCLUDED_BUILDIMAGE_H */
OLDNEW
« no previous file with comments | « no previous file | cbootimage.c » ('j') | cbootimage.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698