Path: blob/master/drivers/isdn/hardware/eicon/debug_if.h
15115 views
/*1*2Copyright (c) Eicon Technology Corporation, 2000.3*4This source file is supplied for the use with Eicon5Technology Corporation's range of DIVA Server Adapters.6*7This program is free software; you can redistribute it and/or modify8it under the terms of the GNU General Public License as published by9the Free Software Foundation; either version 2, or (at your option)10any later version.11*12This program is distributed in the hope that it will be useful,13but WITHOUT ANY WARRANTY OF ANY KIND WHATSOEVER INCLUDING ANY14implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.15See the GNU General Public License for more details.16*17You should have received a copy of the GNU General Public License18along with this program; if not, write to the Free Software19Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.20*21*/22#ifndef __DIVA_DEBUG_IF_H__23#define __DIVA_DEBUG_IF_H__24#define MSG_TYPE_DRV_ID 0x000125#define MSG_TYPE_FLAGS 0x000226#define MSG_TYPE_STRING 0x000327#define MSG_TYPE_BINARY 0x000428#define MSG_TYPE_MLOG 0x00052930#define MSG_FRAME_MAX_SIZE 21503132typedef struct _diva_dbg_entry_head {33dword sequence;34dword time_sec;35dword time_usec;36dword facility;37dword dli;38dword drv_id;39dword di_cpu;40dword data_length;41} diva_dbg_entry_head_t;4243int diva_maint_init (byte* base, unsigned long length, int do_init);44void* diva_maint_finit (void);45dword diva_dbg_q_length (void);46diva_dbg_entry_head_t* diva_maint_get_message (word* size,47diva_os_spin_lock_magic_t* old_irql);48void diva_maint_ack_message (int do_release,49diva_os_spin_lock_magic_t* old_irql);50void diva_maint_prtComp (char *format, ...);51void diva_maint_wakeup_read (void);52int diva_get_driver_info (dword id, byte* data, int data_length);53int diva_get_driver_dbg_mask (dword id, byte* data);54int diva_set_driver_dbg_mask (dword id, dword mask);55void diva_mnt_remove_xdi_adapter (const DESCRIPTOR* d);56void diva_mnt_add_xdi_adapter (const DESCRIPTOR* d);57int diva_mnt_shutdown_xdi_adapters (void);5859#define DIVA_MAX_SELECTIVE_FILTER_LENGTH 12760int diva_set_trace_filter (int filter_length, const char* filter);61int diva_get_trace_filter (int max_length, char* filter);626364#define DITRACE_CMD_GET_DRIVER_INFO 165#define DITRACE_READ_DRIVER_DBG_MASK 266#define DITRACE_WRITE_DRIVER_DBG_MASK 367#define DITRACE_READ_TRACE_ENTRY 468#define DITRACE_READ_TRACE_ENTRYS 569#define DITRACE_WRITE_SELECTIVE_TRACE_FILTER 670#define DITRACE_READ_SELECTIVE_TRACE_FILTER 77172/*73Trace lavels for debug via management interface74*/75#define DIVA_MGT_DBG_TRACE 0x00000001 /* All trace messages from the card */76#define DIVA_MGT_DBG_DCHAN 0x00000002 /* All D-channel relater trace messages */77#define DIVA_MGT_DBG_MDM_PROGRESS 0x00000004 /* Modem progress events */78#define DIVA_MGT_DBG_FAX_PROGRESS 0x00000008 /* Fax progress events */79#define DIVA_MGT_DBG_IFC_STATISTICS 0x00000010 /* Interface call statistics */80#define DIVA_MGT_DBG_MDM_STATISTICS 0x00000020 /* Global modem statistics */81#define DIVA_MGT_DBG_FAX_STATISTICS 0x00000040 /* Global call statistics */82#define DIVA_MGT_DBG_LINE_EVENTS 0x00000080 /* Line state events */83#define DIVA_MGT_DBG_IFC_EVENTS 0x00000100 /* Interface/L1/L2 state events */84#define DIVA_MGT_DBG_IFC_BCHANNEL 0x00000200 /* B-Channel trace for all channels */85#define DIVA_MGT_DBG_IFC_AUDIO 0x00000400 /* Audio Tap trace for all channels */8687# endif /* DEBUG_IF___H */8889909192