1 /**************************************************************************** 2 **+-----------------------------------------------------------------------+** 3 **| |** 4 **| Copyright(c) 1998 - 2008 Texas Instruments. All rights reserved. |** 5 **| All rights reserved. |** 6 **| |** 7 **| Redistribution and use in source and binary forms, with or without |** 8 **| modification, are permitted provided that the following conditions |** 9 **| are met: |** 10 **| |** 11 **| * Redistributions of source code must retain the above copyright |** 12 **| notice, this list of conditions and the following disclaimer. |** 13 **| * Redistributions in binary form must reproduce the above copyright |** 14 **| notice, this list of conditions and the following disclaimer in |** 15 **| the documentation and/or other materials provided with the |** 16 **| distribution. |** 17 **| * Neither the name Texas Instruments nor the names of its |** 18 **| contributors may be used to endorse or promote products derived |** 19 **| from this software without specific prior written permission. |** 20 **| |** 21 **| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |** 22 **| "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |** 23 **| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |** 24 **| A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |** 25 **| OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |** 26 **| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |** 27 **| LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |** 28 **| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |** 29 **| THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |** 30 **| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |** 31 **| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |** 32 **| |** 33 **+-----------------------------------------------------------------------+** 34 ****************************************************************************/ 35 36 #ifndef __OSRGSTRY_H_ 37 #define __OSRGSTRY_H_ 38 39 typedef struct { 40 41 PUCHAR ParameterName; 42 NDIS_STRING NdisParameterName; 43 44 NDIS_PARAMETER_TYPE ParameterType; 45 46 BOOLEAN RangeCheck; 47 48 ULONG DefaultValue; 49 ULONG MinValue; 50 ULONG MaxValue; 51 52 ULONG FieldOffset; 53 ULONG FieldSize; 54 55 } REGISTRY_DATA, *PREGISTRY_DATA; 56 57 58 VOID 59 regFillInitTable( 60 PTIWLN_ADAPTER_T pAdapter, 61 PVOID pInitTable 62 ); 63 64 VOID 65 regReadParameters( 66 PTIWLN_ADAPTER_T pAdapter 67 ); 68 69 VOID 70 regWriteInstanceNumber( 71 PTIWLN_ADAPTER_T pAdapter 72 ); 73 74 VOID 75 regReadIntegerParameter( 76 PTIWLN_ADAPTER_T pAdapter, 77 PNDIS_STRING pParameterName, 78 ULONG defaultValue, 79 ULONG minValue, 80 ULONG maxValue, 81 UCHAR parameterSize, 82 PUCHAR pParameter 83 ); 84 85 VOID 86 regReadStringParameter( 87 PTIWLN_ADAPTER_T pAdapter, 88 PNDIS_STRING pParameterName, 89 PCHAR pDefaultValue, 90 USHORT defaultLen, 91 PUCHAR pParameter, 92 void* pParameterSize 93 ); 94 95 VOID 96 regReadUnicodeStringParameter( 97 PTIWLN_ADAPTER_T pAdapter, 98 PNDIS_STRING pParameterName, 99 PCHAR pDefaultValue, 100 UCHAR defaultLen, 101 PUCHAR pParameter, 102 PUCHAR pParameterSize 103 ); 104 105 106 VOID 107 regReadWepKeyParameter( 108 PTIWLN_ADAPTER_T pAdapter, 109 PUCHAR pKeysStructure, 110 UINT8 defaultKeyId 111 ); 112 113 VOID 114 regReadNetworkAddress(PTIWLN_ADAPTER_T pAdapter); 115 116 #ifdef TI_DBG 117 118 VOID 119 regReadLastDbgState( 120 PTIWLN_ADAPTER_T pAdapter 121 ); 122 123 VOID 124 regWriteLastDbgState( 125 PTIWLN_ADAPTER_T pAdapter 126 ); 127 128 #endif 129 130 // TRS:AS registry callbacks 131 #if defined(_WINDOWS) 132 #endif /* if defined(_WINDOWS) */ 133 //TRS end 134 135 #endif // __OSRGSTRY_H_ 136 137