Merge git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
[pandora-kernel.git] / drivers / staging / brcm80211 / brcmfmac / 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 typedef struct sdreg {
21         int func;
22         int offset;
23         int value;
24 } sdreg_t;
25
26 /* Common msglevel constants */
27 #define SDH_ERROR_VAL           0x0001  /* Error */
28 #define SDH_TRACE_VAL           0x0002  /* Trace */
29 #define SDH_INFO_VAL            0x0004  /* Info */
30 #define SDH_DEBUG_VAL           0x0008  /* Debug */
31 #define SDH_DATA_VAL            0x0010  /* Data */
32 #define SDH_CTRL_VAL            0x0020  /* Control Regs */
33 #define SDH_LOG_VAL             0x0040  /* Enable bcmlog */
34 #define SDH_DMA_VAL             0x0080  /* DMA */
35
36 #define NUM_PREV_TRANSACTIONS   16
37
38 #endif                          /* _sdiovar_h_ */