summaryrefslogtreecommitdiff
path: root/src/t20/nvboot_bct_t20.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/t20/nvboot_bct_t20.h')
-rw-r--r--src/t20/nvboot_bct_t20.h66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/t20/nvboot_bct_t20.h b/src/t20/nvboot_bct_t20.h
index 8585cdb..8625a93 100644
--- a/src/t20/nvboot_bct_t20.h
+++ b/src/t20/nvboot_bct_t20.h
@@ -97,7 +97,7 @@ enum {NVBOOT_CMAC_AES_HASH_LENGTH = 4};
* Defines the storage for a hash value (128 bits).
*/
typedef struct nvboot_hash_rec {
- u_int32_t hash[NVBOOT_CMAC_AES_HASH_LENGTH];
+ uint32_t hash[NVBOOT_CMAC_AES_HASH_LENGTH];
} nvboot_hash;
/* Defines the params that can be configured for NAND devices. */
@@ -107,19 +107,19 @@ typedef struct nvboot_nand_params_rec {
* If it is set to 18, then clock source to Nand controller is
* 432 / 18 = 24MHz.
*/
- u_int8_t clock_divider;
+ uint8_t clock_divider;
/* Specifies the value to be programmed to Nand Timing Register 1 */
- u_int32_t nand_timing;
+ uint32_t nand_timing;
/* Specifies the value to be programmed to Nand Timing Register 2 */
- u_int32_t nand_timing2;
+ uint32_t nand_timing2;
/* Specifies the block size in log2 bytes */
- u_int8_t block_size_log2;
+ uint8_t block_size_log2;
/* Specifies the page size in log2 bytes */
- u_int8_t page_size_log2;
+ uint8_t page_size_log2;
} nvboot_nand_params;
/* Defines various data widths supported. */
@@ -152,7 +152,7 @@ typedef struct nvboot_sdmmc_params_rec {
* which is PLLP running at 432MHz. If it is set to 18, then the SDMMC
* controller runs at 432/18 = 24MHz.
*/
- u_int8_t clock_divider;
+ uint8_t clock_divider;
/* Specifies the data bus width. Supported data widths are 4/8 bits. */
nvboot_sdmmc_data_width data_width;
@@ -163,7 +163,7 @@ typedef struct nvboot_sdmmc_params_rec {
* supported within the power class range (0 to Max) if the selected
* data width cannot be used at the chosen clock frequency.
*/
- u_int8_t max_power_class_supported;
+ uint8_t max_power_class_supported;
} nvboot_sdmmc_params;
typedef enum {
@@ -203,14 +203,14 @@ typedef struct nvboot_spiflash_params_rec {
* FAST_READ at 40MHz: 11
* FAST_READ at 50MHz: 9
*/
- u_int8_t clock_divider;
+ uint8_t clock_divider;
/**
* Specifies the type of command for read operations.
* NV_FALSE specifies a NORMAL_READ Command
* NV_TRUE specifies a FAST_READ Command
*/
- u_int8_t read_command_type_fast;
+ uint8_t read_command_type_fast;
} nvboot_spiflash_params;
/**
@@ -257,13 +257,13 @@ typedef enum {
* the device.
*/
typedef struct nv_bootloader_info_rec {
- u_int32_t version;
- u_int32_t start_blk;
- u_int32_t start_page;
- u_int32_t length;
- u_int32_t load_addr;
- u_int32_t entry_point;
- u_int32_t attribute;
+ uint32_t version;
+ uint32_t start_blk;
+ uint32_t start_page;
+ uint32_t length;
+ uint32_t load_addr;
+ uint32_t entry_point;
+ uint32_t attribute;
nvboot_hash crypto_hash;
} nv_bootloader_info;
@@ -271,10 +271,10 @@ typedef struct nv_bootloader_info_rec {
* Defines the bad block table structure stored in the BCT.
*/
typedef struct nvboot_badblock_table_rec {
- u_int32_t entries_used;
- u_int8_t virtual_blk_size_log2;
- u_int8_t block_size_log2;
- u_int8_t bad_blks[NVBOOT_BAD_BLOCK_TABLE_SIZE / 8];
+ uint32_t entries_used;
+ uint8_t virtual_blk_size_log2;
+ uint8_t block_size_log2;
+ uint8_t bad_blks[NVBOOT_BAD_BLOCK_TABLE_SIZE / 8];
} nvboot_badblock_table;
/**
@@ -288,19 +288,19 @@ typedef struct nvboot_badblock_table_rec {
typedef struct nvboot_config_table_rec {
nvboot_hash crypto_hash;
nvboot_hash random_aes_blk;
- u_int32_t boot_data_version;
- u_int32_t block_size_log2;
- u_int32_t page_size_log2;
- u_int32_t partition_size;
- u_int32_t num_param_sets;
+ uint32_t boot_data_version;
+ uint32_t block_size_log2;
+ uint32_t page_size_log2;
+ uint32_t partition_size;
+ uint32_t num_param_sets;
nvboot_dev_type dev_type[NVBOOT_BCT_MAX_PARAM_SETS];
nvboot_dev_params dev_params[NVBOOT_BCT_MAX_PARAM_SETS];
- u_int32_t num_sdram_sets;
+ uint32_t num_sdram_sets;
nvboot_sdram_params sdram_params[NVBOOT_BCT_MAX_SDRAM_SETS];
nvboot_badblock_table badblock_table;
- u_int32_t bootloader_used;
+ uint32_t bootloader_used;
nv_bootloader_info bootloader[NVBOOT_MAX_BOOTLOADERS];
- u_int8_t customer_data[NVBOOT_BCT_CUSTOMER_DATA_SIZE];
+ uint8_t customer_data[NVBOOT_BCT_CUSTOMER_DATA_SIZE];
/*
* ODMDATA is stored in the BCT in IRAM by the BootROM.
@@ -308,9 +308,9 @@ typedef struct nvboot_config_table_rec {
* on T20 and T30 BCTs, which are locked down. If this changes
* in new chips, we can revisit this algorithm.
*/
- u_int32_t odm_data;
- u_int32_t reserved1;
- u_int8_t enable_fail_back;
- u_int8_t reserved[NVBOOT_BCT_RESERVED_SIZE];
+ uint32_t odm_data;
+ uint32_t reserved1;
+ uint8_t enable_fail_back;
+ uint8_t reserved[NVBOOT_BCT_RESERVED_SIZE];
} nvboot_config_table;
#endif /* #ifndef INCLUDED_NVBOOT_BCT_T20_H */