Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: chromeos/drivers/ath6kl/include/common/dsetid.h

Issue 3579004: ath6kl: Bringing in the upstream version (Closed) Base URL: http://git.chromium.org/git/kernel.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 //------------------------------------------------------------------------------ 1 //------------------------------------------------------------------------------
2 // <copyright file="dsetid.h" company="Atheros"> 2 // <copyright file="dsetid.h" company="Atheros">
3 // Copyright (c) 2004-2007 Atheros Corporation. All rights reserved. 3 // Copyright (c) 2004-2010 Atheros Corporation. All rights reserved.
4 // 4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License version 2 as
7 // published by the Free Software Foundation;
8 // 5 //
9 // Software distributed under the License is distributed on an "AS 6 // Permission to use, copy, modify, and/or distribute this software for any
10 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or 7 // purpose with or without fee is hereby granted, provided that the above
11 // implied. See the License for the specific language governing 8 // copyright notice and this permission notice appear in all copies.
12 // rights and limitations under the License. 9 //
10 // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
13 // 17 //
14 // 18 //
15 //------------------------------------------------------------------------------ 19 //------------------------------------------------------------------------------
16 //============================================================================== 20 //==============================================================================
17 // Author(s): ="Atheros" 21 // Author(s): ="Atheros"
18 //============================================================================== 22 //==============================================================================
19 23
20 24
21 #ifndef __DSETID_H__ 25 #ifndef __DSETID_H__
22 #define __DSETID_H__ 26 #define __DSETID_H__
23 27
28 #ifndef ATH_TARGET
29 #include "athstartpack.h"
30 #endif
31
24 /* Well-known DataSet IDs */ 32 /* Well-known DataSet IDs */
25 #define DSETID_UNUSED 0x00000000 33 #define DSETID_UNUSED 0x00000000
26 #define DSETID_BOARD_DATA 0x00000001 /* Cal and board data */ 34 #define DSETID_BOARD_DATA 0x00000001 /* Cal and board data */
27 #define DSETID_REGDB 0x00000002 /* Regulatory Database */ 35 #define DSETID_REGDB 0x00000002 /* Regulatory Database */
28 #define DSETID_POWER_CONTROL 0x00000003 /* TX Pwr Lim & Ant Gain */ 36 #define DSETID_POWER_CONTROL 0x00000003 /* TX Pwr Lim & Ant Gain */
29 #define DSETID_USER_CONFIG 0x00000004 /* User Configuration */ 37 #define DSETID_USER_CONFIG 0x00000004 /* User Configuration */
30 38
31 #define DSETID_ANALOG_CONTROL_DATA_START 0x00000005 39 #define DSETID_ANALOG_CONTROL_DATA_START 0x00000005
32 #define DSETID_ANALOG_CONTROL_DATA_END 0x00000025 40 #define DSETID_ANALOG_CONTROL_DATA_END 0x00000025
33 /* 41 /*
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 DataSet Index */ 73 DataSet Index */
66 #define DSETID_INDEX_FREE 0xffffffff /* An unused index entry */ 74 #define DSETID_INDEX_FREE 0xffffffff /* An unused index entry */
67 75
68 /* 76 /*
69 * PATCH DataSet format: 77 * PATCH DataSet format:
70 * A list of patches, terminated by a patch with 78 * A list of patches, terminated by a patch with
71 * address=PATCH_END. 79 * address=PATCH_END.
72 * 80 *
73 * This allows for patches to be stored in flash. 81 * This allows for patches to be stored in flash.
74 */ 82 */
75 struct patch_s { 83 PREPACK struct patch_s {
76 A_UINT32 *address; 84 A_UINT32 *address;
77 A_UINT32 data; 85 A_UINT32 data;
78 }; 86 } POSTPACK ;
79 87
80 /* 88 /*
81 * Skip some patches. Can be used to erase a single patch in a 89 * Skip some patches. Can be used to erase a single patch in a
82 * patch DataSet without having to re-write the DataSet. May 90 * patch DataSet without having to re-write the DataSet. May
83 * also be used to embed information for use by subsequent 91 * also be used to embed information for use by subsequent
84 * patch code. The "data" in a PATCH_SKIP tells how many 92 * patch code. The "data" in a PATCH_SKIP tells how many
85 * bytes of length "patch_s" to skip. 93 * bytes of length "patch_s" to skip.
86 */ 94 */
87 #define PATCH_SKIP ((A_UINT32 *)0x00000000) 95 #define PATCH_SKIP ((A_UINT32 *)0x00000000)
88 96
(...skipping 23 matching lines...) Expand all
112 * To create a suitable bdiff DataSet, use bdiff in host/tools/bdiff 120 * To create a suitable bdiff DataSet, use bdiff in host/tools/bdiff
113 * to create "diffs": 121 * to create "diffs":
114 * bdiff -q -O -nooldmd5 -nonewmd5 -d ORIGfile NEWfile diffs 122 * bdiff -q -O -nooldmd5 -nonewmd5 -d ORIGfile NEWfile diffs
115 * Then add BPatch metadata to the start of "diffs". 123 * Then add BPatch metadata to the start of "diffs".
116 * 124 *
117 * NB: There are some implementation-induced restrictions 125 * NB: There are some implementation-induced restrictions
118 * on which DataSets can be BPatched. 126 * on which DataSets can be BPatched.
119 */ 127 */
120 #define DSETID_BPATCH_FLAG 0x80000000 128 #define DSETID_BPATCH_FLAG 0x80000000
121 129
130 #ifndef ATH_TARGET
131 #include "athendpack.h"
132 #endif
133
122 #endif /* __DSETID_H__ */ 134 #endif /* __DSETID_H__ */
OLDNEW
« no previous file with comments | « chromeos/drivers/ath6kl/include/common/dset_internal.h ('k') | chromeos/drivers/ath6kl/include/common/epping_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698