Changeset 5 for trunk/kernel/kern/core.h


Ignore:
Timestamp:
Apr 26, 2017, 2:11:56 PM (6 years ago)
Author:
alain
Message:

Introduce the chdev_t structure in place of the device_t structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/core.h

    r1 r5  
    3737
    3838struct thread_s;
    39 struct device_s;
     39struct chdev_s;
    4040
    4141
    4242/****************************************************************************************
    43  * This structure defines the core descriptor
     43 * This structure defines the core descriptor.
     44 * It contains the three interrupt vectors, that are implemented as array of pointers
     45 * on the source channel devices, for all IRQs allocated to a given core.
    4446 ***************************************************************************************/
    4547
     
    6264        rpc_fifo_t          rpc_fifo;       /*! embedded private RPC fifo (one per core)   */
    6365        scheduler_t         scheduler;      /*! embedded private scheduler                 */
    64     struct device_s   * icu;            /*! pointer on local ICU device descriptor     */
    6566
    66     xptr_t              hwi_vector[CONFIG_MAX_HWIS_PER_ICU];     /*! on source device  */
    67     xptr_t              pti_vector[CONFIG_MAX_PTIS_PER_ICU];     /*! on source device  */
    68     xptr_t              wti_vector[CONFIG_MAX_WTIS_PER_ICU];     /*! on source device  */
     67    struct chdev_s    * hwi_vector[CONFIG_MAX_HWIS_PER_ICU];     /*! on source device  */
     68    struct chdev_s    * pti_vector[CONFIG_MAX_PTIS_PER_ICU];     /*! on source device  */
     69    struct chdev_s    * wti_vector[CONFIG_MAX_WTIS_PER_ICU];     /*! on source device  */
    6970
    70         char                name[CONFIG_SYSFS_NAME_LEN];
    7171        sysfs_entry_t       node;
    7272}
     
    159159 * any thread in any cluster.
    160160 ***************************************************************************************
    161  * @ core_xp    : extended pointer on the core descriptor.
     161 * @ core       : local pointer on the core descriptor.
    162162 * @ irq_type   : type of IRQ (HWI/WTI/PTI).
    163163 * @ irq_id     : index in the IRQ vector.
    164  * @ dev_xp     : extended pointer on the "source" descriptor.
     164 * @ chdev      : local pointer on the "source" chdev descriptor.
    165165 **************************************************************************************/
    166 void core_set_irq_vector_entry( xptr_t     core_xp,
    167                                 uint32_t   irq_type,
    168                                 uint32_t   irq_id,
    169                                 xptr_t     dev_xp );
     166void core_set_irq_vector_entry( core_t          * core,
     167                                uint32_t          irq_type,
     168                                uint32_t          irq_id,
     169                                struct chdev_s  * chdev );
    170170
    171171
Note: See TracChangeset for help on using the changeset viewer.