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

Function find_fmsba

util/ifdtool/ifdtool.c:208–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208static struct fmsba *find_fmsba(char *image, int size)
209{
210 struct fdbar *fdb = find_fd(image, size);
211 if (!fdb)
212 return NULL;
213 struct fmsba *fmsba = (struct fmsba *)(image + ((fdb->flmap2 & 0xff) << 4));
214 return PTR_IN_RANGE(fmsba, image, size) ? fmsba : NULL;
215}
216
217/* port from flashrom */
218static enum ich_chipset ifd1_guess_chipset(char *image, int size)

Callers 2

dump_fdFunction · 0.85
mainFunction · 0.85

Calls 1

find_fdFunction · 0.85

Tested by

no test coverage detected