diff options
author | Stephen Neuendorffer <stephen.neuendorffer@xilinx.com> | 2008-03-17 13:36:30 -0400 |
---|---|---|
committer | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2008-03-26 08:27:11 -0400 |
commit | 6b06fdbaf9eb9f208a83540265a6a82bf1049a41 (patch) | |
tree | 9ff78cf2a05ece482c2d561b46d02a7e4914b370 /drivers/char/xilinx_hwicap/xilinx_hwicap.c | |
parent | 783142635156b05f2e425852deb8ab71e9e1882a (diff) |
[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/xilinx_hwicap.c')
-rw-r--r-- | drivers/char/xilinx_hwicap/xilinx_hwicap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/xilinx_hwicap/xilinx_hwicap.c b/drivers/char/xilinx_hwicap/xilinx_hwicap.c index 2284fa2a5a57..304727deaf3b 100644 --- a/drivers/char/xilinx_hwicap/xilinx_hwicap.c +++ b/drivers/char/xilinx_hwicap/xilinx_hwicap.c | |||
@@ -664,12 +664,14 @@ static int __devinit hwicap_setup(struct device *dev, int id, | |||
664 | static struct hwicap_driver_config buffer_icap_config = { | 664 | static struct hwicap_driver_config buffer_icap_config = { |
665 | .get_configuration = buffer_icap_get_configuration, | 665 | .get_configuration = buffer_icap_get_configuration, |
666 | .set_configuration = buffer_icap_set_configuration, | 666 | .set_configuration = buffer_icap_set_configuration, |
667 | .get_status = buffer_icap_get_status, | ||
667 | .reset = buffer_icap_reset, | 668 | .reset = buffer_icap_reset, |
668 | }; | 669 | }; |
669 | 670 | ||
670 | static struct hwicap_driver_config fifo_icap_config = { | 671 | static struct hwicap_driver_config fifo_icap_config = { |
671 | .get_configuration = fifo_icap_get_configuration, | 672 | .get_configuration = fifo_icap_get_configuration, |
672 | .set_configuration = fifo_icap_set_configuration, | 673 | .set_configuration = fifo_icap_set_configuration, |
674 | .get_status = fifo_icap_get_status, | ||
673 | .reset = fifo_icap_reset, | 675 | .reset = fifo_icap_reset, |
674 | }; | 676 | }; |
675 | 677 | ||