Path: blob/master/drivers/char/xilinx_hwicap/fifo_icap.h
26288 views
/*****************************************************************************1*2* Author: Xilinx, Inc.3*4* This program is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License as published by the6* Free Software Foundation; either version 2 of the License, or (at your7* option) any later version.8*9* XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS"10* AS A COURTESY TO YOU, SOLELY FOR USE IN DEVELOPING PROGRAMS AND11* SOLUTIONS FOR XILINX DEVICES. BY PROVIDING THIS DESIGN, CODE,12* OR INFORMATION AS ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE,13* APPLICATION OR STANDARD, XILINX IS MAKING NO REPRESENTATION14* THAT THIS IMPLEMENTATION IS FREE FROM ANY CLAIMS OF INFRINGEMENT,15* AND YOU ARE RESPONSIBLE FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE16* FOR YOUR IMPLEMENTATION. XILINX EXPRESSLY DISCLAIMS ANY17* WARRANTY WHATSOEVER WITH RESPECT TO THE ADEQUACY OF THE18* IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OR19* REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM CLAIMS OF20* INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS21* FOR A PARTICULAR PURPOSE.22*23* (c) Copyright 2007-2008 Xilinx Inc.24* All rights reserved.25*26* You should have received a copy of the GNU General Public License along27* with this program; if not, write to the Free Software Foundation, Inc.,28* 675 Mass Ave, Cambridge, MA 02139, USA.29*30*****************************************************************************/3132#ifndef XILINX_FIFO_ICAP_H_ /* prevent circular inclusions */33#define XILINX_FIFO_ICAP_H_ /* by using protection macros */3435#include <linux/types.h>36#include <linux/cdev.h>37#include <linux/platform_device.h>3839#include <asm/io.h>40#include "xilinx_hwicap.h"4142/* Reads integers from the device into the storage buffer. */43int fifo_icap_get_configuration(44struct hwicap_drvdata *drvdata,45u32 *FrameBuffer,46u32 NumWords);4748/* Writes integers to the device from the storage buffer. */49int fifo_icap_set_configuration(50struct hwicap_drvdata *drvdata,51u32 *FrameBuffer,52u32 NumWords);5354u32 fifo_icap_get_status(struct hwicap_drvdata *drvdata);55void fifo_icap_reset(struct hwicap_drvdata *drvdata);56void fifo_icap_flush_fifo(struct hwicap_drvdata *drvdata);5758#endif596061