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_pure_defi_ptg.h (1861B)


      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_PURE_DEFI_PTG_INCLUDED__
      9 /* { */
     10 #define __UI_PURE_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 /*
     34  * Note:
     35  * the following definitions must range between PARAM_FAP21V_API_START_RANGE_ID
     36  * and PARAM_FAP21V_API_END_RANGE_ID.
     37  * See ui_pure_defi.h
     38  */
     39 
     40 #define PARAM_PTG_MDIO_SET \
     41                        (PARAM_PTG_START_RANGE_ID + 1)
     42 #define PARAM_PTG_MDIO_SET_PHY_NDX \
     43                        (PARAM_PTG_START_RANGE_ID + 2)
     44 #define PARAM_PTG_MDIO_SET_ADDRESS \
     45                        (PARAM_PTG_START_RANGE_ID + 3)
     46 #define PARAM_PTG_MDIO_SET_DATA \
     47                        (PARAM_PTG_START_RANGE_ID + 4)
     48 #define PARAM_PTG_MDIO_GET \
     49                        (PARAM_PTG_START_RANGE_ID + 5)
     50 #define PARAM_PTG_MDIO_GET_PHY_NDX \
     51                        (PARAM_PTG_START_RANGE_ID + 6)
     52 #define PARAM_PTG_MDIO_GET_ADDRESS \
     53                        (PARAM_PTG_START_RANGE_ID + 7)
     54 #define PARAM_PTG_PTG_INIT_ID \
     55                        (PARAM_PTG_START_RANGE_ID + 8)
     56 #define PARAM_PTG_PHY_INIT_ID \
     57                        (PARAM_PTG_START_RANGE_ID + 9)
     58 #define PARAM_PTG_PTG_INIT_START_SERVER_ID \
     59                        (PARAM_PTG_START_RANGE_ID + 10)
     60 /* } */
     61 
     62 
     63 #ifdef _MSC_VER
     64   #pragma pack(pop)
     65 #endif
     66 
     67 #ifdef  __cplusplus
     68 }
     69 #endif
     70 
     71 
     72 /* } __UI_PURE_DEFI_PTG_INCLUDED__*/
     73 #endif
     74