1 /* $Id: event.c,v 1.4.8.1 2001/09/23 22:24:59 kai Exp $
3 * Copyright (C) 1996 SpellCaster Telecommunications Inc.
5 * This software may be used and distributed according to the terms
6 * of the GNU General Public License, incorporated herein by reference.
8 * For more information, please contact gpl-info@spellcast.com or write:
10 * SpellCaster Telecommunications Inc.
11 * 5621 Finch Avenue East, Unit #3
12 * Scarborough, Ontario Canada
15 * +1 (416) 297-6433 Facsimile
24 extern board
*sc_adapter
[];
27 static char *events
[] = { "ISDN_STAT_STAVAIL",
44 int indicate_status(int card
, int event
,ulong Channel
,char *Data
)
48 pr_debug("%s: Indicating event %s on Channel %d\n",
49 sc_adapter
[card
]->devicename
, events
[event
-256], Channel
);
51 pr_debug("%s: Event data: %s\n", sc_adapter
[card
]->devicename
,
55 memcpy(&cmd
.parm
.length
, Data
, sizeof(cmd
.parm
.length
));
58 memcpy(&cmd
.parm
.setup
, Data
, sizeof(cmd
.parm
.setup
));
61 strcpy(cmd
.parm
.num
, Data
);
66 cmd
.driver
= sc_adapter
[card
]->driverId
;
68 return sc_adapter
[card
]->card
->statcallb(&cmd
);