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

Go to the documentation of this file.
00001 #ifndef _SENSOR_COMMON_H
00002 #define _SENSOR_COMMON_H
00003 
00004 //extern struct sensor_t sensor; // current sensor (will be copied to by sensor driver), made external for the cc353.c to read/write i2c
00005 extern struct sensorproc_t * sensorproc;
00008 #define FPGA_TABLE_CHUNK 64 // up to 64 words to send to the table/from histogram on a single IRQ-off transfer
00009 //void fpga_table_write_nice (int addr, int len, unsigned long * data);
00010 //void fpga_hist_read_nice (int addr, int len, unsigned long * data);
00011 #ifdef CONFIG_ETRAX_ELPHEL_MT9X001
00012   #include "mt9x001.h"
00013 #endif
00014 int  camSeqGetJPEG_wp(void);
00015 int  camSeqGetJPEG_rp(void);
00016 void camSeqSetJPEG_rp(int p);
00018 extern unsigned long  * ccam_dma_buf_ptr;
00019 #define X313_LENGTH_MASK      0xff000000
00020 #define X313_PADDED_FRAME(x)((((x)+67+CCAM_MMAP_META ) >>2) & 0xfffffff8)
00021 #define X313_BUFFSUB(x,y) (((x)>=(y))? ((x)-(y)) : ((x)+ (CCAM_DMA_SIZE-(y))))
00022 #define X313_BUFFADD(x,y) ((((x) + (y))<=CCAM_DMA_SIZE)? ((x) + (y)) : ((x) - (CCAM_DMA_SIZE-(y))))
00023 
00024 int init_FPGA(void); 
00025 
00026 void reset_compressor(void);
00027 void camera_interrupts (int on);
00029 #define PROFILE_NOW(x) if (get_globalParam(G_TASKLET_CTL) & (1 << TASKLET_CTL_ENPROF)) \
00030                            X313_GET_FPGA_TIME((pastpars[getThisFrameNumber() & PASTPARS_SAVE_ENTRIES_MASK].past_pars[(PP_PROFILE_START + 0) + ((x)<<1)]),\
00031                                               (pastpars[getThisFrameNumber() & PASTPARS_SAVE_ENTRIES_MASK].past_pars[(PP_PROFILE_START + 1) + ((x)<<1)]))
00033 #define PROFILE_NEXT(x) if (get_globalParam(G_TASKLET_CTL) & (1 << TASKLET_CTL_ENPROF)) \
00034                            X313_GET_FPGA_TIME((pastpars[(getThisFrameNumber()+1) & PASTPARS_SAVE_ENTRIES_MASK].past_pars[(PP_PROFILE_START + 0) + ((x)<<1)]),\
00035                                               (pastpars[(getThisFrameNumber()+1) & PASTPARS_SAVE_ENTRIES_MASK].past_pars[(PP_PROFILE_START + 1) + ((x)<<1)]))
00036 
00037 #endif

Generated on Fri Nov 28 00:06:23 2008 for elphel by  doxygen 1.5.1