Merge branch 'linux-next' of git://git.infradead.org/ubifs-2.6
[pandora-kernel.git] / drivers / staging / ath6kl / include / common / dset_internal.h
1 //------------------------------------------------------------------------------
2 // <copyright file="dset_internal.h" company="Atheros">
3 //    Copyright (c) 2004-2010 Atheros Corporation.  All rights reserved.
4 // 
5 //
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.
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.
17 //
18 //
19 //------------------------------------------------------------------------------
20 //==============================================================================
21 // Author(s): ="Atheros"
22 //==============================================================================
23
24
25 #ifndef __DSET_INTERNAL_H__
26 #define __DSET_INTERNAL_H__
27
28 #ifndef ATH_TARGET
29 #include "athstartpack.h"
30 #endif
31
32 /*
33  * Internal dset definitions, common for DataSet layer.
34  */
35
36 #define DSET_TYPE_STANDARD      0
37 #define DSET_TYPE_BPATCHED      1
38 #define DSET_TYPE_COMPRESSED    2
39
40 /* Dataset descriptor */
41
42 typedef PREPACK struct dset_descriptor_s {
43   struct dset_descriptor_s  *next;         /* List link. NULL only at the last
44                                               descriptor */
45   u16 id;           /* Dset ID */
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
50                                               DataSet */
51   u32 data_type;    /* DSET_TYPE_*, above */
52
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;
58
59 #ifndef ATH_TARGET
60 #include "athendpack.h"
61 #endif
62
63 #endif /* __DSET_INTERNAL_H__ */