MCPcopy Create free account
hub / github.com/coreboot/coreboot / find_fcba

Function find_fcba

util/ifdtool/ifdtool.c:166–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166static struct fcba *find_fcba(char *image, int size)
167{
168 struct fdbar *fdb = find_fd(image, size);
169 if (!fdb)
170 return NULL;
171 struct fcba *fcba = (struct fcba *)(image + ((fdb->flmap0 & 0xff) << 4));
172 return PTR_IN_RANGE(fcba, image, size) ? fcba : NULL;
173}
174
175static struct fmba *find_fmba(char *image, int size)
176{

Callers 4

dump_fdFunction · 0.85
set_spi_frequencyFunction · 0.85
set_em100_modeFunction · 0.85
set_chipdensityFunction · 0.85

Calls 1

find_fdFunction · 0.85

Tested by

no test coverage detected