#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 cxsdram.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 MD3 | ( | x | ) |
Definition at line 97 of file cxsdram.c.
Referenced by x313_fpn_lseek(), x313_fpn_open(), x313_fpn_read(), and x313_fpn_release().
#define P_ACTUAL_HEIGHT2 ( get_imageParamsR(P_ACTUAL_HEIGHT)+4 ) |
Definition at line 66 of file cxsdram.c.
Referenced by x313_fpn_lseek(), x313_fpn_open(), x313_fpn_read(), x313_fpn_write(), x313_frame_lseek(), x313_frame_open(), and x313_frame_read().
#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 cxsdram.c.
Referenced by x313_fpn_lseek(), x313_fpn_open(), x313_fpn_read(), x313_fpn_readline(), x313_fpn_write(), x313_fpn_writeline(), x313_frame_lseek(), x313_frame_open(), x313_frame_read(), and x313_frame_readline().
void ch0_dis | ( | void | ) |
void ch0_en | ( | void | ) |
Definition at line 470 of file cxsdram.c.
References port_csp0_addr, and slock.
Referenced by x313_frame_release().
void ch0_lock | ( | void | ) |
void x313_f_invalidate | ( | void | ) |
loff_t x313_fpn_lseek | ( | struct file * | file, | |
loff_t | offset, | |||
int | orig | |||
) |
int x313_fpn_open | ( | struct inode * | inode, | |
struct file * | filp | |||
) |
ssize_t x313_fpn_read | ( | struct file * | file, | |
char * | buf, | |||
size_t | count, | |||
loff_t * | off | |||
) |
void x313_fpn_release | ( | void | ) |
ssize_t x313_fpn_write | ( | struct file * | file, | |
const char * | buf, | |||
size_t | count, | |||
loff_t * | off | |||
) |
int x313_fpn_writeline | ( | void | ) |
Definition at line 154 of file cxsdram.c.
Referenced by x313_fpn_readline(), and x313_fpn_release().
loff_t x313_frame_lseek | ( | struct file * | file, | |
loff_t | offset, | |||
int | orig | |||
) |
int x313_frame_open | ( | struct inode * | inode, | |
struct file * | filp | |||
) |
ssize_t x313_frame_read | ( | struct file * | file, | |
char * | buf, | |||
size_t | count, | |||
loff_t * | off | |||
) |
void x313_frame_release | ( | void | ) |
int linebuf_fpn[4096] [static] |
Definition at line 99 of file cxsdram.c.
Referenced by x313_fpn_readline(), and x313_fpn_writeline().
int linebuf_img[4096] [static] |
int linebufdirty_fpn = 0 [static] |
Definition at line 101 of file cxsdram.c.
Referenced by x313_f_invalidate(), x313_fpn_open(), x313_fpn_readline(), x313_fpn_release(), x313_fpn_write(), x313_fpn_writeline(), and x313_frame_open().
int lineinbuf_fpn [static] |
Definition at line 100 of file cxsdram.c.
Referenced by x313_f_invalidate(), x313_fpn_open(), x313_fpn_readline(), and x313_fpn_writeline().
int lineinbuf_img [static] |
Definition at line 103 of file cxsdram.c.
Referenced by x313_f_invalidate(), x313_frame_open(), and x313_frame_readline().
Definition at line 450 of file cxsdram.c.
Referenced by x313_frame_read(), and x313_frame_release().
wait_queue_head_t vack_wait_queue |