1/*
2 * Copyright (c) 2007 Atheros Communications Inc.
3 * All rights reserved.
4 *
5 * $ATH_LICENSE_HOSTSDK0_C$
6 *
7 */
8
9#ifndef __DSET_INTERNAL_H__
10#define __DSET_INTERNAL_H__
11
12/*
13 * Internal dset definitions, common for DataSet layer.
14 */
15
16#define DSET_TYPE_STANDARD      0
17#define DSET_TYPE_BPATCHED      1
18#define DSET_TYPE_COMPRESSED    2
19
20/* Dataset descriptor */
21
22typedef struct dset_descriptor_s {
23  struct dset_descriptor_s  *next;         /* List link. NULL only at the last
24                                              descriptor */
25  A_UINT16                   id;           /* Dset ID */
26  A_UINT16                   size;         /* Dset size. */
27  void                      *DataPtr;      /* Pointer to raw data for standard
28                                              DataSet or pointer to original
29                                              dset_descriptor for patched
30                                              DataSet */
31  A_UINT32                   data_type;    /* DSET_TYPE_*, above */
32
33  void                      *AuxPtr;       /* Additional data that might
34                                              needed for data_type. For
35                                              example, pointer to patch
36                                              Dataset descriptor for BPatch. */
37} dset_descriptor_t;
38
39#endif /* __DSET_INTERNAL_H__ */
40