source: svn/trunk/newcon3bcm2_21bu/magnum/portinginterface/pwr/7552/bpwr_priv.h

Last change on this file was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 2.4 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2003-2010, 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: bpwr_priv.h $
11 * $brcm_Revision: Hydra_Software_Devel/1 $
12 * $brcm_Date: 11/23/10 2:11p $
13 *
14 * Module Description:
15 *
16 * Revision History:
17 *
18 * $brcm_Log: /magnum/portinginterface/pwr/7552/bpwr_priv.h $
19 *
20 * Hydra_Software_Devel/1   11/23/10 2:11p xhuang
21 * SW7552-9: Add support for 97552
22 *
23 *
24 ***************************************************************************/
25#ifndef BPWR_PRIV_H__
26#define BPWR_PRIV_H__
27
28#include "bpwr.h"
29#include "bdbg.h"
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35/***************************************************************************
36 * PWR Internal data structures
37 ***************************************************************************/
38
39BDBG_OBJECT_ID_DECLARE(BPWR_P_Context);
40
41/* static array makes for a simple implementation */
42#define BPWR_MAX_MODULES 128
43
44typedef struct BPWR_P_Context
45{
46    BDBG_OBJECT(BPWR_P_Context)
47
48    /* public fields */
49    BPWR_Settings       stSettings;
50    BREG_Handle         hRegister;
51    BCHP_Handle         hChip;
52
53    struct {
54        BSTD_Module moduleId; /* supported module */
55        BPWR_ePowerMode mode; /* current state */
56        bool change;          /* in current change set */
57    } modules[BPWR_MAX_MODULES];
58
59    BPWR_ePowerMode changeMode; /* new mode */
60} BPWR_P_Context;
61
62/***************************************************************************
63 * PWR private functions
64 * These functions are chip-specific.
65 ***************************************************************************/
66BERR_Code BPWR_P_Init(BPWR_P_Context *pPwr);
67BERR_Code BPWR_P_Destroy(BPWR_P_Context *pPwr);
68BERR_Code BPWR_P_ValidateChanges(BPWR_P_Context *pPwr);
69BERR_Code BPWR_P_SetPowerMode(BPWR_P_Context *pPwr);
70bool BPWR_P_IsModuleChanging(const BPWR_P_Context *pPwr, BSTD_Module moduleId);
71void BPWR_P_TestPort_Up(BPWR_P_Context *pPwr);
72void BPWR_P_TestPort_Down(BPWR_P_Context *pPwr);
73
74#ifdef __cplusplus
75}
76#endif
77
78#endif /* #ifndef BPWR_PRIV_H__ */
79/* End of file. */
Note: See TracBrowser for help on using the repository browser.