original comment: +Wilson03172004,marked due to this pci host does not support MWI
[linux-2.4.git] / drivers / usb / auerserv.h
1 /*****************************************************************************/
2 /*
3  *      auerserv.h  --  Auerswald PBX/System Telephone service request structure.
4  *
5  *      Copyright (C) 2002  Wolfgang Mües (wolfgang@iksw-muees.de)
6  *
7  *      This program is free software; you can redistribute it and/or modify
8  *      it under the terms of the GNU General Public License as published by
9  *      the Free Software Foundation; either version 2 of the License, or
10  *      (at your option) any later version.
11  *
12  *      This program is distributed in the hope that it will be useful,
13  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *      GNU General Public License for more details.
16  *
17  *      You should have received a copy of the GNU General Public License
18  *      along with this program; if not, write to the Free Software
19  *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20  */
21  /*****************************************************************************/
22
23 /* The auerswald ISDN devices have a logical channel concept. Many channels are
24  * realized via one control endpoint or INT endpoint. At the receiver side, these
25  * messages must be dispatched. Some data may be for an application which is
26  * connected through the char interface, other data may be D-channel information
27  * routed to ISDN4LINUX. The auerscon struct is used to dispatch the data.
28  */
29
30 #ifndef AUERSERV_H
31 #define AUERSERV_H
32
33 #include "auerbuf.h"
34
35 /* service context */
36 struct auerscon;
37 typedef void (*auer_dispatch_t) (struct auerscon *, struct auerbuf *);
38 typedef void (*auer_disconn_t) (struct auerscon *);
39
40 struct auerscon {
41         unsigned int id;                /* protocol service id AUH_xxxx */
42         auer_dispatch_t dispatch;       /* dispatch read buffer */
43         auer_disconn_t disconnect;      /* disconnect from device, wake up all readers */
44 };
45
46
47 #endif  /* AUERSERV_H */