Debian Codegraph @

xpp/oct612x/include/oct6100api/oct6100_tlv_inst.h

raw
1 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
2
3 File: oct6100_tlv_inst.h
4
5 Copyright (c) 2001-2007 Octasic Inc.
6
7 Description:
8
9 File containing all defines, macros, and structures pertaining to the file
10 oct6100_tlv.c. All elements defined in this file are for public
11 usage of the API. All instate elements are defined in the
12 oct6100_tlv_inst.h file.
13
14 This file is part of the Octasic OCT6100 GPL API . The OCT6100 GPL API is
15 free software; you can redistribute it and/or modify it under the terms of
16 the GNU General Public License as published by the Free Software Foundation;
17 either version 2 of the License, or (at your option) any later version.
18
19 The OCT6100 GPL API is distributed in the hope that it will be useful, but
20 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with the OCT6100 GPL API; if not, write to the Free Software
26 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
27
28 $Octasic_Release: OCT612xAPI-01.00-PR49 $
29
30 $Octasic_Revision: 7 $
31
32 \*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
33
34 #ifndef __OCT6100_TLV_INST_H__
35 #define __OCT6100_TLV_INST_H__
36
37 /***************************** INCLUDE FILES *******************************/
38
39 /***************************** DEFINES *************************************/
40
41 /***************************** TYPES ***************************************/
42
43 typedef struct _OCT6100_TLV_OFFSET_
44 {
45 /* The dword offset contain the number of dword from a base address to reach the desired dword.
46
47 i.e. usDwordOffset = (total bit offset) / 32; */
48
49 UINT16 usDwordOffset;
50
51 /* The bit offset will contain the bit offset required to right shift the DWORD read and obtain
52 the desired value. This field is depend on the field size.
53
54 i.e. byBitOffset = 31 - ((total bit offset) % 32) - byFieldSize; */
55
56 UINT8 byBitOffset;
57 UINT8 byFieldSize;
58
59 } tOCT6100_TLV_OFFSET, *tPOCT6100_TLV_OFFSET;
60
61 typedef struct _OCT6100_TLV_TONE_INFO_
62 {
63 UINT32 ulToneID;
64 UINT32 ulDetectionPort;
65
66 UINT8 aszToneName[ cOCT6100_TLV_MAX_TONE_NAME_SIZE ];
67
68
69
70 } tOCT6100_TLV_TONE_INFO, *tPOCT6100_TLV_TONE_INFO;
71
72 #endif /* __OCT6100_TLV_INST_H__ */