1 /* 2 * Structure used by apps whose drivers access SDIO drivers. 3 * Pulled out separately so dhdu and wlu can both use it. 4 * 5 * Copyright (C) 1999-2013, Broadcom Corporation 6 * 7 * Permission to use, copy, modify, and/or distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above 9 * copyright notice and this permission notice appear in all copies. 10 * 11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 14 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 16 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 17 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18 * 19 * $Id: sdiovar.h 241182 2011-02-17 21:50:03Z $ 20 */ 21 22 #ifndef _sdiovar_h_ 23 #define _sdiovar_h_ 24 25 #include <typedefs.h> 26 27 /* require default structure packing */ 28 #define BWL_DEFAULT_PACKING 29 #include <packed_section_start.h> 30 31 typedef struct sdreg { 32 int func; 33 int offset; 34 int value; 35 } sdreg_t; 36 37 /* Common msglevel constants */ 38 #define SDH_ERROR_VAL 0x0001 /* Error */ 39 #define SDH_TRACE_VAL 0x0002 /* Trace */ 40 #define SDH_INFO_VAL 0x0004 /* Info */ 41 #define SDH_DEBUG_VAL 0x0008 /* Debug */ 42 #define SDH_DATA_VAL 0x0010 /* Data */ 43 #define SDH_CTRL_VAL 0x0020 /* Control Regs */ 44 #define SDH_LOG_VAL 0x0040 /* Enable bcmlog */ 45 #define SDH_DMA_VAL 0x0080 /* DMA */ 46 47 #define NUM_PREV_TRANSACTIONS 16 48 49 50 #include <packed_section_end.h> 51 52 #endif /* _sdiovar_h_ */ 53