]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0e6eec7c5b1c6526028e819b6ef5fb7cfb3d4ef6
treed4e1464b76c91bc11258be1a60c3d0463fa03cd6
parent88910792d18b97c87022cf096acc8de00ae0217e
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