OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [linux/] [kernelcapi.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
/*
2
 * $Id: kernelcapi.h,v 1.1 2005-12-20 11:32:24 jcastillo Exp $
3
 *
4
 * Kernel CAPI 2.0 Interface for Linux
5
 *
6
 * (c) Copyright 1997 by Carsten Paeth (calle@calle.in-berlin.de)
7
 *
8
 * $Log: not supported by cvs2svn $
9
 * Revision 1.1.1.1  2001/09/10 07:44:44  simons
10
 * Initial import
11
 *
12
 * Revision 1.1.1.1  2001/07/02 17:58:00  simons
13
 * Initial revision
14
 *
15
 * Revision 1.1  1997/03/04 21:27:33  calle
16
 * First version in isdn4linux
17
 *
18
 * Revision 2.2  1997/02/12 09:31:39  calle
19
 * new version
20
 *
21
 * Revision 1.1  1997/01/31 10:32:20  calle
22
 * Initial revision
23
 *
24
 *
25
 */
26
#ifndef __KERNEL_CAPI_H__
27
#define __KERNEL_CAPI_H__
28
 
29
#define CAPI_MAXAPPL    20      /*
30
                                   * maximum number of applications
31
                                 */
32
#define CAPI_MAXCONTR   4       /*
33
                                   * maximum number of controller
34
                                 */
35
#define CAPI_MAXDATAWINDOW      8
36
 
37
#ifdef __KERNEL__
38
 
39
struct capi_interface {
40
        int (*capi_installed) (void);
41
 
42
         __u16(*capi_register) (capi_register_params * rparam, __u16 * applidp);
43
         __u16(*capi_release) (__u16 applid);
44
         __u16(*capi_put_message) (__u16 applid, struct sk_buff * msg);
45
         __u16(*capi_get_message) (__u16 applid, struct sk_buff ** msgp);
46
         __u16(*capi_set_signal) (__u16 applid,
47
                              void (*signal) (__u16 applid, __u32 param),
48
                                  __u32 param);
49
         __u16(*capi_get_manufacturer) (__u16 contr, __u8 buf[CAPI_MANUFACTURER_LEN]);
50
         __u16(*capi_get_version) (__u16 contr, struct capi_version * verp);
51
         __u16(*capi_get_serial) (__u16 contr, __u8 serial[CAPI_SERIAL_LEN]);
52
         __u16(*capi_get_profile) (__u16 contr, struct capi_profile * profp);
53
 
54
        /*
55
         * to init controllers, data is always in user memory
56
         */
57
        int (*capi_manufacturer) (unsigned int cmd, void *data);
58
 
59
};
60
 
61
#define KCI_CONTRUP     0
62
#define KCI_CONTRDOWN   1
63
 
64
struct capi_interface_user {
65
        char name[20];
66
        void (*callback) (unsigned int cmd, __u16 contr, void *data);
67
        struct capi_interface_user *next;
68
};
69
 
70
struct capi_interface *attach_capi_interface(struct capi_interface_user *);
71
int detach_capi_interface(struct capi_interface_user *);
72
 
73
 
74
#define CAPI_NOERROR                      0x0000
75
 
76
#define CAPI_TOOMANYAPPLS                 0x1001
77
#define CAPI_LOGBLKSIZETOSMALL            0x1002
78
#define CAPI_BUFFEXECEEDS64K              0x1003
79
#define CAPI_MSGBUFSIZETOOSMALL           0x1004
80
#define CAPI_ANZLOGCONNNOTSUPPORTED       0x1005
81
#define CAPI_REGRESERVED                  0x1006
82
#define CAPI_REGBUSY                      0x1007
83
#define CAPI_REGOSRESOURCEERR             0x1008
84
#define CAPI_REGNOTINSTALLED              0x1009
85
#define CAPI_REGCTRLERNOTSUPPORTEXTEQUIP  0x100a
86
#define CAPI_REGCTRLERONLYSUPPORTEXTEQUIP 0x100b
87
 
88
#define CAPI_ILLAPPNR                     0x1101
89
#define CAPI_ILLCMDORSUBCMDORMSGTOSMALL   0x1102
90
#define CAPI_SENDQUEUEFULL                0x1103
91
#define CAPI_RECEIVEQUEUEEMPTY            0x1104
92
#define CAPI_RECEIVEOVERFLOW              0x1105
93
#define CAPI_UNKNOWNNOTPAR                0x1106
94
#define CAPI_MSGBUSY                      0x1107
95
#define CAPI_MSGOSRESOURCEERR             0x1108
96
#define CAPI_MSGNOTINSTALLED              0x1109
97
#define CAPI_MSGCTRLERNOTSUPPORTEXTEQUIP  0x110a
98
#define CAPI_MSGCTRLERONLYSUPPORTEXTEQUIP 0x110b
99
 
100
#endif                          /* __KERNEL__ */
101
 
102
#endif                          /* __KERNEL_CAPI_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.