source: svn/newcon3bcm2_21bu/nexus/lib/playback_ip/apps/ip_psi.h

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 5.4 KB
Line 
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_psi.h $
39 * $brcm_Revision: 10 $
40 * $brcm_Date: 7/14/11 12:01p $
41 *
42 * Module Description:
43 *  header file for PSI acquisition
44 *
45 * Revision History:
46 *
47 * $brcm_Log: /nexus/lib/playback_ip/apps/ip_psi.h $
48 *
49 * 10   7/14/11 12:01p ssood
50 * SW7346-309: Add support for Streaming from Satellite Source
51 *
52 * 9   1/27/10 10:18a ssood
53 * SW7420-454: conditionally compile Live Streaming Code using
54 *  LIVE_STREAMING_SUPPORT
55 *
56 * 8   1/14/10 6:41p ssood
57 * SW7408-47: Add support to compile IP Streamer App on platforms w/ no
58 *  frontend support
59 *
60 * 7   11/17/09 2:58p ssood
61 * SW7420-454: Enhance IP Streamer to stream files from local disk
62 *
63 * 6   10/20/09 6:33p ssood
64 * SW7420-340: remove nexus playback, audio, video decoder dependencies
65 *  for SMS compilation
66 *
67 * 5   9/30/09 9:49a ssood
68 * SW7420-340: wait for signal lock before starting PSI acquisition
69 *
70 * 4   9/25/09 5:15p ssood
71 * SW7420-340: Add support for VSB frontend
72 *
73 * 3   9/17/09 2:58p ssood
74 * SW7420-340: compiling for SMS
75 *
76 * 2   9/17/09 2:25p ssood
77 * SW7420-340: include nexus files pertaining to ip streaming only
78 *
79 ******************************************************************************/
80#ifndef IP_PSI_H__
81#define IP_PSI_H__
82#include <stdio.h>
83#include <assert.h>
84#include <string.h>
85#include <stdlib.h>
86#include <getopt.h>
87#include <sys/types.h>
88#include <sys/stat.h>
89#include <fcntl.h>
90#include <sys/socket.h>
91#include <netdb.h>
92#include <netinet/in.h>
93#include <arpa/inet.h>
94#include <unistd.h>
95#include <sys/uio.h>
96#include <sys/mman.h>
97#include <signal.h>
98#include <sys/time.h>
99#include <asm/cachectl.h>
100
101#include "bstd.h"
102#include "bkni.h"
103#include "blst_list.h"
104#include "blst_queue.h"
105
106#include "nexus_platform.h"
107#include "nexus_pid_channel.h"
108#include "nexus_playpump.h"
109#include "nexus_message.h"
110#include "nexus_pid_channel.h"
111#include "nexus_parser_band.h"
112#include "bstd.h"
113#include "bkni.h"
114#include <stdio.h>
115#include <stdlib.h>
116#include "b_playback_ip_lib.h"
117#include "ip_streamer_lib.h"
118#include "ip_streamer.h"
119
120#define NUM_PID_CHANNELS 4
121
122typedef struct psiCollectionDataType
123{
124    IpStreamerSrc               srcType;
125    NEXUS_ParserBand            parserBand;
126#if B_HAS_LIVE_STREAMING
127    NEXUS_FrontendHandle        frontend;
128    NEXUS_FrontendQamSettings   *qamSettings;
129    NEXUS_FrontendSatelliteSettings   *satSettings;
130    NEXUS_FrontendVsbSettings   *vsbSettings;
131#endif
132    BKNI_EventHandle            signalLockedEvent;
133    NEXUS_PlaypumpHandle        playpump;
134    NEXUS_PlaybackHandle        playback;
135    NEXUS_FilePlayHandle        file;
136    B_PlaybackIpHandle          playbackIp;
137    bool                        live;
138    struct {
139        uint16_t                    num;
140        NEXUS_PidChannelHandle      channel;
141        } pid[NUM_PID_CHANNELS];
142} psiCollectionDataType,*pPsiCollectionDataType;
143
144
145void acquirePsiInfo(pPsiCollectionDataType pCollectionData, B_PlaybackIpPsiInfo *psi, int *numPrograms);
146
147#endif /* IP_PSI_H__*/
Note: See TracBrowser for help on using the repository browser.