eagle_tsc_common.h (2315B)
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 eagle_tsc_common.h 21 * Defines and Enumerations shared across Eagle/Merlin/Falcon APIs BUT NOT MICROCODE 22 */ 23 24 #ifndef EAGLE_TSC_API_COMMON_H 25 #define EAGLE_TSC_API_COMMON_H 26 #include "common/srds_api_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 32768 32 33 /* 34 * Register Address Defines used by the API that are different between IPs 35 */ 36 #define DSC_A_DSC_UC_CTRL 0xD00D 37 #define TLB_RX_PRBS_CHK_ERR_CNT_MSB_STATUS 0xD0DA 38 39 /* PLL Lock and change Status Register define */ 40 #define PLL_STATUS_ADDR 0xD128 41 42 /* PMD Lock and change Status Register define */ 43 #define PMD_LOCK_STATUS_ADDR 0xD0DC 44 45 /* Sigdet and change Status Register define */ 46 #define SIGDET_STATUS_ADDR 0xD0C8 47 48 #define MDIO_MMDSEL_AER_COM_MDIO_MASKDATA 0xFFDB 49 50 /* 51 * Register Address Defines used by the API that are COMMON across IPs 52 */ 53 54 55 /* 56 * IP-Specific Iteration Bounds 57 */ 58 59 #endif