os/linux-2.6-tag--devboard-R2_10-4/arch/cris/arch-v32/drivers/elphel/cxsdram353.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/driver_numbers.h>
#include <asm/elphel/c313a.h>
#include "fpgactrl.h"
#include "framepars.h"
#include "x3x3.h"
#include "cxsdram.h"

Include dependency graph for cxsdram353.c:

Go to the source code of this file.

Defines

#define FULL_WIDTH   ( get_imageParamsThis(P_ACTUAL_WIDTH)+4 )
#define FULL_HEIGHT   ( get_imageParamsThis(P_ACTUAL_HEIGHT)+4 )
#define D(x)
#define MDF(x)
#define IMAGERAW_MODULE_DESCRIPTION   "Raw image access driver for Elphel 353 camera"
#define IMAGERAW_DRIVER_NAME   "Raw image access driver"

Functions

int * x353raw_fpn_readline (int line, int ignore)
 hardware does not support concurrent accesses, so the driver will be locked for one user
int x353raw_fpn_writeline (void)
ssize_t x353raw_fpn_read (struct file *file, char *buf, size_t count, loff_t *off)
ssize_t x353raw_fpn_write (struct file *file, const char *buf, size_t count, loff_t *off)
int * x353raw_frame_readline (int line, int ignore)
int x353raw_frame_writeline (void)
ssize_t x353raw_frame_read (struct file *file, char *buf, size_t count, loff_t *off)
ssize_t x353raw_frame_write (struct file *file, const char *buf, size_t count, loff_t *off)
loff_t x353raw_frame_lseek (struct file *file, loff_t offset, int orig)
void x353raw_frame_release (void)
int x353raw_frame_open (struct inode *inode, struct file *filp)
int x353raw_fpn_open (struct inode *inode, struct file *filp)
loff_t x353raw_fpn_lseek (struct file *file, loff_t offset, int orig)
void x353raw_fpn_release (void)
void x353raw_f_invalidate (void)
int x353raw_open (struct inode *inode, struct file *filp)
int x353raw_release (struct inode *inode, struct file *filp)
loff_t x353raw_lseek (struct file *file, loff_t offset, int orig)
ssize_t x353raw_write (struct file *file, const char *buf, size_t count, loff_t *off)
ssize_t x353raw_read (struct file *file, char *buf, size_t count, loff_t *off)
static int __init x353raw_init (void)
 module_init (x353raw_init)
 MODULE_LICENSE ("GPLv3.0")
 MODULE_AUTHOR ("Andrey Filippov <andrey@elphel.com>.")
 MODULE_DESCRIPTION (IMAGERAW_MODULE_DESCRIPTION)

Variables

static const char x353raw_name [] = "elphel_raw353"
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 linebufdirty_img = 0
static int minor_lock = 0
static struct file_operations x353raw_fops
 File operations - top.


Define Documentation

#define D ( x   ) 

Definition at line 117 of file cxsdram353.c.

#define FULL_HEIGHT   ( get_imageParamsThis(P_ACTUAL_HEIGHT)+4 )

Definition at line 87 of file cxsdram353.c.

#define FULL_WIDTH   ( get_imageParamsThis(P_ACTUAL_WIDTH)+4 )

*************************************************************************** ! FILE NAME : cxsdram353.c ! DESCRIPTION: TBD ! Copyright (C) 2002-2008 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 2008/11/27 20:04:00 elphel ! ! ! Revision 1.6 2008/10/25 20:01:33 elphel ! just put notes about not using file->f_pos in read() and write() ! ! Revision 1.5 2008/10/06 08:31:08 elphel ! snapshot, first images ! ! Revision 1.4 2008/09/20 00:29:49 elphel ! moved driver major/minor numbers to a single file - include/asm-cris/elphel/driver_numbers.h ! ! Revision 1.3 2008/09/12 00:23:58 elphel ! removed cc353.c, cc353.h ! ! Revision 1.3 2008/08/24 16:16:30 elphel ! added support for quantizer tuning (zero bin, shift) and enable writing to the /dev/ccam_img to upload test patterns for compression ! ! Revision 1.2 2008/08/18 06:03:47 elphel ! Removed disabling video SDRAM channel 0 (that should be done differently) ! ! 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 *** !

FULL_WIDTH and FULL_HEIGHT increased by 4 each to include 1

Definition at line 86 of file cxsdram353.c.

#define IMAGERAW_DRIVER_NAME   "Raw image access driver"

Definition at line 128 of file cxsdram353.c.

#define IMAGERAW_MODULE_DESCRIPTION   "Raw image access driver for Elphel 353 camera"

Definition at line 127 of file cxsdram353.c.

#define MDF ( x   ) 

Definition at line 121 of file cxsdram353.c.


Function Documentation

MODULE_AUTHOR ( "Andrey Filippov <andrey@elphel.com>."   ) 

MODULE_DESCRIPTION ( IMAGERAW_MODULE_DESCRIPTION   ) 

module_init ( x353raw_init   ) 

MODULE_LICENSE ( "GPLv3.0"   ) 

void x353raw_f_invalidate ( void   ) 

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

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

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

int* x353raw_fpn_readline ( int  line,
int  ignore 
)

hardware does not support concurrent accesses, so the driver will be locked for one user

void x353raw_fpn_release ( void   ) 

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

int x353raw_fpn_writeline ( void   ) 

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

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

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

int* x353raw_frame_readline ( int  line,
int  ignore 
)

void x353raw_frame_release ( void   ) 

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

int x353raw_frame_writeline ( void   ) 

static int __init x353raw_init ( void   )  [static]

Definition at line 728 of file cxsdram353.c.

References IMAGERAW_DRIVER_NAME, IMAGERAW_MAJOR, KERN_ERR, printk, and x353raw_name.

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

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

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

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

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


Variable Documentation

int linebuf_fpn[4096] [static]

Definition at line 132 of file cxsdram353.c.

int linebuf_img[4096] [static]

Definition at line 135 of file cxsdram353.c.

int linebufdirty_fpn = 0 [static]

Definition at line 134 of file cxsdram353.c.

int linebufdirty_img = 0 [static]

Definition at line 137 of file cxsdram353.c.

int lineinbuf_fpn [static]

Definition at line 133 of file cxsdram353.c.

int lineinbuf_img [static]

Definition at line 136 of file cxsdram353.c.

int minor_lock = 0 [static]

Definition at line 139 of file cxsdram353.c.

struct file_operations x353raw_fops [static]

Initial value:

File operations - top.

Definition at line 719 of file cxsdram353.c.

const char x353raw_name[] = "elphel_raw353" [static]

Definition at line 129 of file cxsdram353.c.


Generated on Fri Nov 28 00:07:44 2008 for elphel by  doxygen 1.5.1