Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
buffer_icap.h File Reference
#include <linux/types.h>
#include <linux/cdev.h>
#include <linux/platform_device.h>
#include <asm/io.h>
#include "xilinx_hwicap.h"

Go to the source code of this file.

Macros

#define XILINX_BUFFER_ICAP_H_   /* by using protection macros */
 

Functions

int buffer_icap_set_configuration (struct hwicap_drvdata *drvdata, u32 *data, u32 Size)
 
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)
 

Macro Definition Documentation

#define XILINX_BUFFER_ICAP_H_   /* by using protection macros */

Definition at line 34 of file buffer_icap.h.

Function Documentation

int buffer_icap_get_configuration ( struct hwicap_drvdata drvdata,
u32 data,
u32  size 
)

buffer_icap_get_configuration - Read configuration data from the device. : a pointer to the drvdata. : Address of the data representing the partial bitstream : the size of the partial bitstream in 32 bit words.

Definition at line 326 of file buffer_icap.c.

u32 buffer_icap_get_status ( struct hwicap_drvdata drvdata)

buffer_icap_get_status - Get the contents of the status register. : a pointer to the drvdata.

The status register contains the ICAP status and the done bit.

D8 - cfgerr D7 - dalign D6 - rip D5 - in_abort_l D4 - Always 1 D3 - Always 1 D2 - Always 1 D1 - Always 1 D0 - Done bit

Definition at line 88 of file buffer_icap.c.

void buffer_icap_reset ( struct hwicap_drvdata drvdata)

buffer_icap_reset - Reset the logic of the icap device. : a pointer to the drvdata.

Writing to the status register resets the ICAP logic in an internal version of the core. For the version of the core published in EDK, this is a noop.

Definition at line 256 of file buffer_icap.c.

int buffer_icap_set_configuration ( struct hwicap_drvdata drvdata,
u32 data,
u32  size 
)

buffer_icap_set_configuration - Load a partial bitstream from system memory. : a pointer to the drvdata. : Kernel address of the partial bitstream. : the size of the partial bitstream in 32 bit words.

Definition at line 267 of file buffer_icap.c.