| 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: bxvd_errors.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/17 $ |
|---|
| 12 | * $brcm_Date: 4/30/10 1:43p $ |
|---|
| 13 | * |
|---|
| 14 | * Module Description: |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /magnum/portinginterface/xvd/7401/bxvd_errors.h $ |
|---|
| 19 | * |
|---|
| 20 | * Hydra_Software_Devel/17 4/30/10 1:43p pblanco |
|---|
| 21 | * SW7400-2753: Fix kernel oops when user data packet size exceeds maximum |
|---|
| 22 | * buffer size. |
|---|
| 23 | * |
|---|
| 24 | * Hydra_Software_Devel/16 6/16/08 1:20p pblanco |
|---|
| 25 | * PR29915: Added better error handling and recovery to enqueueing and |
|---|
| 26 | * read_isr routines. |
|---|
| 27 | * |
|---|
| 28 | * Hydra_Software_Devel/15 5/21/08 1:00p pblanco |
|---|
| 29 | * PR42910: Added invalid handle error code. |
|---|
| 30 | * |
|---|
| 31 | * Hydra_Software_Devel/14 4/11/08 4:53p davidp |
|---|
| 32 | * PR40234: Merge decoder debug logging from branch to |
|---|
| 33 | * Hydra_Software_Devel/. |
|---|
| 34 | * |
|---|
| 35 | * Hydra_Software_Devel/PR40234/1 4/10/08 3:35p davidp |
|---|
| 36 | * PR40234: Add Decoder Debug log errors. |
|---|
| 37 | * |
|---|
| 38 | * Hydra_Software_Devel/13 3/12/07 10:19a pblanco |
|---|
| 39 | * PR26433: Added two new relocation engine errors to avoid compiler |
|---|
| 40 | * errors when set to very picky. |
|---|
| 41 | * |
|---|
| 42 | * Hydra_Software_Devel/12 1/17/07 12:09p pblanco |
|---|
| 43 | * PR27168: Incorporated changes suggested in code review on 16-Jan-2007 |
|---|
| 44 | * |
|---|
| 45 | * Hydra_Software_Devel/11 12/11/06 3:15p pblanco |
|---|
| 46 | * PR26433: Added new reloc engine errors and moved existing ones to their |
|---|
| 47 | * own section. |
|---|
| 48 | * |
|---|
| 49 | * Hydra_Software_Devel/10 9/22/06 9:31a pblanco |
|---|
| 50 | * PR23959: Added new error code for EOC not found (relocation engine). |
|---|
| 51 | * |
|---|
| 52 | * Hydra_Software_Devel/9 4/28/06 11:14a pblanco |
|---|
| 53 | * PR19877: Added new error for already active channel. |
|---|
| 54 | * |
|---|
| 55 | * Hydra_Software_Devel/8 4/27/06 4:15p pblanco |
|---|
| 56 | * PR19877: Added two new error codes for FW busy and decoder inactive. |
|---|
| 57 | * |
|---|
| 58 | * Hydra_Software_Devel/7 4/4/06 10:29a pblanco |
|---|
| 59 | * PR19877: Added error definitions for new relocation code. |
|---|
| 60 | * |
|---|
| 61 | * Hydra_Software_Devel/6 1/10/06 9:23a pblanco |
|---|
| 62 | * PR16052: Added two new user data error code. |
|---|
| 63 | * |
|---|
| 64 | * Hydra_Software_Devel/5 12/2/05 3:42p pblanco |
|---|
| 65 | * PR16052: Added BXVD_ERR_BAD_DEVICE_STATE for new API implementation. |
|---|
| 66 | * |
|---|
| 67 | * Hydra_Software_Devel/4 8/25/05 9:33a pblanco |
|---|
| 68 | * PR16052: Added new error code for mmap failures. |
|---|
| 69 | * |
|---|
| 70 | * Hydra_Software_Devel/3 7/26/05 10:15a pblanco |
|---|
| 71 | * PR16052: Added invalid ack error. |
|---|
| 72 | * |
|---|
| 73 | * Hydra_Software_Devel/2 7/25/05 4:00p pblanco |
|---|
| 74 | * PR16052: Moved FW EOF error here. Was in bxvd_priv.c |
|---|
| 75 | * |
|---|
| 76 | * Hydra_Software_Devel/1 7/6/05 11:01a pblanco |
|---|
| 77 | * PR16052: Initial check in |
|---|
| 78 | * |
|---|
| 79 | ***************************************************************************/ |
|---|
| 80 | #ifndef BXVD_ERRORS_H__ |
|---|
| 81 | #define BXVD_ERRORS_H__ |
|---|
| 82 | |
|---|
| 83 | #include "berr_ids.h" |
|---|
| 84 | |
|---|
| 85 | #ifdef __cplusplus |
|---|
| 86 | extern "C" { |
|---|
| 87 | #endif |
|---|
| 88 | |
|---|
| 89 | /* Error codes unique to BXVD. Error has been reserved by berr module. |
|---|
| 90 | * Each module has 0xfffff (64k) of errors. |
|---|
| 91 | */ |
|---|
| 92 | |
|---|
| 93 | /* Video decoder subsystem related errors */ |
|---|
| 94 | #define BXVD_ERR_QUEUE_CORRUPTED BERR_MAKE_CODE(BERR_XVD_ID, 0x000) |
|---|
| 95 | #define BXVD_ERR_QUEUE_EMPTY BERR_MAKE_CODE(BERR_XVD_ID, 0x001) |
|---|
| 96 | #define BXVD_ERR_QUEUE_FULL BERR_MAKE_CODE(BERR_XVD_ID, 0x002) |
|---|
| 97 | #define BXVD_ERR_USERDATA_NONE BERR_MAKE_CODE(BERR_XVD_ID, 0x003) |
|---|
| 98 | #define BXVD_ERR_USERDATA_INVALID BERR_MAKE_CODE(BERR_XVD_ID, 0x004) |
|---|
| 99 | #define BXVD_ERR_USERDATA_DISABLED BERR_MAKE_CODE(BERR_XVD_ID, 0x005) |
|---|
| 100 | #define BXVD_ERR_USERDATA_UNINITED BERR_MAKE_CODE(BERR_XVD_ID, 0x006) |
|---|
| 101 | #define BXVD_ERR_USERDATA_USRBFROFL BERR_MAKE_CODE(BERR_XVD_ID, 0x007) |
|---|
| 102 | #define BXVD_ERR_USERDATA_ITEM_TOO_LARGE BERR_MAKE_CODE(BERR_XVD_ID, 0x008) |
|---|
| 103 | |
|---|
| 104 | /* FW image handling errors */ |
|---|
| 105 | #define BXVD_ERR_EOF BERR_MAKE_CODE(BERR_XVD_ID, 0x008) |
|---|
| 106 | |
|---|
| 107 | /* FW communication errors */ |
|---|
| 108 | #define BXVD_ERR_FW_IS_BUSY BERR_MAKE_CODE(BERR_XVD_ID, 0x009) |
|---|
| 109 | |
|---|
| 110 | /* State machine errors */ |
|---|
| 111 | #define BXVD_ERR_DECODER_INACTIVE BERR_MAKE_CODE(BERR_XVD_ID, 0x00A) |
|---|
| 112 | #define BXVD_ERR_DECODER_ACTIVE BERR_MAKE_CODE(BERR_XVD_ID, 0x00B) |
|---|
| 113 | |
|---|
| 114 | /* Relocation engine errors */ |
|---|
| 115 | #define BXVD_ERR_RELF_BAD_INPUT BERR_MAKE_CODE(BERR_XVD_ID, 0x00C) |
|---|
| 116 | #define BXVD_ERR_RELF_BAD_HEADER BERR_MAKE_CODE(BERR_XVD_ID, 0x00D) |
|---|
| 117 | #define BXVD_ERR_RELF_BAD_SECTION BERR_MAKE_CODE(BERR_XVD_ID, 0x00E) |
|---|
| 118 | #define BXVD_ERR_RELF_BAD_RELOC_TYPE BERR_MAKE_CODE(BERR_XVD_ID, 0x00F) |
|---|
| 119 | #define BXVD_ERR_RELF_NO_EOC_FOUND BERR_MAKE_CODE(BERR_XVD_ID, 0x010) |
|---|
| 120 | #define BXVD_ERR_MULT_SYM_TABLE_REFS BERR_MAKE_CODE(BERR_XVD_ID, 0x011) |
|---|
| 121 | #define BXVD_ERR_CANT_READ_SYMTAB BERR_MAKE_CODE(BERR_XVD_ID, 0x012) |
|---|
| 122 | |
|---|
| 123 | /* Decoder debug logging errors */ |
|---|
| 124 | #define BXVD_ERR_DEBUG_LOG_NOBUFFER BERR_MAKE_CODE(BERR_XVD_ID, 0x013) |
|---|
| 125 | #define BXVD_ERR_DEBUG_LOG_OVERFLOW BERR_MAKE_CODE(BERR_XVD_ID, 0x014) |
|---|
| 126 | |
|---|
| 127 | /* Invalid handle error code */ |
|---|
| 128 | #define BXVD_ERR_INVALID_HANDLE BERR_MAKE_CODE(BERR_XVD_ID, 0x015) |
|---|
| 129 | |
|---|
| 130 | #ifdef __cplusplus |
|---|
| 131 | } |
|---|
| 132 | #endif |
|---|
| 133 | |
|---|
| 134 | #endif /* #ifndef BXVD_ERRORS_H__ */ |
|---|
| 135 | /* End of file. */ |
|---|