powerpc: Add ICSWX instruction
authorDan Streetman <ddstreet@ieee.org>
Thu, 7 May 2015 17:49:13 +0000 (13:49 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 11 May 2015 07:06:39 +0000 (15:06 +0800)
commitedc424f8cd84bbae530d8a9f86caf1923606fb24
treed4e1464b76c91bc11258be1a60c3d0463fa03cd6
parentb130e7c04f1130f241eddf72098a6e08d41d08fe
powerpc: Add ICSWX instruction

Add the asm ICSWX and ICSWEPX opcodes.  Add definitions for the
Coprocessor Request structures needed to use the icswx calls to
coprocessors.  Add icswx() function to perform the ICSWX asm
using the provided Coprocessor Command Word value and
Coprocessor Request Block structure.

This is required for communication with the NX-842 coprocessor on
a PowerNV system.

Signed-off-by: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/powerpc/include/asm/icswx.h [new file with mode: 0644]
arch/powerpc/include/asm/ppc-opcode.h