OLD | NEW |
1 //------------------------------------------------------------------------------ | 1 //------------------------------------------------------------------------------ |
2 // <copyright file="dset_internal.h" company="Atheros"> | 2 // <copyright file="dset_internal.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 __DSET_INTERNAL_H__ | 25 #ifndef __DSET_INTERNAL_H__ |
22 #define __DSET_INTERNAL_H__ | 26 #define __DSET_INTERNAL_H__ |
23 | 27 |
| 28 #ifndef ATH_TARGET |
| 29 #include "athstartpack.h" |
| 30 #endif |
| 31 |
24 /* | 32 /* |
25 * Internal dset definitions, common for DataSet layer. | 33 * Internal dset definitions, common for DataSet layer. |
26 */ | 34 */ |
27 | 35 |
28 #define DSET_TYPE_STANDARD 0 | 36 #define DSET_TYPE_STANDARD 0 |
29 #define DSET_TYPE_BPATCHED 1 | 37 #define DSET_TYPE_BPATCHED 1 |
30 #define DSET_TYPE_COMPRESSED 2 | 38 #define DSET_TYPE_COMPRESSED 2 |
31 | 39 |
32 /* Dataset descriptor */ | 40 /* Dataset descriptor */ |
33 | 41 |
34 typedef struct dset_descriptor_s { | 42 typedef PREPACK struct dset_descriptor_s { |
35 struct dset_descriptor_s *next; /* List link. NULL only at the last | 43 struct dset_descriptor_s *next; /* List link. NULL only at the last |
36 descriptor */ | 44 descriptor */ |
37 A_UINT16 id; /* Dset ID */ | 45 A_UINT16 id; /* Dset ID */ |
38 A_UINT16 size; /* Dset size. */ | 46 A_UINT16 size; /* Dset size. */ |
39 void *DataPtr; /* Pointer to raw data for standard | 47 void *DataPtr; /* Pointer to raw data for standard |
40 DataSet or pointer to original | 48 DataSet or pointer to original |
41 dset_descriptor for patched | 49 dset_descriptor for patched |
42 DataSet */ | 50 DataSet */ |
43 A_UINT32 data_type; /* DSET_TYPE_*, above */ | 51 A_UINT32 data_type; /* DSET_TYPE_*, above */ |
44 | 52 |
45 void *AuxPtr; /* Additional data that might | 53 void *AuxPtr; /* Additional data that might |
46 needed for data_type. For | 54 needed for data_type. For |
47 example, pointer to patch | 55 example, pointer to patch |
48 Dataset descriptor for BPatch. */ | 56 Dataset descriptor for BPatch. */ |
49 } dset_descriptor_t; | 57 } POSTPACK dset_descriptor_t; |
| 58 |
| 59 #ifndef ATH_TARGET |
| 60 #include "athendpack.h" |
| 61 #endif |
50 | 62 |
51 #endif /* __DSET_INTERNAL_H__ */ | 63 #endif /* __DSET_INTERNAL_H__ */ |
OLD | NEW |