| 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: $ |
|---|
| 11 | * $brcm_Revision: $ |
|---|
| 12 | * $brcm_Date: $ |
|---|
| 13 | * |
|---|
| 14 | * Module Description: |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: $ |
|---|
| 19 | * |
|---|
| 20 | * |
|---|
| 21 | ***************************************************************************/ |
|---|
| 22 | |
|---|
| 23 | #if !defined(__GIST_H__) |
|---|
| 24 | #define __GIST_H__ 1 |
|---|
| 25 | |
|---|
| 26 | #include "breg_mem.h" |
|---|
| 27 | #include "bchp.h" |
|---|
| 28 | #include "bint.h" |
|---|
| 29 | #include "btmr.h" |
|---|
| 30 | #include "bmem.h" |
|---|
| 31 | #include "bhdm.h" |
|---|
| 32 | #include "bi2c.h" |
|---|
| 33 | #include "bkir.h" |
|---|
| 34 | #if (BCHP_CHIP==7550) |
|---|
| 35 | #include "brap.h" |
|---|
| 36 | #endif |
|---|
| 37 | #include "btnr.h" |
|---|
| 38 | #include "bvbi.h" |
|---|
| 39 | #include "bvdc.h" |
|---|
| 40 | #include "bxpt.h" |
|---|
| 41 | #include "bxpt_pcr.h" |
|---|
| 42 | #include "bxpt_rave.h" |
|---|
| 43 | #include "bxvd.h" |
|---|
| 44 | #include "bgio.h" |
|---|
| 45 | |
|---|
| 46 | struct bhandle_store_t { |
|---|
| 47 | BREG_Handle hReg; |
|---|
| 48 | BCHP_Handle hChp; |
|---|
| 49 | BINT_Handle hInt; |
|---|
| 50 | BTMR_Handle hTmr; |
|---|
| 51 | BMEM_ModuleHandle hMem; |
|---|
| 52 | BMEM_Heap_Handle hHeap; |
|---|
| 53 | BHDM_Handle hHdm; |
|---|
| 54 | BI2C_Handle hI2c; |
|---|
| 55 | BKIR_Handle hKir; |
|---|
| 56 | BTNR_Handle hTnr; |
|---|
| 57 | BVBI_Handle hVbi; |
|---|
| 58 | BVDC_Handle hVdc; |
|---|
| 59 | BXPT_Handle hXpt; |
|---|
| 60 | BXPT_PCR_Handle hDPCR; |
|---|
| 61 | BXVD_Handle hXvd; |
|---|
| 62 | BXVD_ChannelHandle hXvdCh; |
|---|
| 63 | BXPT_Rave_Handle hRave; |
|---|
| 64 | #if (BCHP_CHIP==7550) |
|---|
| 65 | BRAP_Handle hRap; |
|---|
| 66 | BRAP_AssociatedChannelHandle hDecodeAssociatedCh; |
|---|
| 67 | BRAP_AssociatedChannelHandle hCompressedAssociatedCh; |
|---|
| 68 | #endif |
|---|
| 69 | BGIO_Handle hGio; |
|---|
| 70 | }; |
|---|
| 71 | |
|---|
| 72 | |
|---|
| 73 | extern struct bhandle_store_t g_handles; |
|---|
| 74 | |
|---|
| 75 | #define GetREG() g_handles.hReg |
|---|
| 76 | #define GetCHP() g_handles.hChp |
|---|
| 77 | #define GetINT() g_handles.hInt |
|---|
| 78 | #define GetTMR() g_handles.hTmr |
|---|
| 79 | #define GetMEM() g_handles.hMem |
|---|
| 80 | #define GetHEAP() g_handles.hHeap |
|---|
| 81 | #define GetHDM() g_handles.hHdm |
|---|
| 82 | #define GetI2C() g_handles.hI2c |
|---|
| 83 | #define GetKIR() g_handles.hKir |
|---|
| 84 | #define GetTNR() g_handles.hTnr |
|---|
| 85 | #define GetVBI() g_handles.hVbi |
|---|
| 86 | #define GetVDC() g_handles.hVdc |
|---|
| 87 | #define GetXPT() g_handles.hXpt |
|---|
| 88 | #define GetDPCR() g_handles.hDPCR |
|---|
| 89 | #define GetRAVE() g_handles.hRave |
|---|
| 90 | #define GetXVD() g_handles.hXvd |
|---|
| 91 | #define GetXVDCh() g_handles.hXvdCh |
|---|
| 92 | #if (BCHP_CHIP==7550) |
|---|
| 93 | #define GetRAP() g_handles.hRap |
|---|
| 94 | #endif |
|---|
| 95 | #define GetGIO() g_handles.hGio |
|---|
| 96 | |
|---|
| 97 | void gist_init(void); |
|---|
| 98 | |
|---|
| 99 | typedef BERR_Code scm_callback_t( uint32_t ); |
|---|
| 100 | |
|---|
| 101 | BERR_Code gist_rap_open(uint32_t scm_id, scm_callback_t * scm_cb); |
|---|
| 102 | /* __GIST_H__ */ |
|---|
| 103 | #endif |
|---|