flash_info is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

flash_info variable

Syntax

static const struct npcx_flash_info flash_info[] = { [NPCX_FLASH_256KB] = { .name = "256KB Flash", .id = 0xEF4012, .size = 256 * 1024, }, [NPCX_FLASH_512KB] = { .name = "512KB Flash", .id = 0xEF4013, .size = 512 * 1024, }, [NPCX_FLASH_1MB] = { .name = "1MB Flash", .id = 0xEF4014, .size = 1024 * 1024, }, [NPCX_FLASH_UNKNOWN] = { .name = "Unknown Flash", .size = 0xFFFFFFFF, }, };

References

LocationReferrerText
npcx.c:55
static const struct npcx_flash_info flash_info[] = {
npcx.c:226npcx_get_flash()
for (uint32_t i = 0; i < ARRAY_SIZE(flash_info) - 1; i++) {
npcx.c:227npcx_get_flash()
if (flash_info[i].id == flash_id)
npcx.c:256npcx_probe()
unsigned int num_sectors = flash_info[npcx_bank->flash].size / sector_length;
npcx.c:524npcx_info()
flash_info[npcx_bank->flash].name);

Data Use

Functions reading flash_info
flash_info
Type of flash_info
flash_info
all items filtered out