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

merlin16_common.h (1864B)


      1 /********************************************************************************
      2  ********************************************************************************
      3  *                                                                              *
      4  *  Revision      :   *
      5  *                                                                              *
      6  *  Description   :  Defines and Enumerations required by Serdes APIs           *
      7  *                                                                              *
      8  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      9  * 
     10  * Copyright 2007-2019 Broadcom Inc. All rights reserved.                                                        *
     11  *  No portions of this material may be reproduced in any form without          *
     12  *  the written permission of:                                                  *
     13  *      Broadcom Corporation                                                    *
     14  *      5300 California Avenue                                                  *
     15  *      Irvine, CA  92617                                                       *
     16  *                                                                              *
     17  *  All information contained in this document is Broadcom Corporation          *
     18  *  company private proprietary, and trade secret.                              *
     19  */
     20 
     21 /** @file merlin16_common.h
     22  * Defines and Enumerations shared across Merlin16/Falcon16 APIs BUT NOT MICROCODE
     23  */
     24 
     25 #ifndef MERLIN16_API_COMMON_H
     26 #define MERLIN16_API_COMMON_H
     27 
     28 #include "merlin16_ipconfig.h"
     29 
     30 /** Macro to determine sign of a value */
     31 #define sign(x) ((x>=0) ? 1 : -1)
     32 
     33 #define UCODE_MAX_SIZE  (64*1024 + 7168)    /* additional code that could be stored in data ram */
     34 
     35 /*
     36  * IP-Specific Iteration Bounds
     37  */
     38 
     39 #endif