OLD | NEW |
1 /* Copyright (c) 2010-2011 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010-2011 The Chromium OS Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 * | 4 * |
5 * Data structure definitions for firmware screen block (BMPBLOCK). | 5 * Data structure definitions for firmware screen block (BMPBLOCK). |
6 * | 6 * |
7 * The BmpBlock structure looks like: | 7 * The BmpBlock structure looks like: |
8 * +-----------------------------------------+ | 8 * +-----------------------------------------+ |
9 * | BmpBlock Header | | 9 * | BmpBlock Header | |
10 * +-----------------------------------------+ | 10 * +-----------------------------------------+ |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 } images[MAX_IMAGE_IN_LAYOUT]; /* Images contained in the screen. Will be | 78 } images[MAX_IMAGE_IN_LAYOUT]; /* Images contained in the screen. Will be |
79 * rendered from 0 to (number_of_images-1). */ | 79 * rendered from 0 to (number_of_images-1). */ |
80 } __attribute__((packed)) ScreenLayout; | 80 } __attribute__((packed)) ScreenLayout; |
81 | 81 |
82 /* Constants for screen index */ | 82 /* Constants for screen index */ |
83 typedef enum ScreenIndex { | 83 typedef enum ScreenIndex { |
84 SCREEN_DEVELOPER_MODE = 0, | 84 SCREEN_DEVELOPER_MODE = 0, |
85 SCREEN_RECOVERY_MODE, | 85 SCREEN_RECOVERY_MODE, |
86 SCREEN_RECOVERY_NO_OS, | 86 SCREEN_RECOVERY_NO_OS, |
87 SCREEN_RECOVERY_MISSING_OS, | 87 SCREEN_RECOVERY_MISSING_OS, |
88 MAX_SCREEN_INDEX, | 88 MAX_VALID_SCREEN_INDEX, |
| 89 SCREEN_BLANK = ~0UL, |
89 } ScreenIndex; | 90 } ScreenIndex; |
90 | 91 |
91 /* Image info, describing the information of the image block */ | 92 /* Image info, describing the information of the image block */ |
92 typedef struct ImageInfo { | 93 typedef struct ImageInfo { |
93 uint32_t tag; /* Tag it as a special image, like HWID */ | 94 uint32_t tag; /* Tag it as a special image, like HWID */ |
94 uint32_t width; /* Width of the image */ | 95 uint32_t width; /* Width of the image */ |
95 uint32_t height; /* Height of the image */ | 96 uint32_t height; /* Height of the image */ |
96 uint32_t format; /* File format of the image */ | 97 uint32_t format; /* File format of the image */ |
97 uint32_t compression; /* Compression method for the image file */ | 98 uint32_t compression; /* Compression method for the image file */ |
98 uint32_t original_size; /* Size of the original uncompressed image */ | 99 uint32_t original_size; /* Size of the original uncompressed image */ |
(...skipping 18 matching lines...) Expand all Loading... |
117 typedef enum Compression { | 118 typedef enum Compression { |
118 COMPRESS_NONE = 0, | 119 COMPRESS_NONE = 0, |
119 COMPRESS_EFIv1, /* The x86 BIOS only supports this */ | 120 COMPRESS_EFIv1, /* The x86 BIOS only supports this */ |
120 COMPRESS_LZMA1, /* The ARM BIOS supports LZMA1 */ | 121 COMPRESS_LZMA1, /* The ARM BIOS supports LZMA1 */ |
121 MAX_COMPRESS, | 122 MAX_COMPRESS, |
122 } Compression; | 123 } Compression; |
123 | 124 |
124 __pragma(pack(pop)) /* Support packing for MSVC. */ | 125 __pragma(pack(pop)) /* Support packing for MSVC. */ |
125 | 126 |
126 #endif /* VBOOT_REFERENCE_BMPBLK_HEADER_H_ */ | 127 #endif /* VBOOT_REFERENCE_BMPBLK_HEADER_H_ */ |
OLD | NEW |