openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

tasks_info.h (3941B)


      1 /* 
      2  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      3  * 
      4  * Copyright 2007-2020 Broadcom Inc. All rights reserved.
      5 */
      6 
      7 
      8 #ifndef __TASKS_INFO_H_INCLUDED__
      9 /* { */
     10 #define __TASKS_INFO_H_INCLUDED__
     11 
     12 #ifdef  __cplusplus
     13 extern "C" {
     14 #endif
     15 
     16 #ifdef _MSC_VER
     17   /*
     18    * On MS-Windows platform this attribute is not defined.
     19    */
     20   #define __ATTRIBUTE_PACKED__
     21   #pragma pack(push)
     22   #pragma pack(1)
     23 
     24 #elif __GNUC__
     25     /*
     26      * GNUC packing attribute
     27      */
     28     #define __ATTRIBUTE_PACKED__  __attribute__ ((packed))
     29 #else
     30     #error  "Add your system support for packed attribute."
     31 #endif
     32 
     33 /*************
     34  * INCLUDES  *
     35  */
     36 /* { */
     37 /*
     38  * Default size (in bytes) of stack per task.
     39  */
     40 #define STACK_SIZE           20000
     41 /*
     42  * stack size for the task running starter Proc
     43  */
     44 #define STARTER_TASK_STACK_SIZE 200000
     45 /*
     46  * Number of tasks assigned for this system.
     47  * May be larger than actually used.
     48  * See 'List of internal task IDs' below.
     49  */
     50 #define NUM_TASKS            13
     51 /*
     52  * Maximal number of letters in a task name.
     53  */
     54 /*
     55  * List of internal task IDs.
     56  * Starting at 0.
     57  * Task ID must not be larger than NUM_TASKS-1
     58  */
     59 /*
     60  * Definitions related to task which collects user input
     61  * characters for user interface task.
     62  */
     63 #define USER_PREP_TASK_ID             1
     64 /*
     65  * Size (in bytes) of stack for ui_prep task.
     66  */
     67 /*
     68  * Definitions related to task which collects user input
     69  * characters from Telnet over port 26 when standard
     70  * Telnet is active (on port 23).
     71  */
     72 #define DUMMY_TELNET_TCP_PORT         26
     73 #define DUMMY_TELNET_TASK_ID          2
     74 #define DUMMY_TELNET_TASK_PRIORITY    36
     75 #define DUMMY_TELNET_TASK_NAME        "dDumTel"
     76 /*
     77  * Definitions related to task which collects user input
     78  * characters from local console when Telnet is active.
     79  */
     80 #define DUMMY_CONSOLE_TASK_ID         3
     81 #define DUMMY_CONSOLE_TASK_PRIORITY   38
     82 #define DUMMY_CONSOLE_TASK_NAME       "dDumCon"
     83 /*
     84  * Definitions related to user interface task.
     85  */
     86 #define USER_INTERFACE_TASK_ID        4
     87 #define USER_INTERFACE_TASK_PRIORITY  40
     88 #define USER_INTERFACE_TASK_NAME      "dUiTask"
     89 #define USER_INTERFACE_TASK_STACK_SIZE (40*STACK_SIZE)
     90 #define IMPOSED_SHELL_PRIORITY        42
     91 /*
     92  * Definitions related to background task.
     93  */
     94 /*
     95  * Size (in bytes) of stack for background task.
     96  */
     97 /*
     98  * Definitions related to snmp task.
     99  */
    100 #define SNMP_TASK_ID                  6
    101 #define INCLUDE_NET_SNMP              0
    102 /*
    103  * Definitions related to idle task.
    104  */
    105 /*
    106  * Size (in bytes) of stack for idle task.
    107  */
    108 /*
    109  * Definition related to root task (initializer which ends up in progStart)
    110  */
    111 /*
    112  * This should be a low priority, below 'background' and above 'idle'.
    113  */
    114 #define ROOT_TASK_PRIORITY            198
    115 /*
    116  * Definitions related to periodic suspend task.
    117  */
    118 /*
    119  * Definitions related to Chip simulator task.
    120  */
    121 #define CHIP_SIMULATOR_TASK_ID        9
    122 #define CHIP_SIMULATOR_TASK_PRIO      30
    123 #define CHIP_SIMULATOR_TASK_NAME      "dChipSim"
    124 /*
    125  * Definitions related to DCL RX UNEXPECTED task.
    126  * (Unsolicited messages to DCL)
    127  */
    128 /*
    129  * Size (in bytes) of stack for DCL RX UNEXPECTED task.
    130  */
    131 /*
    132  * Set true for DCL transport debug stage.
    133  * Produces debug printing.
    134  */
    135 
    136 
    137 /* Definitions for the syslog task (reads OS originated messages (logMsg)
    138    from a pipe, and sends them to a syslog server */
    139 /* Same priority as the the OS logTask */
    140 /* change INCLUDE_SYSLOG to 0 to disable syslog task
    141    This will only disable sending of logMsg() messages to the rsyslog */
    142 
    143 
    144 /* } */
    145 
    146 /*************
    147  * DEFINES   *
    148  */
    149 /* { */
    150 
    151 /* } */
    152 
    153 /*************
    154  *  MACROS   *
    155  */
    156 /* { */
    157 
    158 /* } */
    159 
    160 /*************
    161  * TYPE DEFS *
    162  */
    163 /* { */
    164 
    165 /* } */
    166 
    167 /*************
    168  * GLOBALS   *
    169  */
    170 /* { */
    171 
    172 /* } */
    173 
    174 /*************
    175  * FUNCTIONS *
    176  */
    177 /* { */
    178 
    179 /* } */
    180 
    181 
    182 #ifdef _MSC_VER
    183   #pragma pack(pop)
    184 #endif
    185 
    186 #ifdef  __cplusplus
    187 }
    188 #endif
    189 
    190 /* } __TASKS_INFO_H_INCLUDED__*/
    191 #endif