Staging
v0.8.1
https://github.com/torvalds/linux
Revision d0ec0f549705b7ecfb787f02512606b08fe5b291 authored by Frank Blaschka on 06 June 2008, 10:37:48 UTC, committed by Jeff Garzik on 10 June 2008, 22:20:37 UTC
In case the xmit function drop out with an error, we have to wake
the netdevice queue to start another xmit.

Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
1 parent 345aa66
Raw File
Tip revision: d0ec0f549705b7ecfb787f02512606b08fe5b291 authored by Frank Blaschka on 06 June 2008, 10:37:48 UTC
qeth: start dev queue after tx drop error
Tip revision: d0ec0f5
check_signature.c
#include <linux/io.h>
#include <linux/module.h>

/**
 *	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);
back to top