| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2003-2008, 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: bvbi_util_priv.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/1 $ |
|---|
| 12 | * $brcm_Date: 12/3/08 7:49p $ |
|---|
| 13 | * |
|---|
| 14 | * Module Description: |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /magnum/portinginterface/vbi/7400/bvbi_util_priv.h $ |
|---|
| 19 | * |
|---|
| 20 | * Hydra_Software_Devel/1 12/3/08 7:49p darnstein |
|---|
| 21 | * PR45819: Source files for 7400 are no longer symbolic links. |
|---|
| 22 | * |
|---|
| 23 | * Hydra_Software_Devel/1 9/7/07 5:07p darnstein |
|---|
| 24 | * PR25708: Miscellaneous support routines, not for public use. |
|---|
| 25 | * |
|---|
| 26 | ***************************************************************************/ |
|---|
| 27 | |
|---|
| 28 | #ifndef BVBI_UTIL_PRIV_H__ |
|---|
| 29 | #define BVBI_UTIL_PRIV_H__ |
|---|
| 30 | |
|---|
| 31 | #include "bstd.h" |
|---|
| 32 | #include "bmem.h" |
|---|
| 33 | #include "berr.h" |
|---|
| 34 | |
|---|
| 35 | /* |
|---|
| 36 | * A software object for accumulating sections of data into a line. Provides |
|---|
| 37 | * double-buffering. |
|---|
| 38 | */ |
|---|
| 39 | |
|---|
| 40 | typedef struct BVBI_LineBuilder_Handle *BVBI_LineBuilder_Handle; |
|---|
| 41 | |
|---|
| 42 | BERR_Code BVBI_LineBuilder_Open ( |
|---|
| 43 | BVBI_LineBuilder_Handle* pHandle, |
|---|
| 44 | BMEM_Handle hMem, size_t lineCount, size_t lineSize); |
|---|
| 45 | |
|---|
| 46 | void BVBI_LineBuilder_Close (BVBI_LineBuilder_Handle handle); |
|---|
| 47 | |
|---|
| 48 | BERR_Code BVBI_LineBuilder_Put ( |
|---|
| 49 | BVBI_LineBuilder_Handle handle, uint8_t* sectionData, size_t sectionSize, |
|---|
| 50 | size_t sectionOffset, int sequenceNumber, int lineNumber); |
|---|
| 51 | |
|---|
| 52 | BERR_Code BVBI_LineBuilder_Get ( |
|---|
| 53 | BVBI_LineBuilder_Handle handle, uint8_t** pLineData, int* pSequenceNumber, |
|---|
| 54 | int* pLineNumber); |
|---|
| 55 | |
|---|
| 56 | #endif /* BVBI_UTIL_PRIV_H__ */ |
|---|