#include <linux/module.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/autoconf.h>
#include <asm/system.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/delay.h>
#include <asm/uaccess.h>
#include <asm/elphel/c313a.h>
#include "fpgactrl.h"
#include "x3x3.h"
#include "cc3x3.h"
#include "cxsdram.h"
Include dependency graph for cxsdram353.c:
Go to the source code of this file.
Defines | |
#define | P_ACTUAL_WIDTH2 ( get_imageParamsR(P_ACTUAL_WIDTH)+4 ) |
#define | P_ACTUAL_HEIGHT2 ( get_imageParamsR(P_ACTUAL_HEIGHT)+4 ) |
#define | D(x) |
#define | MD3(x) |
Functions | |
int * | x313_fpn_readline (int line, int ignore) |
int | x313_fpn_writeline (void) |
ssize_t | x313_fpn_read (struct file *file, char *buf, size_t count, loff_t *off) |
ssize_t | x313_fpn_write (struct file *file, const char *buf, size_t count, loff_t *off) |
loff_t | x313_fpn_lseek (struct file *file, loff_t offset, int orig) |
int * | x313_frame_readline (int line) |
void | ch0_lock (void) |
void | ch0_dis (void) |
void | ch0_en (void) |
ssize_t | x313_frame_read (struct file *file, char *buf, size_t count, loff_t *off) |
loff_t | x313_frame_lseek (struct file *file, loff_t offset, int orig) |
int | x313_frame_open (struct inode *inode, struct file *filp) |
void | x313_frame_release (void) |
int | x313_fpn_open (struct inode *inode, struct file *filp) |
void | x313_fpn_release (void) |
void | x313_f_invalidate (void) |
Variables | |
static int | linebuf_fpn [4096] |
static int | lineinbuf_fpn |
static int | linebufdirty_fpn = 0 |
static int | linebuf_img [4096] |
static int | lineinbuf_img |
static int | lock_flag = 0 |
int | slock = 0 |
wait_queue_head_t | vack_wait_queue |
#define D | ( | x | ) |
Definition at line 95 of file cxsdram353.c.
#define MD3 | ( | x | ) |
Definition at line 97 of file cxsdram353.c.
#define P_ACTUAL_HEIGHT2 ( get_imageParamsR(P_ACTUAL_HEIGHT)+4 ) |
Definition at line 66 of file cxsdram353.c.
#define P_ACTUAL_WIDTH2 ( get_imageParamsR(P_ACTUAL_WIDTH)+4 ) |
*************************************************************************** ! FILE NAME : cxsdram353.c ! DESCRIPTION: TBD ! Copyright (C) 2002-2007 Elphel, Inc ! -----------------------------------------------------------------------------** ! ! This program is free software: you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation, either version 3 of the License, or ! (at your option) any later version. ! ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with this program. If not, see <http://www.gnu.org/licenses/>. ! -----------------------------------------------------------------------------** !
P_ACTUAL_WIDTH2 and P_ACTUAL_HEIGHT2 increased by 4 each to include 1
Definition at line 65 of file cxsdram353.c.
void ch0_dis | ( | void | ) |
void ch0_en | ( | void | ) |
void ch0_lock | ( | void | ) |
void x313_f_invalidate | ( | void | ) |
Definition at line 611 of file cxsdram353.c.
References linebufdirty_fpn, lineinbuf_fpn, and lineinbuf_img.
loff_t x313_fpn_lseek | ( | struct file * | file, | |
loff_t | offset, | |||
int | orig | |||
) |
Definition at line 291 of file cxsdram353.c.
References D, MD3, P_ACTUAL_HEIGHT2, P_ACTUAL_WIDTH2, and printk.
int x313_fpn_open | ( | struct inode * | inode, | |
struct file * | filp | |||
) |
Definition at line 596 of file cxsdram353.c.
References linebufdirty_fpn, lineinbuf_fpn, MD3, P_ACTUAL_HEIGHT2, P_ACTUAL_WIDTH2, and printk.
ssize_t x313_fpn_read | ( | struct file * | file, | |
char * | buf, | |||
size_t | count, | |||
loff_t * | off | |||
) |
Definition at line 211 of file cxsdram353.c.
References MD3, P_ACTUAL_HEIGHT2, P_ACTUAL_WIDTH2, printk, and x313_fpn_readline().
Definition at line 106 of file cxsdram353.c.
References D, linebuf_fpn, linebufdirty_fpn, lineinbuf_fpn, P_ACTUAL_WIDTH2, port_csp0_addr, port_csp4_addr, printk, udelay, x313_fpn_writeline(), X313_INIT_SDCHAN, X313_MAP_FPN, X313_SR, X313_WA_SD_MODE, X313_WA_SD_PIOWIN, and X313_WA_SDPIO_NEXT.
void x313_fpn_release | ( | void | ) |
Definition at line 604 of file cxsdram353.c.
References linebufdirty_fpn, MD3, printk, and x313_fpn_writeline().
ssize_t x313_fpn_write | ( | struct file * | file, | |
const char * | buf, | |||
size_t | count, | |||
loff_t * | off | |||
) |
Definition at line 251 of file cxsdram353.c.
References linebufdirty_fpn, P_ACTUAL_HEIGHT2, P_ACTUAL_WIDTH2, and x313_fpn_readline().
int x313_fpn_writeline | ( | void | ) |
Definition at line 154 of file cxsdram353.c.
References D, linebuf_fpn, linebufdirty_fpn, lineinbuf_fpn, P_ACTUAL_WIDTH2, port_csp0_addr, printk, udelay, X313_INIT_SDCHAN, X313_MAP_FPN, X313_SR, X313_WA_SD_MODE, X313_WA_SD_PIOWIN, and X313_WA_SDPIO_NEXT.
loff_t x313_frame_lseek | ( | struct file * | file, | |
loff_t | offset, | |||
int | orig | |||
) |
Definition at line 538 of file cxsdram353.c.
References get_imageParamsR(), P_ACTUAL_HEIGHT2, P_ACTUAL_WIDTH2, P_BGFRAME, and P_BITS.
int x313_frame_open | ( | struct inode * | inode, | |
struct file * | filp | |||
) |
Definition at line 577 of file cxsdram353.c.
References get_imageParamsR(), linebufdirty_fpn, lineinbuf_img, P_ACTUAL_HEIGHT2, P_ACTUAL_WIDTH2, P_BGFRAME, and P_BITS.
ssize_t x313_frame_read | ( | struct file * | file, | |
char * | buf, | |||
size_t | count, | |||
loff_t * | off | |||
) |
Definition at line 477 of file cxsdram353.c.
References ch0_dis(), get_imageParamsR(), lock_flag, P_ACTUAL_HEIGHT2, P_ACTUAL_WIDTH2, P_BGFRAME, P_BITS, P_PAGE_READ, printk, and x313_frame_readline().
Definition at line 335 of file cxsdram353.c.
References D, get_imageParamsR(), linebuf_img, lineinbuf_img, P_ACTUAL_WIDTH2, P_BGFRAME, P_BITS, port_csp0_addr, port_csp4_addr, printk, udelay, X313_INIT_SDCHAN, X313_SR, X313_WA_SD_MODE, X313_WA_SD_PIOWIN, and X313_WA_SDPIO_NEXT.
void x313_frame_release | ( | void | ) |
int linebuf_fpn[4096] [static] |
Definition at line 99 of file cxsdram353.c.
int linebuf_img[4096] [static] |
Definition at line 102 of file cxsdram353.c.
int linebufdirty_fpn = 0 [static] |
Definition at line 101 of file cxsdram353.c.
int lineinbuf_fpn [static] |
Definition at line 100 of file cxsdram353.c.
int lineinbuf_img [static] |
Definition at line 103 of file cxsdram353.c.
Definition at line 450 of file cxsdram353.c.
Definition at line 452 of file cxsdram353.c.
wait_queue_head_t vack_wait_queue |
Definition at line 453 of file cxsdram353.c.