/* This function uses the little endian Ethernet polynomial but seeds the function with ~0, and xor's with ~0 at the end. Note, the EFI Specification, v1.02, has a reference to Dr. Dobbs Journal, May 1994 (actually it's in May 1992).  */
static u32 efi_crc32(const void *buf, unsigned long len)
/* This function uses the little endian Ethernet polynomial but seeds the function with ~0, and xor's with ~0 at the end. Note, the EFI Specification, v1.02, has a reference to Dr. Dobbs Journal, May 1994 (actually it's in May 1992).  */
static u32 efi_crc32(const void *buf, unsigned long len)
{
	return (crc32(~0L, buf, len) ^ ~0L);
}