#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); /> index : linux-net-next.git
Unnamed repository; edit this file 'description' to name the repository.Russell King
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2020-02-16 19:36:06 -0800
committerDavid S. Miller <davem@davemloft.net>2020-02-16 19:36:06 -0800
commitce7805513d902c07d8d4266b73b692fbdc66f440 (patch)
tree7398cb6330ba725cfc32f6ef8704f61c893303c1
parent744676e777207f4992ba4cc728a8a71352963c5b (diff)
parent0da3359a4a21535467e098ff86c555c76a1afe4b (diff)
Merge branch 'r8169-series-with-further-smaller-improvements'
Heiner Kallweit says: ==================== r8169: series with further smaller improvements Nothing too exciting. This series includes further smaller improvements. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>