1 //------------------------------------------------------------------------------
2 // <copyright file="dset_internal.h" company="Atheros">
3 // Copyright (c) 2004-2010 Atheros Corporation. All rights reserved.
6 // Permission to use, copy, modify, and/or distribute this software for any
7 // purpose with or without fee is hereby granted, provided that the above
8 // copyright notice and this permission notice appear in all copies.
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.
19 //------------------------------------------------------------------------------
20 //==============================================================================
21 // Author(s): ="Atheros"
22 //==============================================================================
25 #ifndef __DSET_INTERNAL_H__
26 #define __DSET_INTERNAL_H__
29 #include "athstartpack.h"
33 * Internal dset definitions, common for DataSet layer.
36 #define DSET_TYPE_STANDARD 0
37 #define DSET_TYPE_BPATCHED 1
38 #define DSET_TYPE_COMPRESSED 2
40 /* Dataset descriptor */
42 typedef PREPACK struct dset_descriptor_s {
43 struct dset_descriptor_s *next; /* List link. NULL only at the last
46 u16 size; /* Dset size. */
47 void *DataPtr; /* Pointer to raw data for standard
48 DataSet or pointer to original
49 dset_descriptor for patched
51 u32 data_type; /* DSET_TYPE_*, above */
53 void *AuxPtr; /* Additional data that might
54 needed for data_type. For
55 example, pointer to patch
56 Dataset descriptor for BPatch. */
57 } POSTPACK dset_descriptor_t;
60 #include "athendpack.h"
63 #endif /* __DSET_INTERNAL_H__ */