diff options
author | Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> | 2008-03-18 04:36:30 +1100 |
---|---|---|
committer | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2008-03-26 07:27:11 -0500 |
commit | 6b06fdbaf9eb9f208a83540265a6a82bf1049a41 (patch) | |
tree | 9ff78cf2a05ece482c2d561b46d02a7e4914b370 /drivers/char/xilinx_hwicap/buffer_icap.h | |
parent | 783142635156b05f2e425852deb8ab71e9e1882a (diff) | |
download | linux-6b06fdbaf9eb9f208a83540265a6a82bf1049a41.tar.gz linux-6b06fdbaf9eb9f208a83540265a6a82bf1049a41.tar.bz2 linux-6b06fdbaf9eb9f208a83540265a6a82bf1049a41.zip |
[POWERPC] Xilinx: hwicap: Refactor status handling code.
Both the buffer-based and fifo-based icap cores have a status
register. Previously, this was only used internally to check whether
transactions have completed. However, the status can be useful to the
main driver as well. This patch exposes these status functions to the
main driver along with some masks for the differnet bits.
Signed-off-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Diffstat (limited to 'drivers/char/xilinx_hwicap/buffer_icap.h')
-rw-r--r-- | drivers/char/xilinx_hwicap/buffer_icap.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/char/xilinx_hwicap/buffer_icap.h b/drivers/char/xilinx_hwicap/buffer_icap.h index 03184959fa00..c5b1840906b2 100644 --- a/drivers/char/xilinx_hwicap/buffer_icap.h +++ b/drivers/char/xilinx_hwicap/buffer_icap.h @@ -44,8 +44,6 @@ #include <asm/io.h> #include "xilinx_hwicap.h" -void buffer_icap_reset(struct hwicap_drvdata *drvdata); - /* Loads a partial bitstream from system memory. */ int buffer_icap_set_configuration(struct hwicap_drvdata *drvdata, u32 *data, u32 Size); @@ -54,4 +52,7 @@ int buffer_icap_set_configuration(struct hwicap_drvdata *drvdata, u32 *data, int buffer_icap_get_configuration(struct hwicap_drvdata *drvdata, u32 *data, u32 Size); +u32 buffer_icap_get_status(struct hwicap_drvdata *drvdata); +void buffer_icap_reset(struct hwicap_drvdata *drvdata); + #endif |