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

#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/wait.h>
#include <asm/unistd.h>
#include <asm/semaphore.h>
#include <asm/atomic.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/vmalloc.h>
#include <linux/rwsem.h>
#include <linux/netdevice.h>
#include <linux/skbuff.h>
#include <linux/time.h>
#include <asm/io.h>
#include <asm/page.h>
#include "fpgactrl.h"
#include <asm/elphel/ext353.h>
#include <asm/elphel/c313a.h>
#include "x3x3.h"
#include "cxdma.h"
#include "exif.h"

Include dependency graph for ext353.c:

Go to the source code of this file.

Defines

#define EXT353_MAJOR   124

Functions

int exif_header_length (void)
void get_image_time (unsigned long *t)
static int ext353__open (struct inode *inode, struct file *filp)
static int ext353__ioctl (struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg)
static int ext353__release (struct inode *inode, struct file *filp)
static int ext353__mmap (struct file *filp, struct vm_area_struct *vma)
static int __init ext353__init (void)
static void __exit ext353__exit (void)
 module_init (ext353__init)
 module_exit (ext353__exit)

Variables

unsigned long * ccam_dma
unsigned long t_sign
image_t image
unsigned char exif_header []
exif_desc_t exif_desc
static struct file_operations ext353__fops


Define Documentation

#define EXT353_MAJOR   124

Definition at line 62 of file ext353.c.

Referenced by ext353__exit(), and ext353__init().


Function Documentation

int exif_header_length ( void   ) 

Definition at line 123 of file ext353.c.

References exif_header.

static void __exit ext353__exit ( void   )  [static]

Definition at line 301 of file ext353.c.

References EXT353_MAJOR.

static int __init ext353__init ( void   )  [static]

Definition at line 289 of file ext353.c.

References ext353__fops, EXT353_MAJOR, KERN_ERR, and printk.

static int ext353__ioctl ( struct inode *  inode,
struct file *  filp,
unsigned int  cmd,
unsigned long  arg 
) [static]

Definition at line 215 of file ext353.c.

References exif_desc_t::artist, exif_desc_t::date_time, exif_desc_t::date_time_or, EXIF_ARTIST_LEN, EXIF_DATE_TIME_LEN, EXIF_DATE_TIME_OR_LEN, exif_desc, EXIF_FIRMWARE_LEN, EXIF_IOC_FIRMWARE_SET, EXIF_IOC_MAC_SET, EXIF_IOC_SUBSEC_OR_SET, EXIF_IOC_TIME_GET, EXIF_IOC_TIME_OR_SET, EXIF_IOC_TIME_SET, EXIF_SUBSEC_OR_LEN, EXT_GET_TIME_SYNC, EXT_JPEG_MMAP_DESC, exif_desc_t::firmware, get_image_time(), port_csp0_addr, exif_desc_t::subsec, t, X313_RA_RTC_SEC, X313_RA_RTC_USEC, and X313_WA_RTC_LATCH.

static int ext353__mmap ( struct file *  filp,
struct vm_area_struct *  vma 
) [static]

Definition at line 195 of file ext353.c.

References _ext_jpeg_mmap_desc_t::exif_length, _ext_jpeg_mmap_desc_t::exif_start, _ext_jpeg_mmap_desc_t::jpeg_length, and _ext_jpeg_mmap_desc_t::jpeg_start.

int ext353__open ( struct inode *  inode,
struct file *  filp 
) [static]

Definition at line 191 of file ext353.c.

int ext353__release ( struct inode *  inode,
struct file *  filp 
) [static]

Definition at line 285 of file ext353.c.

void get_image_time ( unsigned long *  t  ) 

Definition at line 148 of file ext353.c.

References camSeqGetJPEG_wp(), ccam_dma, and t_sign.

Referenced by ext353__ioctl().

module_exit ( ext353__exit   ) 

module_init ( ext353__init   ) 


Variable Documentation

unsigned long* ccam_dma

Definition at line 241 of file circbuf.c.

Referenced by get_image_time().

struct exif_desc_t exif_desc

Initial value:

 {
        .date_time = {
                '1', '9', '7', '0', ':', '0', '1', ':', '3', '2', ' ', '2', '3', ':', '5', '9', ':', '5', '9', '\0'
        },
        .date_time_or = {
                '1', '9', '7', '0', ':', '0', '1', ':', '3', '2', ' ', '2', '3', ':', '5', '9', ':', '6', '0', '\0'
        },
        .subsec = {
                '0', '0', '0', '0', '0', '1', '\0'
        },
        .artist = {
                'M', 'A', ':', 'C', ' ', ':', 'E', 'T', ':', 'H', 'E', ':', 'R', 'N', ':', 'E', 'T', '\0'
        },
        .firmware = {
                'c', '3', '5', '3', ' ', ' ', ' ', ' ', ' ', ' ',
                ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
                ' ', ' ', ' ', ' ', ' ', ' ', ' ',
        },
        .exp = { 1, 10000 },
}

Definition at line 127 of file ext353.c.

Referenced by ext353__ioctl().

unsigned char exif_header[]

Definition at line 73 of file ext353.c.

Referenced by exif_header_length().

struct file_operations ext353__fops [static]

Initial value:

 {
        owner:          THIS_MODULE,
        open:           ext353__open,
        ioctl:          ext353__ioctl,
        mmap:           ext353__mmap,
        release:        ext353__release,
}

Definition at line 183 of file ext353.c.

Referenced by ext353__init().

struct image_t image

Initial value:

 {
        .tv_sec = 0,
        .tv_usec = 0,
}

Definition at line 68 of file ext353.c.

unsigned long t_sign

Referenced by get_image_time().


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