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)
49 pr_debug("%s: Indicating event %s on Channel %d\n",
50 sc_adapter[card]->devicename, events[event-256], Channel);
53 pr_debug("%s: Event data: %s\n", sc_adapter[card]->devicename,
57 memcpy(&cmd.parm.length, Data, sizeof(cmd.parm.length));
60 memcpy(&cmd.parm.setup, Data, sizeof(cmd.parm.setup));
63 strcpy(cmd.parm.num, Data);
68 cmd.driver = sc_adapter[card]->driverId;
70 return sc_adapter[card]->card->statcallb(&cmd);