| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2006-2011, Broadcom Corporation |
|---|
| 3 | * All Rights Reserved |
|---|
| 4 | * Confidential Property of Broadcom Corporation |
|---|
| 5 | * |
|---|
| 6 | * THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE |
|---|
| 7 | * AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR |
|---|
| 8 | * EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. |
|---|
| 9 | * |
|---|
| 10 | * $brcm_Workfile: bchp_7552.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/3 $ |
|---|
| 12 | * $brcm_Date: 8/17/11 6:35p $ |
|---|
| 13 | * |
|---|
| 14 | * Module Description: |
|---|
| 15 | * See Module Overview below. |
|---|
| 16 | * |
|---|
| 17 | * Revision History: |
|---|
| 18 | * |
|---|
| 19 | * $brcm_Log: /magnum/basemodules/chp/7552/bchp_7552.h $ |
|---|
| 20 | * |
|---|
| 21 | * Hydra_Software_Devel/3 8/17/11 6:35p xhuang |
|---|
| 22 | * SW7552-104: fix GISB timeout when set to OTP disabled modules |
|---|
| 23 | * |
|---|
| 24 | * Hydra_Software_Devel/2 7/18/11 7:31p xhuang |
|---|
| 25 | * SW7552-59: support runtime set for different 7552 bond out |
|---|
| 26 | * |
|---|
| 27 | * Hydra_Software_Devel/1 10/14/10 3:51p xhuang |
|---|
| 28 | * SW7552-4: Add support for 7552 |
|---|
| 29 | * |
|---|
| 30 | * |
|---|
| 31 | ***************************************************************************/ |
|---|
| 32 | #ifndef BCHP_7552_H__ |
|---|
| 33 | #define BCHP_7552_H__ |
|---|
| 34 | |
|---|
| 35 | #include "bstd.h" |
|---|
| 36 | #include "bchp.h" |
|---|
| 37 | |
|---|
| 38 | #ifdef __cplusplus |
|---|
| 39 | extern "C" { |
|---|
| 40 | #endif |
|---|
| 41 | |
|---|
| 42 | /* Chip Id */ |
|---|
| 43 | #define BCHP_BCM7531 0x7531 |
|---|
| 44 | #define BCHP_BCM7532 0x7532 |
|---|
| 45 | #define BCHP_BCM7541 0x7541 |
|---|
| 46 | #define BCHP_BCM7542 0x7542 |
|---|
| 47 | #define BCHP_BCM7551 0x7551 |
|---|
| 48 | #define BCHP_BCM7552 0x7552 |
|---|
| 49 | #define BCHP_BCM7561 0x7561 |
|---|
| 50 | #define BCHP_BCM7562 0x7562 |
|---|
| 51 | #define BCHP_BCM7574 0x7574 |
|---|
| 52 | #define BCHP_BCM7581 0x7581 |
|---|
| 53 | #define BCHP_BCM7582 0x7582 |
|---|
| 54 | #define BCHP_BCM7591 0x7591 |
|---|
| 55 | #define BCHP_BCM7592 0x7592 |
|---|
| 56 | |
|---|
| 57 | /* Major revision */ |
|---|
| 58 | #define BCHP_MAJOR_A (0x0) |
|---|
| 59 | #define BCHP_MAJOR_B (0x1) |
|---|
| 60 | #define BCHP_MAJOR_C (0x2) |
|---|
| 61 | #define BCHP_MAJOR_D (0x3) |
|---|
| 62 | |
|---|
| 63 | /* Minor revision */ |
|---|
| 64 | #define BCHP_MINOR_0 (0) |
|---|
| 65 | #define BCHP_MINOR_1 (1) |
|---|
| 66 | #define BCHP_MINOR_2 (2) |
|---|
| 67 | #define BCHP_MINOR_3 (3) |
|---|
| 68 | #define BCHP_MINOR_4 (4) |
|---|
| 69 | #define BCHP_MINOR_5 (5) |
|---|
| 70 | |
|---|
| 71 | /*************************************************************************** |
|---|
| 72 | Summary: |
|---|
| 73 | Open a chip handle for Bcm7552 chip |
|---|
| 74 | |
|---|
| 75 | Description: |
|---|
| 76 | This function open a chip handle for Bcm7552 chip. |
|---|
| 77 | |
|---|
| 78 | Input: |
|---|
| 79 | hRegister - A valid Bcm7552 register handle previous open using BREG_Open. |
|---|
| 80 | |
|---|
| 81 | Output: |
|---|
| 82 | phChip - Upon successful completion of open this pointer is non NULL |
|---|
| 83 | and contains valid information about this chip. This handle is used |
|---|
| 84 | on subsequences BCHP_??? API. *phChip is NULL if failure. |
|---|
| 85 | |
|---|
| 86 | See Also: |
|---|
| 87 | BCHP_Close |
|---|
| 88 | |
|---|
| 89 | **************************************************************************/ |
|---|
| 90 | BERR_Code BCHP_Open7552 |
|---|
| 91 | ( BCHP_Handle *phChip, |
|---|
| 92 | BREG_Handle hRegister ); |
|---|
| 93 | |
|---|
| 94 | /*************************************************************************** |
|---|
| 95 | * Be called in bint_7552.c since bchp handle can not pass to bint module |
|---|
| 96 | */ |
|---|
| 97 | uint16_t BCHP_GetChipID (void); |
|---|
| 98 | |
|---|
| 99 | #ifdef __cplusplus |
|---|
| 100 | } |
|---|
| 101 | #endif |
|---|
| 102 | |
|---|
| 103 | #endif /* BCHP_7552_H__ */ |
|---|
| 104 | |
|---|
| 105 | /* End of File */ |
|---|