psp_vpfeApi.h
Upload User: guoyp0769
Upload Date: 2021-02-08
Package Size: 1656k
Code Size: 7k
Category:

SCM

Development Platform:

HTML/CSS

  1. /******************************************************************************
  2. **+-------------------------------------------------------------------------+**
  3. **|                            ****                                         |**
  4. **|                            ****                                         |**
  5. **|                            ******o***                                   |**
  6. **|                      ********_///_****                                  |**
  7. **|                      ***** /_//_/ ****                                  |**
  8. **|                       ** ** (__/ ****                                   |**
  9. **|                           *********                                     |**
  10. **|                            ****                                         |**
  11. **|                            ***                                          |**
  12. **|                                                                         |**
  13. **|         Copyright (c) 2006-2010 Texas Instruments Incorporated          |**
  14. **|                        ALL RIGHTS RESERVED                              |**
  15. **|                                                                         |**
  16. **| Permission is hereby granted to licensees of Texas Instruments          |**
  17. **| Incorporated (TI) products to use this computer program for the sole    |**
  18. **| purpose of implementing a licensee product based on TI products.        |**
  19. **| No other rights to reproduce, use, or disseminate this computer         |**
  20. **| program, whether in part or in whole, are granted.                      |**
  21. **|                                                                         |**
  22. **| TI makes no representation or warranties with respect to the            |**
  23. **| performance of this computer program, and specifically disclaims        |**
  24. **| any responsibility for any damages, special or consequential,           |**
  25. **| connected with the use of this program.                                 |**
  26. **|                                                                         |**
  27. **+-------------------------------------------------------------------------+**
  28. ******************************************************************************/
  29. /**
  30.  *  file   psp_vpfeApi.h
  31.  *
  32.  * brief   File contains defination of API used by DDA layer
  33.  *
  34.  *  This file contains APIs defination of APIs that are wrapper APIs for DDC
  35.  *  layer. These APIs will be called by DDA layer.
  36.  *
  37.  *  (C) Copyright 2010, Texas Instruments, Inc
  38.  *
  39.  *  note       Set tabstop to 4 (:se ts=4) while viewing this file in an
  40.  *              editor
  41.  *
  42.  *  author     Maulik Desai
  43.  *
  44.  *  version    0.1     Created
  45.  */
  46. #ifndef _PSP_VPFE_API_
  47. #define _PSP_VPFE_API_
  48. /**
  49.  *  brief      This function is the first to be called and is used for driver
  50.  *              initialization.
  51.  *
  52.  *              It performs register map overlaying and software book-keeping.
  53.  *              It register the interrupt Handler.
  54.  *
  55.  *  param      instanceId              [IN]        VPSS instance Id.
  56.  *
  57.  *  returns    Returns                             SUCCESS/FAILURE status.
  58.  */
  59. PSP_Result      PSP_VPFECreate(Uint32  instanceId);
  60. /**
  61.  *  brief      This function is called last and is used for driver deletion.
  62.  *              This function does the deletion of the entire VPFE hardware
  63.  *
  64.  *  param      instanceId              [IN]        VPSS Instance number.
  65.  *
  66.  *  returns    Returns                             SUCCESS/FAILURE status.
  67.  */
  68. PSP_Result      PSP_VPFEDelete(Uint32  instanceId);
  69. /**
  70.  *  brief      This function creates  the channel handle for individual VPFE
  71.  *              (CCDCand other)modules.
  72.  *
  73.  *  param      instanceId              [IN]        VPSS instance id.
  74.  *
  75.  *  param      chanConfigParams        [IN]        Channel Configuration
  76.  *                                                  parameters
  77.  *
  78.  *  returns    Returns                             Channel handle of VPFE
  79.  *                                                  or NULL
  80.  */
  81. PSP_Handle      PSP_VPFEOpen(Uint32 instanceId,PSP_VPFEChannelParams * chanParams);
  82. /**
  83.  *  brief      This function close individual Channel handle for individual VPFE
  84.  *              Modules
  85.  *
  86.  *  param      handle                  [IN]        VPFE individual channel Handle
  87.  *                                                  to be closed.
  88.  *
  89.  *  Returns    Returns                             SUCCESS/FAILURE status.
  90.  */
  91. PSP_Result      PSP_VPFEClose(PSP_Handle  handle);
  92. /**
  93.  *  brief      This function makes runtime changes for the individual VPFE
  94.  *              (CCDC and other)modules
  95.  *
  96.  *  param      handle                  [IN]        Channel Handle(CCDC and
  97.  *                                                  other Front End modules)for
  98.  *                                                  which the control operation
  99.  *                                                  will be performed.
  100.  *
  101.  *  param      cmd                     [IN]        IOCTL command
  102.  *
  103.  *  param      cmdArg                  [IN]        Command Arguments to be passed.
  104.  *                                                  ConfigParams to be passed as
  105.  *                                                  cmdArg
  106.  *
  107.  *  param      params                  [IN]        Reserved for Future Use.
  108.  *
  109.  *  Returns    Returns                             SUCCESS/FAILURE status.
  110.  */
  111. PSP_Result      PSP_VPFEIoctl(PSP_Handle             handle,
  112.                               Uint32                 cmd,
  113.                               Ptr                    cmdArg,
  114.                               Ptr                    params);
  115. /**
  116.  *  brief This function is called to Queue/Dequeue Frame buffer for individual
  117.  *         VPFE (CCDC and other) VPFE modules.
  118.  *
  119.  *
  120.  *
  121.  *  param  chanp                       [IN]        Channel Handle of the VPFE(CCDC
  122.  *                                                  and other Front End Modules)for
  123.  *                                                  which the control operation will
  124.  *                                                  be performed
  125.  *
  126.  *  param  cmd                         [IN]        Submit Command(QUEUE/DE-QUEUE)
  127.  *
  128.  *  param  cmdArg                      [IN]        Command Arguments to be passed.
  129.  *                                                  Surface Params to be passed as          *                                                   cmdArg
  130.  *
  131.  *  Returns    Returns                             SUCCESS/FAILURE status.
  132.  */
  133. PSP_Result      PSP_VPFESubmitRequest(PSP_Handle                handle,
  134.                                       Uint32      cmd,
  135.                                       Ptr                       cmdArg);
  136. #endif /*_PSP_VPFE_API_*/