blob: 4c9dd9a3b62ac4b0266389141a4f66b9e2e34fd6 [file] [log] [blame]
Stephen Neuendorfferef141a02008-02-06 04:24:09 +11001/*****************************************************************************
2 *
3 * Author: Xilinx, Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version.
9 *
10 * XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS"
11 * AS A COURTESY TO YOU, SOLELY FOR USE IN DEVELOPING PROGRAMS AND
12 * SOLUTIONS FOR XILINX DEVICES. BY PROVIDING THIS DESIGN, CODE,
13 * OR INFORMATION AS ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE,
14 * APPLICATION OR STANDARD, XILINX IS MAKING NO REPRESENTATION
15 * THAT THIS IMPLEMENTATION IS FREE FROM ANY CLAIMS OF INFRINGEMENT,
16 * AND YOU ARE RESPONSIBLE FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE
17 * FOR YOUR IMPLEMENTATION. XILINX EXPRESSLY DISCLAIMS ANY
18 * WARRANTY WHATSOEVER WITH RESPECT TO THE ADEQUACY OF THE
19 * IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OR
20 * REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM CLAIMS OF
21 * INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
22 * FOR A PARTICULAR PURPOSE.
23 *
Stephen Neuendorfferef141a02008-02-06 04:24:09 +110024 * (c) Copyright 2007-2008 Xilinx Inc.
25 * All rights reserved.
26 *
27 * You should have received a copy of the GNU General Public License along
28 * with this program; if not, write to the Free Software Foundation, Inc.,
29 * 675 Mass Ave, Cambridge, MA 02139, USA.
30 *
31 *****************************************************************************/
32
33#ifndef XILINX_FIFO_ICAP_H_ /* prevent circular inclusions */
34#define XILINX_FIFO_ICAP_H_ /* by using protection macros */
35
36#include <linux/types.h>
37#include <linux/cdev.h>
Stephen Neuendorfferef141a02008-02-06 04:24:09 +110038#include <linux/platform_device.h>
39
40#include <asm/io.h>
41#include "xilinx_hwicap.h"
42
43/* Reads integers from the device into the storage buffer. */
44int fifo_icap_get_configuration(
45 struct hwicap_drvdata *drvdata,
46 u32 *FrameBuffer,
47 u32 NumWords);
48
49/* Writes integers to the device from the storage buffer. */
50int fifo_icap_set_configuration(
51 struct hwicap_drvdata *drvdata,
52 u32 *FrameBuffer,
53 u32 NumWords);
54
Stephen Neuendorffer6b06fdb2008-03-18 04:36:30 +110055u32 fifo_icap_get_status(struct hwicap_drvdata *drvdata);
Stephen Neuendorfferef141a02008-02-06 04:24:09 +110056void fifo_icap_reset(struct hwicap_drvdata *drvdata);
57void fifo_icap_flush_fifo(struct hwicap_drvdata *drvdata);
58
59#endif