#include #include /** * check_signature - find BIOS signatures * @io_addr: mmio address to check * @signature: signature block * @length: length of signature * * Perform a signature comparison with the mmio address io_addr. This * address should have been obtained by ioremap. * Returns 1 on a match. */ int check_signature(const volatile void __iomem *io_addr, const unsigned char *signature, int length) { while (length--) { if (readb(io_addr) != *signature) return 0; io_addr++; signature++; } return 1; } EXPORT_SYMBOL(check_signature);
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-12-04 12:50:51 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-04 12:50:51 -0800
commit3e5de27e940d00d8d504dfb96625fb654f641509 (patch)
treeb38dbbb5c36de40798435623d8db8736d9a26bb0 /net/vmw_vsock/vmci_transport_notify.c
parent0cb65c83304a341b9d09678448d7c8b550689531 (diff)
Linux 4.9-rc8
Diffstat (limited to 'net/vmw_vsock/vmci_transport_notify.c')