Linux Kernel
3.7.1
|
#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_FIFO_ICAP_H_ /* by using protection macros */ |
Functions | |
int | fifo_icap_get_configuration (struct hwicap_drvdata *drvdata, u32 *FrameBuffer, u32 NumWords) |
int | fifo_icap_set_configuration (struct hwicap_drvdata *drvdata, u32 *FrameBuffer, u32 NumWords) |
u32 | fifo_icap_get_status (struct hwicap_drvdata *drvdata) |
void | fifo_icap_reset (struct hwicap_drvdata *drvdata) |
void | fifo_icap_flush_fifo (struct hwicap_drvdata *drvdata) |
#define XILINX_FIFO_ICAP_H_ /* by using protection macros */ |
Definition at line 34 of file fifo_icap.h.
void fifo_icap_flush_fifo | ( | struct hwicap_drvdata * | drvdata | ) |
int fifo_icap_get_configuration | ( | struct hwicap_drvdata * | drvdata, |
u32 * | frame_buffer, | ||
u32 | num_words | ||
) |
fifo_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.
This function reads the specified number of words from the ICAP device in the polled mode.
Definition at line 289 of file fifo_icap.c.
u32 fifo_icap_get_status | ( | struct hwicap_drvdata * | drvdata | ) |
fifo_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 160 of file fifo_icap.c.
void fifo_icap_reset | ( | struct hwicap_drvdata * | drvdata | ) |
buffer_icap_reset - Reset the logic of the icap device. : a pointer to the drvdata.
This function forces the software reset of the complete HWICAP device. All the registers will return to the default value and the FIFO is also flushed as a part of this software reset.
Definition at line 357 of file fifo_icap.c.
int fifo_icap_set_configuration | ( | struct hwicap_drvdata * | drvdata, |
u32 * | frame_buffer, | ||
u32 | num_words | ||
) |
fifo_icap_set_configuration - Send configuration data to the ICAP. : a pointer to the drvdata. : a pointer to the data to be written to the ICAP device. : the number of words (32 bit) to write to the ICAP device.
This function writes the given user data to the Write FIFO in polled mode and starts the transfer of the data to the ICAP device.
Definition at line 213 of file fifo_icap.c.