os/linux-2.6-tag--devboard-R2_10-4/arch/cris/arch-v32/drivers/elphel/cxsdram.c File Reference

#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

intx313_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)
intx313_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 Documentation

#define D ( x   ) 

Definition at line 95 of file cxsdram.c.

#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/>. ! -----------------------------------------------------------------------------** !

Log
cxsdram353.c,v
! Revision 1.1.1.1 2007/08/17 10:23:18 elphel ! This is a fresh tree based on elphel353-2.10 ! ! Revision 1.7 2007/08/17 10:23:18 spectr_rain ! switch to GPL3 license ! ! Revision 1.6 2007/07/20 10:17:45 spectr_rain ! *** empty log message *** ! ! Revision 1.1.1.1 2007/02/23 10:11:48 elphel ! initial import into CVS ! ! Revision 1.8 2006/09/19 16:22:14 spectr_rain ! *** empty log message *** ! ! Revision 1.7 2006/09/02 22:04:17 spectr_rain ! *** empty log message *** ! ! Revision 1.6 2006/09/02 00:19:49 spectr_rain ! lock sensor while readrawimage ! ! Revision 1.5 2006/09/01 21:36:59 spectr_rain ! *** empty log message *** ! ! Revision 1.4 2006/09/01 21:16:00 spectr_rain ! *** empty log message *** ! ! Revision 1.3 2006/09/01 21:02:00 spectr_rain ! *** empty log message *** ! ! Revision 1.2 2006/09/01 18:54:40 spectr_rain ! some fixes for /dev/ccam_img (image.raw) ! ! Revision 1.1.1.1 2006/07/11 19:14:59 spectr_rain ! unwork with less than 5MPx Micron sensor, initial branch ! ! Revision 1.2 2005/05/10 21:08:49 elphel ! *** empty log message *** !

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().


Function Documentation

void ch0_dis ( void   ) 

Definition at line 461 of file cxsdram.c.

References slock.

Referenced by x313_frame_read().

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   ) 

Definition at line 455 of file cxsdram.c.

References port_csp0_addr.

void x313_f_invalidate ( void   ) 

Definition at line 611 of file cxsdram.c.

Referenced by ccam_DMA_ioctl().

loff_t x313_fpn_lseek ( struct file *  file,
loff_t  offset,
int  orig 
)

Definition at line 291 of file cxsdram.c.

Referenced by cmoscam_lseek().

int x313_fpn_open ( struct inode *  inode,
struct file *  filp 
)

Definition at line 596 of file cxsdram.c.

Referenced by cmoscam_open().

ssize_t x313_fpn_read ( struct file *  file,
char *  buf,
size_t  count,
loff_t *  off 
)

Definition at line 211 of file cxsdram.c.

Referenced by cmoscam_read().

int* x313_fpn_readline ( int  line,
int  ignore 
)

Definition at line 106 of file cxsdram.c.

Referenced by x313_fpn_read(), and x313_fpn_write().

void x313_fpn_release ( void   ) 

Definition at line 604 of file cxsdram.c.

Referenced by cmoscam_release().

ssize_t x313_fpn_write ( struct file *  file,
const char *  buf,
size_t  count,
loff_t *  off 
)

Definition at line 251 of file cxsdram.c.

Referenced by cmoscam_write().

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 
)

Definition at line 538 of file cxsdram.c.

Referenced by cmoscam_lseek().

int x313_frame_open ( struct inode *  inode,
struct file *  filp 
)

Definition at line 577 of file cxsdram.c.

Referenced by cmoscam_open().

ssize_t x313_frame_read ( struct file *  file,
char *  buf,
size_t  count,
loff_t *  off 
)

Definition at line 477 of file cxsdram.c.

Referenced by cmoscam_read().

int* x313_frame_readline ( int  line  ) 

Definition at line 335 of file cxsdram.c.

Referenced by x313_frame_read().

void x313_frame_release ( void   ) 

Definition at line 586 of file cxsdram.c.

Referenced by cmoscam_release().


Variable Documentation

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]

Definition at line 102 of file cxsdram.c.

Referenced by x313_frame_readline().

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().

int lock_flag = 0 [static]

Definition at line 450 of file cxsdram.c.

Referenced by x313_frame_read(), and x313_frame_release().

int slock = 0

Definition at line 452 of file cxsdram.c.

wait_queue_head_t vack_wait_queue

Definition at line 453 of file cxsdram.c.


Generated on Thu Aug 7 16:20:15 2008 for elphel by  doxygen 1.5.1