Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelv...
[pandora-kernel.git] / drivers / staging / brcm80211 / include / sdiovar.h
1 /*
2  * Copyright (c) 2010 Broadcom Corporation
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
11  * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
13  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
14  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16
17 #ifndef _sdiovar_h_
18 #define _sdiovar_h_
19
20 /* require default structure packing */
21 #define BWL_DEFAULT_PACKING
22 #include <packed_section_start.h>
23
24 typedef struct sdreg {
25         int func;
26         int offset;
27         int value;
28 } sdreg_t;
29
30 /* Common msglevel constants */
31 #define SDH_ERROR_VAL           0x0001  /* Error */
32 #define SDH_TRACE_VAL           0x0002  /* Trace */
33 #define SDH_INFO_VAL            0x0004  /* Info */
34 #define SDH_DEBUG_VAL           0x0008  /* Debug */
35 #define SDH_DATA_VAL            0x0010  /* Data */
36 #define SDH_CTRL_VAL            0x0020  /* Control Regs */
37 #define SDH_LOG_VAL             0x0040  /* Enable bcmlog */
38 #define SDH_DMA_VAL             0x0080  /* DMA */
39
40 #define NUM_PREV_TRANSACTIONS   16
41
42 #include <packed_section_end.h>
43
44 #endif                          /* _sdiovar_h_ */