/drivers/net/wireless/tiwlan1251/pform/common/inc/osDebug.h
C Header | 142 lines | 84 code | 24 blank | 34 comment | 1 complexity | f69ba477bec35d6542c6675024534b37 MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.0
- /****************************************************************************
- **+-----------------------------------------------------------------------+**
- **| |**
- **| Copyright(c) 1998 - 2008 Texas Instruments. All rights reserved. |**
- **| All rights reserved. |**
- **| |**
- **| Redistribution and use in source and binary forms, with or without |**
- **| modification, are permitted provided that the following conditions |**
- **| are met: |**
- **| |**
- **| * Redistributions of source code must retain the above copyright |**
- **| notice, this list of conditions and the following disclaimer. |**
- **| * Redistributions in binary form must reproduce the above copyright |**
- **| notice, this list of conditions and the following disclaimer in |**
- **| the documentation and/or other materials provided with the |**
- **| distribution. |**
- **| * Neither the name Texas Instruments nor the names of its |**
- **| contributors may be used to endorse or promote products derived |**
- **| from this software without specific prior written permission. |**
- **| |**
- **| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |**
- **| "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |**
- **| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |**
- **| A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |**
- **| OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |**
- **| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |**
- **| LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |**
- **| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |**
- **| THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |**
- **| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |**
- **| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |**
- **| |**
- **+-----------------------------------------------------------------------+**
- ****************************************************************************/
- #ifndef __OSDEBUG_H_
- #define __OSDEBUG_H_
- #ifdef TI_DBG
- #ifdef TIWLAN_MSM7000
- #define debugFunction(a,b,c)
- #endif
- #define IF_TIDEBUG(f) if (!((TiDebugFlag & (f))^(f)))
- extern unsigned long TiDebugFlag;
- #define PRINT(F, A) IF_TIDEBUG( F ) { DbgPrint(A); }
- #define PRINTF(F, A) IF_TIDEBUG( F ) { DbgPrint A; }
- #define DBG_INIT 0x0001
- #define DBG_REGISTRY 0x0002
- #define DBG_NDIS_CALLS 0x0004
- #define DBG_NDIS_OIDS 0x0008
- #define DBG_PCI_RES 0x0010
- #define DBG_INTERRUPT 0x0020
- #define DBG_IOCTL 0x0040
- #define DBG_RECV 0x0080
- #define DBG_SEND 0x0100
- #define DBG_SEV_INFO 0x0001
- #define DBG_SEV_LOUD 0x0002
- #define DBG_SEV_VERY_LOUD 0x0004
- #define DBG_SEV_WARNING 0x0008
- #define DBG_SEV_ERROR 0x0010
- #define DBG_SEV_FATAL_ERROR 0x0020
- #define DBG_INIT_INFO ((DBG_INIT << 16) | DBG_SEV_INFO)
- #define DBG_INIT_LOUD ((DBG_INIT << 16) | DBG_SEV_LOUD)
- #define DBG_INIT_VERY_LOUD ((DBG_INIT << 16) | DBG_SEV_VERY_LOUD)
- #define DBG_INIT_WARNING ((DBG_INIT << 16) | DBG_SEV_WARNING)
- #define DBG_INIT_ERROR ((DBG_INIT << 16) | DBG_SEV_ERROR)
- #define DBG_INIT_FATAL_ERROR ((DBG_INIT << 16) | DBG_SEV_FATAL_ERROR)
- #define DBG_REGISTRY_INFO ((DBG_REGISTRY << 16) | DBG_SEV_INFO)
- #define DBG_REGISTRY_LOUD ((DBG_REGISTRY << 16) | DBG_SEV_LOUD)
- #define DBG_REGISTRY_VERY_LOUD ((DBG_REGISTRY << 16) | DBG_SEV_VERY_LOUD)
- #define DBG_REGISTRY_WARNING ((DBG_REGISTRY << 16) | DBG_SEV_WARNING)
- #define DBG_REGISTRY_ERROR ((DBG_REGISTRY << 16) | DBG_SEV_ERROR)
- #define DBG_REGISTRY_FATAL_ERROR ((DBG_REGISTRY << 16) | DBG_SEV_FATAL_ERROR)
- #define DBG_NDIS_CALLS_INFO ((DBG_NDIS_CALLS << 16) | DBG_SEV_INFO)
- #define DBG_NDIS_CALLS_LOUD ((DBG_NDIS_CALLS << 16) | DBG_SEV_LOUD)
- #define DBG_NDIS_CALLS_VERY_LOUD ((DBG_NDIS_CALLS << 16) | DBG_SEV_VERY_LOUD)
- #define DBG_NDIS_CALLS_WARNING ((DBG_NDIS_CALLS << 16) | DBG_SEV_WARNING)
- #define DBG_NDIS_CALLS_ERROR ((DBG_NDIS_CALLS << 16) | DBG_SEV_ERROR)
- #define DBG_NDIS_CALLS_FATAL_ERROR ((DBG_NDIS_CALLS << 16) | DBG_SEV_FATAL_ERROR)
- #define DBG_NDIS_OIDS_INFO ((DBG_NDIS_OIDS << 16) | DBG_SEV_INFO)
- #define DBG_NDIS_OIDS_LOUD ((DBG_NDIS_OIDS << 16) | DBG_SEV_LOUD)
- #define DBG_NDIS_OIDS_VERY_LOUD ((DBG_NDIS_OIDS << 16) | DBG_SEV_VERY_LOUD)
- #define DBG_NDIS_OIDS_WARNING ((DBG_NDIS_OIDS << 16) | DBG_SEV_WARNING)
- #define DBG_NDIS_OIDS_ERROR ((DBG_NDIS_OIDS << 16) | DBG_SEV_ERROR)
- #define DBG_NDIS_OIDS_FATAL_ERROR ((DBG_NDIS_OIDS << 16) | DBG_SEV_FATAL_ERROR)
- #define DBG_PCI_RES_INFO ((DBG_PCI_RES << 16) | DBG_SEV_INFO)
- #define DBG_PCI_RES_LOUD ((DBG_PCI_RES << 16) | DBG_SEV_LOUD)
- #define DBG_PCI_RES_VERY_LOUD ((DBG_PCI_RES << 16) | DBG_SEV_VERY_LOUD)
- #define DBG_PCI_RES_WARNING ((DBG_PCI_RES << 16) | DBG_SEV_WARNING)
- #define DBG_PCI_RES_ERROR ((DBG_PCI_RES << 16) | DBG_SEV_ERROR)
- #define DBG_PCI_RES_FATAL_ERROR ((DBG_PCI_RES << 16) | DBG_SEV_FATAL_ERROR)
- #define DBG_INTERRUPT_INFO ((DBG_INTERRUPT << 16) | DBG_SEV_INFO)
- #define DBG_INTERRUPT_LOUD ((DBG_INTERRUPT << 16) | DBG_SEV_LOUD)
- #define DBG_INTERRUPT_VERY_LOUD ((DBG_INTERRUPT << 16) | DBG_SEV_VERY_LOUD)
- #define DBG_INTERRUPT_WARNING ((DBG_INTERRUPT << 16) | DBG_SEV_WARNING)
- #define DBG_INTERRUPT_ERROR ((DBG_INTERRUPT << 16) | DBG_SEV_ERROR)
- #define DBG_INTERRUPT_FATAL_ERROR ((DBG_INTERRUPT << 16) | DBG_SEV_FATAL_ERROR)
- #define DBG_IOCTL_INFO ((DBG_IOCTL << 16) | DBG_SEV_INFO)
- #define DBG_IOCTL_LOUD ((DBG_IOCTL << 16) | DBG_SEV_LOUD)
- #define DBG_IOCTL_VERY_LOUD ((DBG_IOCTL << 16) | DBG_SEV_VERY_LOUD)
- #define DBG_IOCTL_WARNING ((DBG_IOCTL << 16) | DBG_SEV_WARNING)
- #define DBG_IOCTL_ERROR ((DBG_IOCTL << 16) | DBG_SEV_ERROR)
- #define DBG_IOCTL_FATAL_ERROR ((DBG_IOCTL << 16) | DBG_SEV_FATAL_ERROR)
- #define DBG_RECV_INFO ((DBG_RECV << 16) | DBG_SEV_INFO)
- #define DBG_RECV_LOUD ((DBG_RECV << 16) | DBG_SEV_LOUD)
- #define DBG_RECV_VERY_LOUD ((DBG_RECV << 16) | DBG_SEV_VERY_LOUD)
- #define DBG_RECV_WARNING ((DBG_RECV << 16) | DBG_SEV_WARNING)
- #define DBG_RECV_ERROR ((DBG_RECV << 16) | DBG_SEV_ERROR)
- #define DBG_RECV_FATAL_ERROR ((DBG_RECV << 16) | DBG_SEV_FATAL_ERROR)
- #define DBG_SEND_INFO ((DBG_SEND << 16) | DBG_SEV_INFO)
- #define DBG_SEND_LOUD ((DBG_SEND << 16) | DBG_SEV_LOUD)
- #define DBG_SEND_VERY_LOUD ((DBG_SEND << 16) | DBG_SEV_VERY_LOUD)
- #define DBG_SEND_WARNING ((DBG_SEND << 16) | DBG_SEV_WARNING)
- #define DBG_SEND_ERROR ((DBG_SEND << 16) | DBG_SEV_ERROR)
- #define DBG_SEND_FATAL_ERROR ((DBG_SEND << 16) | DBG_SEV_FATAL_ERROR)
- #else
- #define PRINT(F, A)
- #define PRINTF(F, A)
- #endif
- #endif /* __OSDEBUG_H_*/