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

Function cb_parse_gpios

payloads/libpayload/libc/coreboot.c:92–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92static void cb_parse_gpios(unsigned char *ptr, struct sysinfo_t *info)
93{
94 int i;
95 struct cb_gpios *gpios = (struct cb_gpios *)ptr;
96
97 info->num_gpios = (gpios->count < SYSINFO_MAX_GPIOS) ?
98 (gpios->count) : SYSINFO_MAX_GPIOS;
99
100 for (i = 0; i < info->num_gpios; i++)
101 info->gpios[i] = gpios->gpios[i];
102}
103
104static void cb_parse_mac_addresses(unsigned char *ptr,
105 struct sysinfo_t *info)

Callers 1

cb_parse_headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected