os/linux-2.6-tag--devboard-R2_10-4/arch/cris/arch-v32/drivers/elphel/cxdma.h

Go to the documentation of this file.
00001 // FILE NAME  : cxsdma.h
00002 // read/write image and FPN buffers from SDRAM
00003 
00004 #include <asm/elphel/ext353.h>
00005 #include <linux/poll.h>
00006 void x313_dma_start(void);
00007 // int x313_dma_start_raw(void);
00008 int  x313_dma_stop(void);
00009 void    x313_dma_reset_chain(void);
00010 
00011 unsigned long x313_dma_init(void);
00012 int  x313_JPEG_cmd(int cmd);
00013 int  x313_get_JPEG_ctrl(void);
00014 
00015 int  x313_JPEG_ctrl(int cmd);
00016 void setJPEGHeader (int quality, int width, int height);
00017 
00018 
00019 int cmoscam_open_dma(struct inode *inode, struct file *filp);
00020 loff_t  x313_dma_lseek(struct file * file, loff_t offset, int orig);
00021 ssize_t x313_dma_read(struct file * file, char * buf, size_t count, loff_t *off);
00022 int x313_mmap_dma (struct file *filp, struct vm_area_struct *vma);
00023 ssize_t x313_dma_write(struct file * file, const char * buf, size_t count, loff_t *off);
00024 void x313_dma_update_jpeg_header(void); // uses channel 0 SDRAM FPGA settings - channel 0 should be pro
00025 
00026 #define QTABLES_FPGA    0x01
00027 #define QTABLES_EXIF    0x02
00028 #define QTABLES_TABLE   0x04
00029 //void           jpeg_set_quality (int quality, int writeFPGA);
00030 void           jpeg_set_quality (int quality, int target, void *table);
00031 
00032 // EXT functions
00033 extern void ext_fill_jpeg_mmap_desc(struct ext_jpeg_mmap_desc_t *mdesc);
00034 extern void ext_fill_jpeg_mmap_desc_(struct _ext_jpeg_mmap_desc_t *mdesc);
00035 
00036 #define JPEG_HEADER_SIZE    0x26f
00037 
00038 
00039 extern unsigned char *jpeg_header_sbuffer_ptr;

Generated on Thu Aug 7 16:18:59 2008 for elphel by  doxygen 1.5.1