Merge branch 'master' of /pub/scm/linux/kernel/git/torvalds/linux-2.6
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / drivers / staging / wlan-ng / p80211meta.h
blob2f3c9fc3358c4ec6945cf0f317111b6a503a0e86
1 /* p80211meta.h
3 * Macros, constants, types, and funcs for p80211 metadata
5 * Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved.
6 * --------------------------------------------------------------------
8 * linux-wlan
10 * The contents of this file are subject to the Mozilla Public
11 * License Version 1.1 (the "License"); you may not use this file
12 * except in compliance with the License. You may obtain a copy of
13 * the License at http://www.mozilla.org/MPL/
15 * Software distributed under the License is distributed on an "AS
16 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
17 * implied. See the License for the specific language governing
18 * rights and limitations under the License.
20 * Alternatively, the contents of this file may be used under the
21 * terms of the GNU Public License version 2 (the "GPL"), in which
22 * case the provisions of the GPL are applicable instead of the
23 * above. If you wish to allow the use of your version of this file
24 * only under the terms of the GPL and not to allow others to use
25 * your version of this file under the MPL, indicate your decision
26 * by deleting the provisions above and replace them with the notice
27 * and other provisions required by the GPL. If you do not delete
28 * the provisions above, a recipient may use your version of this
29 * file under either the MPL or the GPL.
31 * --------------------------------------------------------------------
33 * Inquiries regarding the linux-wlan Open Source project can be
34 * made directly to:
36 * AbsoluteValue Systems Inc.
37 * info@linux-wlan.com
38 * http://www.linux-wlan.com
40 * --------------------------------------------------------------------
42 * Portions of the development of this software were funded by
43 * Intersil Corporation as part of PRISM(R) chipset product development.
45 * --------------------------------------------------------------------
47 * This file declares some of the constants and types used in various
48 * parts of the linux-wlan system.
50 * Notes:
51 * - Constant values are always in HOST byte order.
53 * All functions and statics declared here are implemented in p80211types.c
54 * --------------------------------------------------------------------
57 #ifndef _P80211META_H
58 #define _P80211META_H
60 /*================================================================*/
61 /* Project Includes */
64 /*================================================================*/
65 /* Types */
67 /*----------------------------------------------------------------*/
68 /* The following structure types are used for the metadata */
69 /* representation of category list metadata, group list metadata, */
70 /* and data item metadata for both Mib and Messages. */
72 typedef struct p80211meta {
73 char *name; /* data item name */
74 u32 did; /* partial did */
75 u32 flags; /* set of various flag bits */
76 u32 min; /* min value of a BOUNDEDint */
77 u32 max; /* max value of a BOUNDEDint */
79 u32 maxlen; /* maxlen of a OCTETSTR or DISPLAYSTR */
80 u32 minlen; /* minlen of a OCTETSTR or DISPLAYSTR */
81 p80211enum_t *enumptr; /* ptr to the enum type for ENUMint */
82 p80211_totext_t totextptr; /* ptr to totext conversion function */
83 p80211_fromtext_t fromtextptr; /* ptr to totext conversion function */
84 p80211_valid_t validfunptr; /* ptr to totext conversion function */
85 } p80211meta_t;
87 typedef struct grplistitem {
88 char *name;
89 p80211meta_t *itemlist;
90 } grplistitem_t;
92 typedef struct catlistitem {
93 char *name;
94 grplistitem_t *grplist;
95 } catlistitem_t;
97 #endif /* _P80211META_H */