| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2004-2009, 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: bastmlib_priv.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/3 $ |
|---|
| 12 | * $brcm_Date: 7/17/09 6:56p $ |
|---|
| 13 | * |
|---|
| 14 | * Revision History: |
|---|
| 15 | * |
|---|
| 16 | * $brcm_Log: /magnum/syslib/astmlib/noarch/bastmlib_priv.h $ |
|---|
| 17 | * |
|---|
| 18 | * Hydra_Software_Devel/3 7/17/09 6:56p bandrews |
|---|
| 19 | * PR49215: playback support |
|---|
| 20 | * |
|---|
| 21 | * Hydra_Software_Devel/2 6/5/09 5:32p bandrews |
|---|
| 22 | * PR52503: Move singleton counter/idgen to astmlib struct |
|---|
| 23 | * |
|---|
| 24 | * Hydra_Software_Devel/1 3/24/08 3:08p bandrews |
|---|
| 25 | * PR40865: Fixed |
|---|
| 26 | * |
|---|
| 27 | * Hydra_Software_Devel/3 2/15/08 10:00p bandrews |
|---|
| 28 | * PR36148: Updated ASTM based on reviews |
|---|
| 29 | * |
|---|
| 30 | * Hydra_Software_Devel/2 1/25/08 9:22p bandrews |
|---|
| 31 | * PR36148: Updated based on simulation |
|---|
| 32 | * |
|---|
| 33 | * Hydra_Software_Devel/1 10/19/07 9:30p bandrews |
|---|
| 34 | * PR36148: Initial implementation |
|---|
| 35 | ***************************************************************************/ |
|---|
| 36 | |
|---|
| 37 | #include "bstd.h" |
|---|
| 38 | #include "bastmlib.h" |
|---|
| 39 | #include "bastmlib_presentation_task.h" |
|---|
| 40 | #include "bastmlib_clock_coupling_task.h" |
|---|
| 41 | #include "bsyslib.h" |
|---|
| 42 | #include "bsyslib_list.h" |
|---|
| 43 | |
|---|
| 44 | #ifndef BASTMLIB_PRIV_H__ |
|---|
| 45 | #define BASTMLIB_PRIV_H__ |
|---|
| 46 | |
|---|
| 47 | struct BASTMlib_Impl |
|---|
| 48 | { |
|---|
| 49 | bool bEnabled; |
|---|
| 50 | bool bStarted; |
|---|
| 51 | |
|---|
| 52 | BASTMlib_Handle hAstm; |
|---|
| 53 | BASTMlib_Settings sSettings; |
|---|
| 54 | BASTMlib_Config sConfig; |
|---|
| 55 | BASTMlib_Status sStatus; |
|---|
| 56 | |
|---|
| 57 | unsigned int uiPresentersCreated; /* TODO: needs to be reworked with create/destroy add/remove presenter stuff */ |
|---|
| 58 | BASTMlib_PresentationTaskState sPresentation; |
|---|
| 59 | BASTMlib_ClockCouplingTaskState sClockCoupling; |
|---|
| 60 | }; |
|---|
| 61 | |
|---|
| 62 | void BASTMlib_P_GetDefaultConfig( |
|---|
| 63 | BASTMlib_Config * psConfig |
|---|
| 64 | ); |
|---|
| 65 | |
|---|
| 66 | BERR_Code BASTMlib_P_StartTimer_isr( |
|---|
| 67 | BASTMlib_Handle hAstm, |
|---|
| 68 | BSYSlib_Timer_Handle hTimer, |
|---|
| 69 | unsigned long ulTimeout, |
|---|
| 70 | BSYSlib_Timer_ExpiryHandler pfTimerExpired, |
|---|
| 71 | void * pvParm1, |
|---|
| 72 | int iParm2 |
|---|
| 73 | ); |
|---|
| 74 | |
|---|
| 75 | bool BASTMlib_P_Enabled( |
|---|
| 76 | BASTMlib_Handle hAstm |
|---|
| 77 | ); |
|---|
| 78 | |
|---|
| 79 | bool BASTMlib_P_Enabled_isr( |
|---|
| 80 | BASTMlib_Handle hAstm |
|---|
| 81 | ); |
|---|
| 82 | |
|---|
| 83 | #endif /* BASTMLIB_PRIV_H__ */ |
|---|
| 84 | |
|---|