| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2003, 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: bstd.h $ |
|---|
| 11 | * $brcm_Revision: 1 $ |
|---|
| 12 | * $brcm_Date: 2/7/05 11:28p $ |
|---|
| 13 | * |
|---|
| 14 | * Module Description: |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /BSEAV/lib/mpeg2_ts_parse/std_stub/bstd.h $ |
|---|
| 19 | * |
|---|
| 20 | * 1 2/7/05 11:28p dlwin |
|---|
| 21 | * Merge down for release 2005_REFSW_MERGETOMAIN: |
|---|
| 22 | * |
|---|
| 23 | * Irvine_BSEAVSW_Devel/1 8/29/03 5:06p marcusk |
|---|
| 24 | * Initial version. |
|---|
| 25 | * |
|---|
| 26 | ***************************************************************************/ |
|---|
| 27 | #ifndef BSTD_H__ |
|---|
| 28 | #define BSTD_H__ |
|---|
| 29 | |
|---|
| 30 | /***************************************************************************/ |
|---|
| 31 | /* standard types */ |
|---|
| 32 | #include "bstd_defs.h" |
|---|
| 33 | |
|---|
| 34 | /***************************************************************************/ |
|---|
| 35 | /* base error codes */ |
|---|
| 36 | /* #include "berr.h" */ |
|---|
| 37 | typedef uint32_t BERR_Code; |
|---|
| 38 | |
|---|
| 39 | /* standard error codes */ |
|---|
| 40 | |
|---|
| 41 | #define BERR_SUCCESS 0 /* success (always zero) */ |
|---|
| 42 | #define BERR_NOT_INITIALIZED 1 /* parameter not initialized */ |
|---|
| 43 | #define BERR_INVALID_PARAMETER 2 /* parameter is invalid */ |
|---|
| 44 | #define BERR_OUT_OF_SYSTEM_MEMORY 3 /* out of KNI module memory */ |
|---|
| 45 | #define BERR_OUT_OF_DEVICE_MEMORY 4 /* out of MEM module memory */ |
|---|
| 46 | #define BERR_TIMEOUT 5 /* reached timeout limit */ |
|---|
| 47 | #define BERR_OS_ERROR 6 /* generic OS error */ |
|---|
| 48 | #define BERR_LEAKED_RESOURCE 7 /* resource being freed has attached |
|---|
| 49 | resources that haven't been freed */ |
|---|
| 50 | #define BERR_UNKNOWN 8 /* unknown */ |
|---|
| 51 | |
|---|
| 52 | /* standard defined */ |
|---|
| 53 | #define BSTD_ENDIAN_BIG 4321 |
|---|
| 54 | #define BSTD_ENDIAN_LITTLE 1234 |
|---|
| 55 | |
|---|
| 56 | /***************************************************************************/ |
|---|
| 57 | /* assert */ |
|---|
| 58 | /* #include "bdbg.h" */ |
|---|
| 59 | #include <assert.h> |
|---|
| 60 | #define BDBG_ASSERT assert |
|---|
| 61 | |
|---|
| 62 | #endif /* #ifndef BSTD_H__ */ |
|---|
| 63 | |
|---|
| 64 | /* end of file */ |
|---|