#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 EXT353_MAJOR 124 |
| int exif_header_length | ( | void | ) |
| static void __exit ext353__exit | ( | void | ) | [static] |
| 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] |
| int ext353__release | ( | struct inode * | inode, | |
| struct file * | filp | |||
| ) | [static] |
| 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 | ) |
| unsigned long* ccam_dma |
| 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[] |
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().
| unsigned long t_sign |
Referenced by get_image_time().
1.5.1