Ignore:
Timestamp:
Jun 18, 2017, 10:06:41 PM (5 years ago)
Author:
alain
Message:

Introduce syscalls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_mmc.h

    r14 r23  
    8181typedef struct mmc_command_s
    8282{
    83     xptr_t      dev_xp;     /*! extended pointer on the relevant MMC device descriptor  */
     83    xptr_t      dev_xp;     /*! extended pointer on target MMC device descriptor        */
    8484    uint32_t    type;       /*! CC_INVAL / CC_SYNC / GET_ERROR / SET_ERROR / GET_INSTRU */
    85     paddr_t     buf_paddr;  /*! buffer physical address          (used by INVAL/SYNC)   */
    86     uint32_t    buf_size;   /*! buffer size in bytes             (used by INVAL/SYNC)   */
    87     uint32_t    reg_index;  /*! register index in MMC peripheral (used by SET/GET)      */
    88     uint32_t  * reg_ptr;    /*! local pointer on src/dst buffer  (used by SET/GET)      */
     85    paddr_t     buf_paddr;  /*! physical address of memory buffer (used by INVAL/SYNC)  */
     86    uint32_t    buf_size;   /*! buffer size in bytes              (used by INVAL/SYNC)  */
     87    uint32_t    reg_index;  /*! register index in MMC peripheral  (used by SET/GET)     */
     88    uint32_t  * reg_ptr;    /*! local pointer on src/dst buffer   (used by SET/GET)     */
    8989    error_t     error;      /*! operation status (0 if success)                         */
    9090}
     
    106106 * to access both the MMC device descriptor, and the L2 cache configuration interface.
    107107 *****************************************************************************************
    108  * @ buf_paddr  : buffer local physical addresse.
     108 * @ buf_xp     : extended pointer on memory buffer.
    109109 * @ buf_size   : buffer size (bytes).
    110110 * @ return 0 if success / return EINVAL if failure
    111111 ****************************************************************************************/
    112 error_t dev_mmc_inval( paddr_t   buf_paddr,
    113                        uint32_t  buf_size );
     112error_t dev_mmc_inval( xptr_t     buf_xp,
     113                       uint32_t   buf_size );
    114114
    115115/*****************************************************************************************
     
    119119 * to access both the MMC device descriptor, and the L2 cache configuration interface.
    120120 *****************************************************************************************
    121  * @ buf_paddr  : buffer local physical addresse.
     121 * @ buf_xp     : extended pointer on memory buffer.
    122122 * @ buf_size   : buffer size (bytes).
    123123 * @ return 0 if success / return EINVAL if failure
    124124 ****************************************************************************************/
    125 error_t dev_mmc_sync( paddr_t    buf_paddr,
     125error_t dev_mmc_sync( xptr_t     buf_xp,
    126126                      uint32_t   buf_size );
    127127                       
Note: See TracChangeset for help on using the changeset viewer.