21 #define DBG_MINIMUM (DL_LOG + DL_FTL + DL_ERR)
22 #define DBG_DEFAULT (DBG_MINIMUM + DL_XLOG + DL_REG)
32 static dword notify_handle;
39 static void no_printf(
unsigned char *
x, ...)
53 if ((contr = ((IoAdapter->
serialNo & 0xff000000) >> 24))) {
55 IoAdapter->
serialNo & 0x00ffffff, contr + 1);
70 IoAdapters[card - 1] &&
Requests[card - 1]) {
75 DBG_TRC((
"DIDD register A(%d) channels=%d", card,
78 strlcpy(IoAdapters[card - 1]->Name,
79 IoAdapters[card - 1]->Properties.
Name,
80 sizeof(IoAdapters[card - 1]->
Name));
86 DBG_ERR((
"DIDD register A(%d) failed !", card))
101 DBG_TRC((
"DIDD de-register A(%d)", card))
113 static void start_dbg(
void)
116 DBG_LOG((
"DIVA ISDNXDI BUILD (%s[%s])",
123 static void stop_dbg(
void)
126 memset(&MAdapter, 0,
sizeof(MAdapter));
137 DBG_ERR((
"Notification about IDI_DADAPTER change ! Oops."));
145 memcpy(&MAdapter, adapter,
sizeof(MAdapter));
156 static int __init connect_didd(
void)
168 memcpy(&DAdapter, &DIDD_Table[x],
sizeof(DAdapter));
172 req.
didd_notify.info.callback = (
void *)didd_callback;
181 memcpy(&MAdapter, &DIDD_Table[x],
sizeof(DAdapter));
197 static void disconnect_didd(
void)
218 if (!connect_didd()) {
219 DBG_ERR((
"divasfunc: failed to connect to DIDD."))
223 version = diva_xdi_common_code_build;