phy8806x_tsc_common.h (2657B)
1 /******************************************************************************** 2 ******************************************************************************** 3 * * 4 * * 5 * Description : Defines and Enumerations required by Serdes APIs * 6 * * 7 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 8 * 9 * Copyright 2007-2019 Broadcom Inc. All rights reserved. * 10 * No portions of this material may be reproduced in any form without * 11 * the written permission of: * 12 * Broadcom Corporation * 13 * 5300 California Avenue * 14 * Irvine, CA 92617 * 15 * * 16 * All information contained in this document is Broadcom Corporation * 17 * company private proprietary, and trade secret. * 18 */ 19 20 /** @file phy8806x_tsc_common.h 21 * Defines and Enumerations shared across Eagle/Merlin/Falcon APIs BUT NOT MICROCODE 22 */ 23 24 #ifndef PHY8806X_TSC_API_COMMON_H 25 #define PHY8806X_TSC_API_COMMON_H 26 #include "phy8806x_tsc_common_uc_common.h" 27 28 /** Macro to determine sign of a value */ 29 #define sign(x) ((x >= 0) ? 1 : -1) 30 31 #define UCODE_MAX_SIZE 40960 32 33 /* 34 * Register Address Defines used by the API that are different between IPs 35 */ 36 #define DSC_A_DSC_UC_CTRL 0xD03d 37 #define DSC_E_RX_PI_CNT_BIN_D 0xD075 38 #define DSC_E_RX_PI_CNT_BIN_P 0xD076 39 #define DSC_E_RX_PI_CNT_BIN_L 0xD077 40 #define DSC_E_RX_PI_CNT_BIN_PD 0xD070 41 #define DSC_E_RX_PI_CNT_BIN_LD 0xD071 42 #define TLB_RX_PRBS_CHK_ERR_CNT_MSB_STATUS 0xD16A 43 #define TLB_RX_PRBS_CHK_ERR_CNT_LSB_STATUS 0xD16B 44 45 /* PLL Lock and change Status Register define */ 46 #define PLL_STATUS_ADDR 0xD148 47 48 /* PMD Lock and change Status Register define */ 49 #define PMD_LOCK_STATUS_ADDR 0xD16C 50 51 /* Sigdet and change Status Register define */ 52 #define SIGDET_STATUS_ADDR 0xD0E8 53 54 #define DIG_COM_MASKDATA_REG 0xD103 55 56 /* PCIe Gen3 Register Address defines*/ 57 58 /* 59 * Register Address Defines used by the API that are COMMON across IPs 60 */ 61 62 63 /* 64 * IP-Specific Iteration Bounds 65 */ 66 #define SERDES_NUM_PLLS 2 67 #define SERDES_NUM_LANES 4 68 69 #endif