| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2011, 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: $ |
|---|
| 11 | * $brcm_Revision: $ |
|---|
| 12 | * $brcm_Date: $ |
|---|
| 13 | * |
|---|
| 14 | * Module Description: |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: $ |
|---|
| 19 | * |
|---|
| 20 | ****************************************************************************/ |
|---|
| 21 | #ifndef __DVB_DESCRIPTOR_H__ |
|---|
| 22 | #define __DVB_DESCRIPTOR_H__ |
|---|
| 23 | |
|---|
| 24 | /* should sync with btuner_qam_mode in bsettop_tuner.h */ |
|---|
| 25 | enum { |
|---|
| 26 | eDVB_QAM_16 = 0x10, |
|---|
| 27 | eDVB_QAM_32 = 0x20, |
|---|
| 28 | eDVB_QAM_64 = 0x30, |
|---|
| 29 | eDVB_QAM_128 = 0x40, |
|---|
| 30 | eDVB_QAM_256 = 0x50, |
|---|
| 31 | eDVB_QAM_512 = 0x60, |
|---|
| 32 | eDVB_QAM_1024 = 0x70, |
|---|
| 33 | eDVB_QAM_2048 = 0x80, |
|---|
| 34 | eDVB_QAM_4096 = 0x90, |
|---|
| 35 | eDVB_QAM_Scan = 0xFF, |
|---|
| 36 | }; |
|---|
| 37 | |
|---|
| 38 | typedef struct desc_hdr_t { |
|---|
| 39 | uint8_t tag; |
|---|
| 40 | } desc_hdr_t; |
|---|
| 41 | |
|---|
| 42 | typedef struct service_list_desc_t |
|---|
| 43 | { |
|---|
| 44 | desc_hdr_t hdr; |
|---|
| 45 | uint8_t num_list; |
|---|
| 46 | uint16_t service_id[MAX_SERVICE_LIST]; |
|---|
| 47 | uint8_t service_type[MAX_SERVICE_LIST]; |
|---|
| 48 | } service_list_desc_t; |
|---|
| 49 | |
|---|
| 50 | typedef struct network_name_desc_t { |
|---|
| 51 | desc_hdr_t hdr; |
|---|
| 52 | uint8_t name[MAX_NAME_LEN]; |
|---|
| 53 | } network_name_desc_t; |
|---|
| 54 | |
|---|
| 55 | typedef struct cable_delivery_desc_t { |
|---|
| 56 | desc_hdr_t hdr; |
|---|
| 57 | uint32_t frequency; |
|---|
| 58 | uint8_t modulation; |
|---|
| 59 | uint32_t symbol_rate; |
|---|
| 60 | uint8_t code_rate; |
|---|
| 61 | } cable_delivery_desc_t; |
|---|
| 62 | |
|---|
| 63 | typedef struct terrestrial_delivery_desc_t { |
|---|
| 64 | desc_hdr_t hdr; |
|---|
| 65 | uint32_t frequency; /* khz */ |
|---|
| 66 | uint8_t constellation; |
|---|
| 67 | uint8_t bandwidth; |
|---|
| 68 | } terrestrial_delivery_desc_t; |
|---|
| 69 | |
|---|
| 70 | typedef struct satellite_delivery_desc_t { |
|---|
| 71 | desc_hdr_t hdr; |
|---|
| 72 | uint32_t frequency; |
|---|
| 73 | } satellite_delivery_desc_t; |
|---|
| 74 | |
|---|
| 75 | typedef struct service_desc_t { |
|---|
| 76 | desc_hdr_t hdr; |
|---|
| 77 | uint8_t service_type; /* service type. table 72. */ |
|---|
| 78 | uint8_t provider_name[MAX_NAME_LEN]; |
|---|
| 79 | uint8_t service_name[MAX_NAME_LEN]; |
|---|
| 80 | } service_desc_t; |
|---|
| 81 | |
|---|
| 82 | typedef struct short_event_desc_t { |
|---|
| 83 | desc_hdr_t hdr; |
|---|
| 84 | uint8_t lang_code[3]; |
|---|
| 85 | uint8_t event_name[MAX_EVENT_NAME]; |
|---|
| 86 | uint8_t event_text[MAX_EVENT_TEXT]; |
|---|
| 87 | } short_event_desc_t; |
|---|
| 88 | |
|---|
| 89 | typedef struct extend_event_desc_t |
|---|
| 90 | { |
|---|
| 91 | desc_hdr_t hdr; |
|---|
| 92 | uint8_t lang_code[3]; |
|---|
| 93 | uint8_t item_desc[MAX_EVENT_NAME]; |
|---|
| 94 | uint8_t item_char[MAX_EVENT_NAME]; |
|---|
| 95 | uint8_t text_char[MAX_EVENT_TEXT]; |
|---|
| 96 | } extend_event_desc_t; |
|---|
| 97 | |
|---|
| 98 | typedef struct rating_desc_t |
|---|
| 99 | { |
|---|
| 100 | desc_hdr_t hdr; |
|---|
| 101 | uint8_t country_code[3]; |
|---|
| 102 | uint8_t rating; |
|---|
| 103 | } rating_desc_t; |
|---|
| 104 | |
|---|
| 105 | typedef struct ca_desc_t |
|---|
| 106 | { |
|---|
| 107 | desc_hdr_t hdr; |
|---|
| 108 | uint16_t ca_system_id; |
|---|
| 109 | } ca_desc_t; |
|---|
| 110 | |
|---|
| 111 | typedef struct content_desc_t |
|---|
| 112 | { |
|---|
| 113 | desc_hdr_t hdr; |
|---|
| 114 | uint8_t content; |
|---|
| 115 | uint8_t user; |
|---|
| 116 | } content_desc_t; |
|---|
| 117 | |
|---|
| 118 | typedef struct pdc_desc_t |
|---|
| 119 | { |
|---|
| 120 | desc_hdr_t hdr; |
|---|
| 121 | uint8_t day; |
|---|
| 122 | uint8_t month; |
|---|
| 123 | uint16_t hour; |
|---|
| 124 | uint16_t minute; |
|---|
| 125 | } pdc_desc_t; |
|---|
| 126 | |
|---|
| 127 | typedef struct component_desc_t |
|---|
| 128 | { |
|---|
| 129 | desc_hdr_t hdr; |
|---|
| 130 | uint8_t content; |
|---|
| 131 | uint8_t type; |
|---|
| 132 | uint8_t tag; |
|---|
| 133 | uint8_t lang[3]; |
|---|
| 134 | uint8_t text[MAX_EVENT_TEXT]; |
|---|
| 135 | } component_desc_t; |
|---|
| 136 | |
|---|
| 137 | typedef struct timeshift_event_desc_t |
|---|
| 138 | { |
|---|
| 139 | desc_hdr_t hdr; |
|---|
| 140 | uint16_t service_id; |
|---|
| 141 | uint16_t event_id; |
|---|
| 142 | } timeshift_event_desc_t; |
|---|
| 143 | |
|---|
| 144 | typedef struct freq_list_desc_t { |
|---|
| 145 | desc_hdr_t hdr; |
|---|
| 146 | uint8_t num_freq; |
|---|
| 147 | uint8_t coding_type; |
|---|
| 148 | uint32_t frequency[0xFF]; |
|---|
| 149 | } freq_list_desc_t; |
|---|
| 150 | |
|---|
| 151 | typedef struct time_offset_desc_t { |
|---|
| 152 | desc_hdr_t hdr; |
|---|
| 153 | uint8_t num_offset; |
|---|
| 154 | struct time_offset_t { |
|---|
| 155 | uint8_t country[3]; |
|---|
| 156 | uint8_t region_id; |
|---|
| 157 | uint8_t polarity; |
|---|
| 158 | uint16_t offset; |
|---|
| 159 | uint32_t toc; |
|---|
| 160 | uint16_t next_offset; |
|---|
| 161 | } offsets[MAX_TIMEOFFSET]; |
|---|
| 162 | } time_offset_desc_t; |
|---|
| 163 | |
|---|
| 164 | typedef struct bouquet_name_desc_t { |
|---|
| 165 | desc_hdr_t hdr; |
|---|
| 166 | uint8_t bouquet_name[MAX_NAME_LEN]; |
|---|
| 167 | } bouquet_name_desc_t; |
|---|
| 168 | |
|---|
| 169 | typedef struct teletext_desc_t { |
|---|
| 170 | desc_hdr_t hdr; |
|---|
| 171 | uint8_t lang[3]; |
|---|
| 172 | uint8_t type; |
|---|
| 173 | uint8_t magazine; |
|---|
| 174 | uint8_t page; |
|---|
| 175 | } teletext_desc_t; |
|---|
| 176 | |
|---|
| 177 | typedef struct subtitling_desc_t { |
|---|
| 178 | desc_hdr_t hdr; |
|---|
| 179 | uint8_t lang[3]; |
|---|
| 180 | uint8_t type; |
|---|
| 181 | uint16_t composition_page; |
|---|
| 182 | uint16_t ancillary_page; |
|---|
| 183 | } subtitling_desc_t; |
|---|
| 184 | |
|---|
| 185 | #endif |
|---|