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 static char *events[] = { "ISDN_STAT_STAVAIL",
41 int indicate_status(int card, int event,ulong Channel,char *Data)
46 pr_debug("%s: Indicating event %s on Channel %d\n",
47 sc_adapter[card]->devicename, events[event-256], Channel);
50 pr_debug("%s: Event data: %s\n", sc_adapter[card]->devicename,
54 memcpy(&cmd.parm.length, Data, sizeof(cmd.parm.length));
57 memcpy(&cmd.parm.setup, Data, sizeof(cmd.parm.setup));
60 strcpy(cmd.parm.num, Data);
65 cmd.driver = sc_adapter[card]->driverId;
67 return sc_adapter[card]->card->statcallb(&cmd);