Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

void ipu_csi_get_window_size ( uint32_t *  width,
uint32_t *  height,
uint32_t  csi 
)

ipu_csi_get_window_size

Parameters:
width pointer to window width
height pointer to window height
csi csi 0 or csi 1

Definition at line 192 of file ipu_capture.c.

{
      uint32_t reg;
      unsigned long lock_flags;

      spin_lock_irqsave(&ipu_lock, lock_flags);

      reg = __raw_readl(CSI_ACT_FRM_SIZE(csi));
      *width = (reg & 0xFFFF) + 1;
      *height = (reg >> 16 & 0xFFFF) + 1;

      spin_unlock_irqrestore(&ipu_lock, lock_flags);
}


Generated by  Doxygen 1.6.0   Back to index