Path: blob/master/drivers/char/xilinx_hwicap/buffer_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 2003-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_BUFFER_ICAP_H_ /* prevent circular inclusions */33#define XILINX_BUFFER_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/* Loads a partial bitstream from system memory. */43int buffer_icap_set_configuration(struct hwicap_drvdata *drvdata, u32 *data,44u32 Size);4546/* Loads a partial bitstream from system memory. */47int buffer_icap_get_configuration(struct hwicap_drvdata *drvdata, u32 *data,48u32 Size);4950u32 buffer_icap_get_status(struct hwicap_drvdata *drvdata);51void buffer_icap_reset(struct hwicap_drvdata *drvdata);5253#endif545556