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

static int mxc_pf_uninit ( void   )  [static]

This function handles PF_IOCTL_UNINIT calls. It uninitializes the PF channels and interrupt handlers.

Returns:
This function returns 0 on success or negative error code on error.

Definition at line 257 of file mxc_pf.c.

Referenced by mxc_pf_ioctl(), and mxc_pf_release().

{
      pf_data.pf_enabled = 0;
      ipu_disable_irq(IPU_IRQ_PF_Y_OUT_EOF);
      ipu_disable_irq(IPU_IRQ_PF_U_OUT_EOF);
      ipu_disable_irq(IPU_IRQ_PF_V_OUT_EOF);

      ipu_disable_channel(MEM_PF_Y_MEM, true);
      ipu_disable_channel(MEM_PF_U_MEM, true);
      ipu_disable_channel(MEM_PF_V_MEM, true);
      ipu_uninit_channel(MEM_PF_Y_MEM);
      ipu_uninit_channel(MEM_PF_U_MEM);
      ipu_uninit_channel(MEM_PF_V_MEM);

      if (pf_data.qp_vaddr) {
            dma_free_coherent(NULL, pf_data.qp_size, pf_data.qp_vaddr,
                          pf_data.qp_paddr);
            pf_data.qp_vaddr = NULL;
      }

      return 0;
}


Generated by  Doxygen 1.6.0   Back to index