| 1 | /****************************************************************************** |
|---|
| 2 | * (c)2008-2011 Broadcom Corporation |
|---|
| 3 | * |
|---|
| 4 | * This program is the proprietary software of Broadcom Corporation and/or its licensors, |
|---|
| 5 | * and may only be used, duplicated, modified or distributed pursuant to the terms and |
|---|
| 6 | * conditions of a separate, written license agreement executed between you and Broadcom |
|---|
| 7 | * (an "Authorized License"). Except as set forth in an Authorized License, Broadcom grants |
|---|
| 8 | * no license (express or implied), right to use, or waiver of any kind with respect to the |
|---|
| 9 | * Software, and Broadcom expressly reserves all rights in and to the Software and all |
|---|
| 10 | * intellectual property rights therein. IF YOU HAVE NO AUTHORIZED LICENSE, THEN YOU |
|---|
| 11 | * HAVE NO RIGHT TO USE THIS SOFTWARE IN ANY WAY, AND SHOULD IMMEDIATELY |
|---|
| 12 | * NOTIFY BROADCOM AND DISCONTINUE ALL USE OF THE SOFTWARE. |
|---|
| 13 | * |
|---|
| 14 | * Except as expressly set forth in the Authorized License, |
|---|
| 15 | * |
|---|
| 16 | * 1. This program, including its structure, sequence and organization, constitutes the valuable trade |
|---|
| 17 | * secrets of Broadcom, and you shall use all reasonable efforts to protect the confidentiality thereof, |
|---|
| 18 | * and to use this information only in connection with your use of Broadcom integrated circuit products. |
|---|
| 19 | * |
|---|
| 20 | * 2. TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" |
|---|
| 21 | * AND WITH ALL FAULTS AND BROADCOM MAKES NO PROMISES, REPRESENTATIONS OR |
|---|
| 22 | * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO |
|---|
| 23 | * THE SOFTWARE. BROADCOM SPECIFICALLY DISCLAIMS ANY AND ALL IMPLIED WARRANTIES |
|---|
| 24 | * OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, |
|---|
| 25 | * LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION |
|---|
| 26 | * OR CORRESPONDENCE TO DESCRIPTION. YOU ASSUME THE ENTIRE RISK ARISING OUT OF |
|---|
| 27 | * USE OR PERFORMANCE OF THE SOFTWARE. |
|---|
| 28 | * |
|---|
| 29 | * 3. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL BROADCOM OR ITS |
|---|
| 30 | * LICENSORS BE LIABLE FOR (i) CONSEQUENTIAL, INCIDENTAL, SPECIAL, INDIRECT, OR |
|---|
| 31 | * EXEMPLARY DAMAGES WHATSOEVER ARISING OUT OF OR IN ANY WAY RELATING TO YOUR |
|---|
| 32 | * USE OF OR INABILITY TO USE THE SOFTWARE EVEN IF BROADCOM HAS BEEN ADVISED OF |
|---|
| 33 | * THE POSSIBILITY OF SUCH DAMAGES; OR (ii) ANY AMOUNT IN EXCESS OF THE AMOUNT |
|---|
| 34 | * ACTUALLY PAID FOR THE SOFTWARE ITSELF OR U.S. $1, WHICHEVER IS GREATER. THESE |
|---|
| 35 | * LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF |
|---|
| 36 | * ANY LIMITED REMEDY. |
|---|
| 37 | * |
|---|
| 38 | * $brcm_Workfile: ip_includes.h $ |
|---|
| 39 | * $brcm_Revision: 6 $ |
|---|
| 40 | * $brcm_Date: 5/3/11 3:49p $ |
|---|
| 41 | * |
|---|
| 42 | * Module Description: |
|---|
| 43 | * ip applib test file |
|---|
| 44 | * |
|---|
| 45 | * Revision History: |
|---|
| 46 | * |
|---|
| 47 | * $brcm_Log: |
|---|
| 48 | * |
|---|
| 49 | ******************************************************************************/ |
|---|
| 50 | #ifndef IP_APPLIB_TEST_H__ |
|---|
| 51 | #define IP_APPLIB_TEST_H__ |
|---|
| 52 | #include <stdio.h> |
|---|
| 53 | #include <assert.h> |
|---|
| 54 | #include <string.h> |
|---|
| 55 | #include <stdlib.h> |
|---|
| 56 | #include <getopt.h> |
|---|
| 57 | #include <pthread.h> |
|---|
| 58 | #include <sys/types.h> |
|---|
| 59 | #include <sys/stat.h> |
|---|
| 60 | #include <fcntl.h> |
|---|
| 61 | #include <sys/socket.h> |
|---|
| 62 | #include <netdb.h> |
|---|
| 63 | #include <netinet/in.h> |
|---|
| 64 | #include <arpa/inet.h> |
|---|
| 65 | #include <unistd.h> |
|---|
| 66 | #include <sys/uio.h> |
|---|
| 67 | #include <sys/mman.h> |
|---|
| 68 | #include <signal.h> |
|---|
| 69 | #include <sys/time.h> |
|---|
| 70 | #include <asm/cachectl.h> |
|---|
| 71 | |
|---|
| 72 | #include "bstd.h" |
|---|
| 73 | #include "bkni.h" |
|---|
| 74 | #include "blst_list.h" |
|---|
| 75 | #include "blst_queue.h" |
|---|
| 76 | |
|---|
| 77 | #include "nexus_platform.h" |
|---|
| 78 | #if B_HAS_LIVE_STREAMING |
|---|
| 79 | #include "nexus_frontend.h" |
|---|
| 80 | #endif |
|---|
| 81 | #include "nexus_parser_band.h" |
|---|
| 82 | |
|---|
| 83 | #include "nexus_video_decoder.h" |
|---|
| 84 | #include "nexus_video_image_input.h" |
|---|
| 85 | #if NEXUS_STILL_DECODER |
|---|
| 86 | #include "nexus_still_decoder.h" |
|---|
| 87 | #endif |
|---|
| 88 | #if B_HAS_ANALOG |
|---|
| 89 | #include "nexus_analog_video_decoder.h" |
|---|
| 90 | #endif |
|---|
| 91 | #include "nexus_audio_decoder.h" |
|---|
| 92 | #include "nexus_display.h" |
|---|
| 93 | #include "nexus_video_window.h" |
|---|
| 94 | #include "nexus_component_output.h" |
|---|
| 95 | #include "nexus_composite_output.h" |
|---|
| 96 | #include "nexus_svideo_output.h" |
|---|
| 97 | #include "nexus_surface.h" |
|---|
| 98 | #include "nexus_pid_channel.h" |
|---|
| 99 | #include "nexus_playpump.h" |
|---|
| 100 | #include "nexus_playback.h" |
|---|
| 101 | #include "nexus_message.h" |
|---|
| 102 | #include "nexus_stc_channel.h" |
|---|
| 103 | #include "nexus_timebase.h" |
|---|
| 104 | #include "nexus_audio_output.h" |
|---|
| 105 | #include "nexus_audio_mixer.h" |
|---|
| 106 | #include "nexus_audio_dac.h" |
|---|
| 107 | #include "nexus_spdif_output.h" |
|---|
| 108 | #include "nexus_i2s_output.h" |
|---|
| 109 | #include "nexus_recpump.h" |
|---|
| 110 | #include "nexus_record.h" |
|---|
| 111 | #include "nexus_parser_band.h" |
|---|
| 112 | #include "nexus_video_input.h" |
|---|
| 113 | #include "nexus_audio_input.h" |
|---|
| 114 | #include "nexus_display_vbi.h" |
|---|
| 115 | #include "nexus_video_adj.h" |
|---|
| 116 | #include "nexus_picture_ctrl.h" |
|---|
| 117 | #include "nexus_ccir656_input.h" |
|---|
| 118 | #include "nexus_video_input_crc.h" |
|---|
| 119 | #include "nexus_core_utils.h" |
|---|
| 120 | #include "nexus_audio_decoder_trick.h" |
|---|
| 121 | #include "b_playback_ip_lib.h" |
|---|
| 122 | #ifdef B_HAS_NETACCEL_SUPPORT |
|---|
| 123 | #include "bnetaccel_info.h" |
|---|
| 124 | #endif |
|---|
| 125 | |
|---|
| 126 | #ifndef _WIN32_WCE |
|---|
| 127 | #ifndef B_SYSTEM_linuxkernel |
|---|
| 128 | #include <sys/socket.h> |
|---|
| 129 | #include <netinet/in.h> |
|---|
| 130 | #include <arpa/inet.h> |
|---|
| 131 | #endif |
|---|
| 132 | #ifdef __vxworks |
|---|
| 133 | #include <sockLib.h> |
|---|
| 134 | #include <sysLib.h> |
|---|
| 135 | #ifndef VXWORKS6 |
|---|
| 136 | typedef int socklen_t; |
|---|
| 137 | #endif |
|---|
| 138 | #endif |
|---|
| 139 | #else |
|---|
| 140 | #include <winsock2.h> |
|---|
| 141 | #include <ws2tcpip.h> |
|---|
| 142 | #endif |
|---|
| 143 | |
|---|
| 144 | #ifdef B_HAS_DTCP_IP |
|---|
| 145 | #include "b_dtcp_applib.h" |
|---|
| 146 | #endif |
|---|
| 147 | #include "b_os_lib.h" |
|---|
| 148 | |
|---|
| 149 | #ifdef B_AUTO_PSI_SUPPORT |
|---|
| 150 | #include "b_psip_lib.h" |
|---|
| 151 | #endif |
|---|
| 152 | #include "nexus_core_utils.h" |
|---|
| 153 | #include "nexus_audio_decoder_trick.h" |
|---|
| 154 | |
|---|
| 155 | #endif /* IP_APPLIB_TEST_H__*/ |
|---|