#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 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/>. ! -----------------------------------------------------------------------------** !
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.
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 | |||
) |
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:
{ owner: THIS_MODULE, llseek: x353raw_lseek, read: x353raw_read, write: x353raw_write, open: x353raw_open, release: x353raw_release }
Definition at line 719 of file cxsdram353.c.
const char x353raw_name[] = "elphel_raw353" [static] |
Definition at line 129 of file cxsdram353.c.