Staging: Add initial release of brcm80211 - Broadcom 802.11n wireless LAN driver.
[linux-2.6-block.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 #include <typedefs.h>
21
22 /* require default structure packing */
23 #define BWL_DEFAULT_PACKING
24 #include <packed_section_start.h>
25
26 typedef struct sdreg {
27         int func;
28         int offset;
29         int value;
30 } sdreg_t;
31
32 /* Common msglevel constants */
33 #define SDH_ERROR_VAL           0x0001  /* Error */
34 #define SDH_TRACE_VAL           0x0002  /* Trace */
35 #define SDH_INFO_VAL            0x0004  /* Info */
36 #define SDH_DEBUG_VAL           0x0008  /* Debug */
37 #define SDH_DATA_VAL            0x0010  /* Data */
38 #define SDH_CTRL_VAL            0x0020  /* Control Regs */
39 #define SDH_LOG_VAL             0x0040  /* Enable bcmlog */
40 #define SDH_DMA_VAL             0x0080  /* DMA */
41
42 #define NUM_PREV_TRANSACTIONS   16
43
44 #include <packed_section_end.h>
45
46 #endif                          /* _sdiovar_h_ */