#ifndef _SYS_IPW2100_H
#define _SYS_IPW2100_H
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/types.h>
#include <sys/ddi.h>
#include <sys/sunddi.h>
#define IPW2100_DRV_NAME "ipw"
#define IPW2100_DRV_DESC "Intel Wireless 2100"
#define IPW2100_DBG_INIT (0x00000001)
#define IPW2100_DBG_GLD (0x00000002)
#define IPW2100_DBG_WIFI (0x00000004)
#define IPW2100_DBG_DMA (0x00000008)
#define IPW2100_DBG_CSR (0x00000010)
#define IPW2100_DBG_FW (0x00000020)
#define IPW2100_DBG_RING (0x00000040)
#define IPW2100_DBG_IOCTL (0x00000080)
#define IPW2100_DBG_INT (0x00000100)
#define IPW2100_DBG_TABLE (0x00000200)
#define IPW2100_DBG_HWCAP (0x00001000)
#define IPW2100_DBG_SOFTINT (0x00008000)
#define IPW2100_DBG_STATISTIC (0x00010000)
#define IPW2100_DBG_FATAL (0x00020000)
#define IPW2100_DBG_BRUSSELS (0x00040000)
extern uint32_t ipw2100_debug;
extern void ipw2100_dbg(dev_info_t *dip, int level, const char *fmt, ...);
#ifdef DEBUG
#define IPW2100_DBG(l, x) do { \
_NOTE(CONSTANTCONDITION) \
if ((l) & ipw2100_debug) \
ipw2100_dbg x; \
_NOTE(CONSTANTCONDITION) \
} while (0)
#else
#define IPW2100_DBG(l, x)
#endif
#define IPW2100_WARN(x) ipw2100_dbg x
#define IPW2100_REPORT(x) ipw2100_dbg x
#ifdef __cplusplus
}
#endif
#endif