dev_dbg(g_dev_ptr,"circbuf_all_lseek, minor = 0x%x\n",minor);
dev_dbg(g_dev_ptr,"circbuf_all_lseek, minor = 0x%x\n",minor);
switch(minor){
caseCMOSCAM_MINOR_CIRCBUF:
switch(dev_type){
caseCIRCBUF_MINOR:
returncircbuf_lseek(file,offset,orig);
returncircbuf_lseek(file,offset,orig);
caseCMOSCAM_MINOR_JPEAGHEAD:
caseJPEGHEAD_MINOR:
if(orig==SEEK_END&&offset>0){
if(orig==SEEK_END&&offset>0){
rp=BYTE2DW(offset)&(~7);// convert to index to long, align to 32-bytes
rp=BYTE2DW(offset)&(~7);// convert to index to long, align to 32-bytes
//fp = (struct interframe_params_t *) &ccam_dma_buf_ptr[X313_BUFFSUB(rp, 8)]; //! 32 bytes before the frame pointer, may roll-over to the end of ccam_dma_buf_ptr
printk("\n========== IOCTL is not implemented in circbuf_all_ioctl, minor=0x%x, cmd=0x%x, _IOC_NR(cmd)=0x%x, arg=0x%x\n",privData->minor,(int)cmd,_IOC_NR(cmd),(int)arg);