The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/lib/check_signature.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #include <linux/io.h>
    2 #include <linux/export.h>
    3 
    4 /**
    5  *      check_signature         -       find BIOS signatures
    6  *      @io_addr: mmio address to check
    7  *      @signature:  signature block
    8  *      @length: length of signature
    9  *
   10  *      Perform a signature comparison with the mmio address io_addr. This
   11  *      address should have been obtained by ioremap.
   12  *      Returns 1 on a match.
   13  */
   14 
   15 int check_signature(const volatile void __iomem *io_addr,
   16                         const unsigned char *signature, int length)
   17 {
   18         while (length--) {
   19                 if (readb(io_addr) != *signature)
   20                         return 0;
   21                 io_addr++;
   22                 signature++;
   23         }
   24         return 1;
   25 }
   26 EXPORT_SYMBOL(check_signature);

Cache object: b3758203ef31a23f21acf85898608814


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.