summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/genwqe
diff options
context:
space:
mode:
authorKleber Sacilotto de Souza2014-06-04 15:57:50 +0200
committerGreg Kroah-Hartman2014-07-09 23:14:27 +0200
commitc1f732ad767e37bd1d41043cbdefc0874b4d05e5 (patch)
treee4e80d6cd088b93acdb7d8078bb7d726a37f8ffc /include/uapi/linux/genwqe
parentthunderbolt: Correct the size argument to devm_kzalloc (diff)
downloadkernel-qcow2-linux-c1f732ad767e37bd1d41043cbdefc0874b4d05e5.tar.gz
kernel-qcow2-linux-c1f732ad767e37bd1d41043cbdefc0874b4d05e5.tar.xz
kernel-qcow2-linux-c1f732ad767e37bd1d41043cbdefc0874b4d05e5.zip
GenWQE: Add sysfs interface for bitstream reload
This patch adds an interface on sysfs for userspace to request a card bitstream reload. It sets the appropriate register and try to perform a fundamental reset on the PCIe slot for the card to reload the bitstream from the chosen partition. Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com> Acked-by: Frank Haverkamp <haver@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/genwqe')
-rw-r--r--include/uapi/linux/genwqe/genwqe_card.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/genwqe/genwqe_card.h b/include/uapi/linux/genwqe/genwqe_card.h
index 795e957bb840..4fc065f29255 100644
--- a/include/uapi/linux/genwqe/genwqe_card.h
+++ b/include/uapi/linux/genwqe/genwqe_card.h
@@ -328,6 +328,7 @@ enum genwqe_card_state {
GENWQE_CARD_UNUSED = 0,
GENWQE_CARD_USED = 1,
GENWQE_CARD_FATAL_ERROR = 2,
+ GENWQE_CARD_RELOAD_BITSTREAM = 3,
GENWQE_CARD_STATE_MAX,
};