Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 87 SCREEN_RECOVERY_MISSING_OS, | 87 SCREEN_RECOVERY_MISSING_OS, |
| 88 MAX_SCREEN_INDEX, | 88 MAX_SCREEN_INDEX, |
| 89 } ScreenIndex; | 89 } ScreenIndex; |
| 90 | 90 |
| 91 /* Image info, describing the information of the image block */ | 91 /* Image info, describing the information of the image block */ |
| 92 typedef struct ImageInfo { | 92 typedef struct ImageInfo { |
| 93 uint32_t tag; /* Tag it as a special image, like HWID */ | 93 uint32_t tag; /* Tag it as a special image, like HWID */ |
| 94 uint32_t width; /* Width of the image */ | 94 uint32_t width; /* Width of the image */ |
| 95 uint32_t height; /* Height of the image */ | 95 uint32_t height; /* Height of the image */ |
| 96 uint32_t format; /* File format of the image */ | 96 uint32_t format; /* File format of the image */ |
| 97 uint32_t compression; /* Compression method to the image file */ | 97 uint32_t compression; /* Compression method for the image file */ |
| 98 uint32_t original_size; /* Size of the original uncompressed image */ | 98 uint32_t original_size; /* Size of the original uncompressed image */ |
| 99 uint32_t compressed_size; /* Size of the compressed image */ | 99 uint32_t compressed_size; /* Size of the compressed image */ |
| 100 uint32_t reserved; | 100 uint32_t reserved; |
| 101 /* NOTE: actual image content follows immediately */ | 101 /* NOTE: actual image content follows immediately */ |
| 102 } __attribute__((packed)) ImageInfo; | 102 } __attribute__((packed)) ImageInfo; |
| 103 | 103 |
| 104 /* Constants for ImageInfo.tag */ | 104 /* Constants for ImageInfo.tag */ |
| 105 typedef enum ImageTag { | 105 typedef enum ImageTag { |
| 106 TAG_NONE = 0, | 106 TAG_NONE = 0, |
| 107 TAG_HWID, | 107 TAG_HWID, |
| 108 } ImageTag; | 108 } ImageTag; |
| 109 | 109 |
| 110 /* Constants for ImageInfo.format */ | 110 /* Constants for ImageInfo.format */ |
| 111 typedef enum ImageFormat { | 111 typedef enum ImageFormat { |
| 112 FORMAT_INVALID = 0, | 112 FORMAT_INVALID = 0, |
| 113 FORMAT_BMP, | 113 FORMAT_BMP, |
| 114 } ImageFormat; | 114 } ImageFormat; |
| 115 | 115 |
| 116 /* Constants for ImageInfo.compression */ | 116 /* Constants for ImageInfo.compression */ |
| 117 typedef enum Compression { | 117 typedef enum Compression { |
| 118 COMPRESS_NONE = 0, | 118 COMPRESS_NONE = 0, |
| 119 COMPRESS_EFIv1, /* The x86 BIOS only supports this */ | 119 COMPRESS_EFIv1, /* The x86 BIOS only supports this */ |
| 120 COMPRESS_TBD, /* Only on ARM? */ | 120 COMPRESS_TBD, /* Only on ARM? */ |
| 121 MAX_COMPRESS, | |
|
Randall Spangler
2011/02/10 21:45:10
COMPRESS_MAX, for consistency?
| |
| 121 } Compression; | 122 } Compression; |
| 122 | 123 |
| 123 #endif /* VBOOT_REFERENCE_BMPBLK_HEADER_H_ */ | 124 #endif /* VBOOT_REFERENCE_BMPBLK_HEADER_H_ */ |
| OLD | NEW |