MCPcopy Create free account
hub / github.com/F-Stack/f-stack / smapi_header_cksum

Function smapi_header_cksum

freebsd/i386/bios/smapi.c:134–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134static int
135smapi_header_cksum (struct smapi_bios_header *header)
136{
137 u_int8_t *ptr;
138 u_int8_t cksum;
139 int i;
140
141 ptr = (u_int8_t *)header;
142 cksum = 0;
143 for (i = 0; i < header->length; i++) {
144 cksum += ptr[i];
145 }
146
147 return (cksum);
148}
149
150static void
151smapi_identify (driver_t *driver, device_t parent)

Callers 1

smapi_probeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected