summaryrefslogtreecommitdiff
path: root/arch/sparc/crypto/opcodes.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-09-15 16:06:30 (GMT)
committerDavid S. Miller <davem@davemloft.net>2012-09-15 16:06:30 (GMT)
commit1080362425793f67e36dc690973e13e4a9631b4d (patch)
tree7c41ddc540679c9782ca9b448cbca8f52e9b6d47 /arch/sparc/crypto/opcodes.h
parentc69ad0a3f7d871aa61fb669fb41c951df6660a61 (diff)
downloadlinux-1080362425793f67e36dc690973e13e4a9631b4d.tar.xz
sparc64: Adjust crypto priorities.
Make the crypto opcode implementations have a higher priority than those provides by the ring buffer based Niagara crypto device. Also, several crypto opcode hashes were not setting the priority value at all. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/crypto/opcodes.h')
-rw-r--r--arch/sparc/crypto/opcodes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc/crypto/opcodes.h b/arch/sparc/crypto/opcodes.h
index b6c4a15..19cbaea 100644
--- a/arch/sparc/crypto/opcodes.h
+++ b/arch/sparc/crypto/opcodes.h
@@ -1,6 +1,8 @@
#ifndef _OPCODES_H
#define _OPCODES_H
+#define SPARC_CR_OPCODE_PRIORITY 300
+
#define F3F(x,y,z) (((x)<<30)|((y)<<19)|((z)<<5))
#define FPD_ENCODE(x) (((x) >> 5) | ((x) & ~(0x20)))