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

ui_rom_defi_ptg.h (6309B)


      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 __UI_ROM_DEFI_PTG_INCLUDED__
      9 /* { */
     10 #define __UI_ROM_DEFI_PTG_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 #include <appl/dpp/UserInterface/ui_pure_defi_ptg.h>
     34 
     35 /********************************************************/
     36 
     37 EXTERN CONST
     38    PARAM_VAL_RULES
     39      ptg_SAND_U16_vals[]
     40 #ifdef INIT
     41    =
     42 {
     43   {
     44     VAL_NUMERIC,SYMB_NAME_NUMERIC,
     45     {
     46       {
     47         HAS_MIN_VALUE | HAS_MAX_VALUE,
     48         0xffff,0,
     49           /*
     50            * Number of times this value can be repeated (i.e.,
     51            * value is an array). Must be at least 1!
     52            */
     53         1,
     54         (VAL_PROC_PTR)NULL
     55       }
     56     }
     57   },
     58 /*
     59  * Last element. Do not remove.
     60  */
     61   {
     62     VAL_END_OF_LIST
     63   }
     64 }
     65 #endif
     66 ;
     67 EXTERN CONST
     68    PARAM_VAL_RULES
     69      Ptg_free_vals[]
     70 #ifdef INIT
     71    =
     72 {
     73   {
     74     VAL_NUMERIC,SYMB_NAME_NUMERIC,
     75     {
     76       {
     77         HAS_NO_MIN_VALUE | HAS_NO_MAX_VALUE,
     78         0,0,
     79           /*
     80            * Number of times this value can be repeated (i.e.,
     81            * value is an array). Must be at least 1!
     82            */
     83         1,
     84         (VAL_PROC_PTR)NULL
     85       }
     86     }
     87   },
     88 /*
     89  * Last element. Do not remove.
     90  */
     91   {
     92     VAL_END_OF_LIST
     93   }
     94 }
     95 #endif
     96 ;
     97 EXTERN CONST
     98    PARAM_VAL_RULES
     99      Ptg_empty_vals[]
    100 #ifdef INIT
    101    =
    102 {
    103 /*
    104  * Last element. Do not remove.
    105  */
    106   {
    107     VAL_END_OF_LIST
    108   }
    109 }
    110 #endif
    111 ;
    112 
    113 /********************************************************/
    114 
    115 EXTERN CONST
    116    PARAM
    117      ptg_params[]
    118 #ifdef INIT
    119    =
    120 {
    121   {
    122     PARAM_PTG_MDIO_SET,
    123     "mdio_set",
    124     (PARAM_VAL_RULES *)&Ptg_empty_vals[0],
    125     (sizeof(Ptg_empty_vals) / sizeof(Ptg_empty_vals[0])) - 1,
    126     HAS_NO_DEFAULT | MAY_NOT_APPEAR,(PARAM_VAL *)0,
    127     0,0,0,0,0,0,0,
    128     "",
    129     "",
    130     "",
    131     {BIT(0)},
    132     1,
    133       /*
    134        * Pointer to a function to call after symbolic parameter
    135        * has been accepted.
    136        */
    137     (VAL_PROC_PTR)NULL
    138   },
    139   {
    140     PARAM_PTG_MDIO_SET_PHY_NDX,
    141     "phy_ndx",
    142     (PARAM_VAL_RULES *)&Ptg_free_vals[0],
    143     (sizeof(Ptg_free_vals) / sizeof(Ptg_free_vals[0])) - 1,
    144     HAS_NO_DEFAULT | MUST_APPEAR,(PARAM_VAL *)0,
    145     0,0,0,0,0,0,0,
    146     "",
    147     "",
    148     "",
    149     {BIT(0)},
    150     2,
    151       /*
    152        * Pointer to a function to call after symbolic parameter
    153        * has been accepted.
    154        */
    155     (VAL_PROC_PTR)NULL
    156   },
    157   {
    158     PARAM_PTG_MDIO_SET_ADDRESS,
    159     "address",
    160     (PARAM_VAL_RULES *)&Ptg_free_vals[0],
    161     (sizeof(Ptg_free_vals) / sizeof(Ptg_free_vals[0])) - 1,
    162     HAS_NO_DEFAULT | MUST_APPEAR,(PARAM_VAL *)0,
    163     0,0,0,0,0,0,0,
    164     "",
    165     "",
    166     "",
    167     {BIT(0)},
    168     3,
    169       /*
    170        * Pointer to a function to call after symbolic parameter
    171        * has been accepted.
    172        */
    173     (VAL_PROC_PTR)NULL
    174   },
    175   {
    176     PARAM_PTG_MDIO_SET_DATA,
    177     "data",
    178     (PARAM_VAL_RULES *)&ptg_SAND_U16_vals[0],
    179     (sizeof(ptg_SAND_U16_vals) / sizeof(ptg_SAND_U16_vals[0])) - 1,
    180     HAS_NO_DEFAULT | MAY_NOT_APPEAR,(PARAM_VAL *)0,
    181     0,0,0,0,0,0,0,
    182     "",
    183     "",
    184     "",
    185     {BIT(0)},
    186     LAST_ORDINAL,
    187       /*
    188        * Pointer to a function to call after symbolic parameter
    189        * has been accepted.
    190        */
    191     (VAL_PROC_PTR)NULL
    192   },
    193   {
    194     PARAM_PTG_MDIO_GET,
    195     "mdio_get",
    196     (PARAM_VAL_RULES *)&Ptg_empty_vals[0],
    197     (sizeof(Ptg_empty_vals) / sizeof(Ptg_empty_vals[0])) - 1,
    198     HAS_NO_DEFAULT | MAY_NOT_APPEAR,(PARAM_VAL *)0,
    199     0,0,0,0,0,0,0,
    200     "",
    201     "",
    202     "",
    203     {BIT(1)},
    204     1,
    205       /*
    206        * Pointer to a function to call after symbolic parameter
    207        * has been accepted.
    208        */
    209     (VAL_PROC_PTR)NULL
    210   },
    211   {
    212     PARAM_PTG_MDIO_GET_PHY_NDX,
    213     "phy_ndx",
    214     (PARAM_VAL_RULES *)&Ptg_free_vals[0],
    215     (sizeof(Ptg_free_vals) / sizeof(Ptg_free_vals[0])) - 1,
    216     HAS_NO_DEFAULT | MUST_APPEAR,(PARAM_VAL *)0,
    217     0,0,0,0,0,0,0,
    218     "",
    219     "",
    220     "",
    221     {BIT(1)},
    222     2,
    223       /*
    224        * Pointer to a function to call after symbolic parameter
    225        * has been accepted.
    226        */
    227     (VAL_PROC_PTR)NULL
    228   },
    229   {
    230     PARAM_PTG_MDIO_GET_ADDRESS,
    231     "address",
    232     (PARAM_VAL_RULES *)&Ptg_free_vals[0],
    233     (sizeof(Ptg_free_vals) / sizeof(Ptg_free_vals[0])) - 1,
    234     HAS_NO_DEFAULT | MUST_APPEAR,(PARAM_VAL *)0,
    235     0,0,0,0,0,0,0,
    236     "",
    237     "",
    238     "",
    239     {BIT(1)},
    240     3,
    241       /*
    242        * Pointer to a function to call after symbolic parameter
    243        * has been accepted.
    244        */
    245     (VAL_PROC_PTR)NULL
    246   },
    247   {
    248     PARAM_PTG_PTG_INIT_START_SERVER_ID,
    249     "start server",
    250     (PARAM_VAL_RULES *)&Ptg_empty_vals[0],
    251     (sizeof(Ptg_empty_vals) / sizeof(Ptg_empty_vals[0])) - 1,
    252     HAS_NO_DEFAULT | MAY_NOT_APPEAR,(PARAM_VAL *)0,
    253     0,0,0,0,0,0,0,
    254     "",
    255     "",
    256     "",
    257     {BIT(2)},
    258     2,
    259       /*
    260        * Pointer to a function to call after symbolic parameter
    261        * has been accepted.
    262        */
    263     (VAL_PROC_PTR)NULL
    264   },
    265   {
    266     PARAM_PTG_PTG_INIT_ID,
    267     "ptg_init",
    268     (PARAM_VAL_RULES *)&Ptg_empty_vals[0],
    269     (sizeof(Ptg_empty_vals) / sizeof(Ptg_empty_vals[0])) - 1,
    270     HAS_NO_DEFAULT | MAY_NOT_APPEAR,(PARAM_VAL *)0,
    271     0,0,0,0,0,0,0,
    272     "",
    273     "",
    274     "",
    275     {BIT(2)},
    276     1,
    277       /*
    278        * Pointer to a function to call after symbolic parameter
    279        * has been accepted.
    280        */
    281     (VAL_PROC_PTR)NULL
    282   },
    283   {
    284     PARAM_PTG_MDIO_GET,
    285     "phy_init",
    286     (PARAM_VAL_RULES *)&Ptg_empty_vals[0],
    287     (sizeof(Ptg_empty_vals) / sizeof(Ptg_empty_vals[0])) - 1,
    288     HAS_NO_DEFAULT | MAY_NOT_APPEAR,(PARAM_VAL *)0,
    289     0,0,0,0,0,0,0,
    290     "",
    291     "",
    292     "",
    293     {BIT(3)},
    294     1,
    295       /*
    296        * Pointer to a function to call after symbolic parameter
    297        * has been accepted.
    298        */
    299     (VAL_PROC_PTR)NULL
    300   },
    301   /*
    302    * Last element. Do not remove. BIT(1)
    303    */
    304   {
    305     PARAM_END_OF_LIST
    306   }
    307 };
    308 
    309 #endif    /* } INIT*/
    310 
    311 #ifdef _MSC_VER
    312   #pragma pack(pop)
    313 #endif
    314 
    315 #ifdef  __cplusplus
    316 }
    317 #endif
    318 
    319 #endif    /* } __UI_ROM_DEFI_PTG_INCLUDED__*/