source: svn/trunk/newcon3bcm2_21bu/dta/src/app/dsmcc.h @ 2

Last change on this file since 2 was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 2.0 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2003-2008, 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 ***************************************************************************/
22
23#if !defined(__DSMCC_H__)
24#define __DSMCC_H__
25
26#include "getbits.h"
27
28struct cvt_info_t {
29    uint8_t protocol_version;
30    uint8_t configuration_count_change;
31    uint32_t vendor_id;
32    uint32_t hardware_version_id;
33    uint8_t location_type;
34    uint8_t download_type;
35    uint16_t source_ID;
36    uint16_t frequency_vector;
37    uint8_t modulation_type;
38    uint16_t program_number;
39    uint16_t pid;
40    uint8_t code_file_name_length;
41    uint8_t code_file_name[0x100];
42};
43
44struct dii_info_t {
45    uint16_t version;
46    uint32_t transaction_id;
47    uint16_t message_length;
48    uint32_t download_id;
49    uint16_t block_size;
50    uint32_t download_scenario;
51    uint16_t number_of_modules;
52    struct bit_state_t bs;
53};
54
55struct dii_module_t {
56    uint16_t module_id;
57    uint32_t module_size;
58    uint8_t module_version;
59    uint8_t module_info_length;
60    uint8_t module_info_byte[0x100];
61};
62
63struct ddb_info_t {
64    uint32_t download_id;
65    uint16_t message_length;
66    uint16_t module_id;
67    uint8_t module_version;
68    uint16_t block_number;
69    uint16_t data_length;
70    uint8_t * data_bytes;
71};
72
73int dsmcc_dii_parse(void * data, size_t msg_size, struct dii_info_t * dii);
74
75int dsmcc_dii_next_module(struct dii_info_t * dii, struct dii_module_t * diim);
76
77int dsmcc_ddb_parse(void * data, size_t msg_length, struct ddb_info_t * ddb);
78
79int cvt_parse(void * c, size_t msg_size, struct cvt_info_t * cvt);
80
81#endif
Note: See TracBrowser for help on using the repository browser.