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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [drivers/] [isdn/] [hisax/] [lmgr.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1626 jcastillo
/* $Id: lmgr.c,v 1.1 2005-12-20 10:17:01 jcastillo Exp $
2
 
3
 * Author       Karsten Keil (keil@temic-ech.spacenet.de)
4
 *
5
 *
6
 *  Layermanagement module
7
 *
8
 * $Log: not supported by cvs2svn $
9
 * Revision 1.1.1.1  2001/09/10 07:44:18  simons
10
 * Initial import
11
 *
12
 * Revision 1.1.1.1  2001/07/02 17:58:32  simons
13
 * Initial revision
14
 *
15
 * Revision 1.1.2.5  1998/11/03 00:07:21  keil
16
 * certification related changes
17
 * fixed logging for smaller stack use
18
 *
19
 * Revision 1.1.2.4  1998/05/27 18:06:15  keil
20
 * HiSax 3.0
21
 *
22
 * Revision 1.1.2.3  1998/03/07 23:15:37  tsbogend
23
 * made HiSax working on Linux/Alpha
24
 *
25
 * Revision 1.1.2.2  1997/11/15 18:54:19  keil
26
 * cosmetics
27
 *
28
 * Revision 1.1.2.1  1997/10/17 22:10:53  keil
29
 * new files on 2.0
30
 *
31
 * Revision 1.1  1997/06/26 11:17:25  keil
32
 * first version
33
 *
34
 *
35
 */
36
 
37
#define __NO_VERSION__
38
#include "hisax.h"
39
 
40
static void
41
error_handling_dchan(struct PStack *st, int Error)
42
{
43
        switch (Error) {
44
                case 'C':
45
                case 'D':
46
                case 'G':
47
                case 'H':
48
                        st->l2.l2tei(st, MDL_ERROR | REQUEST, NULL);
49
                        break;
50
        }
51
}
52
 
53
static void
54
hisax_manager(struct PStack *st, int pr, void *arg)
55
{
56
        long Code;
57
 
58
        switch (pr) {
59
                case (MDL_ERROR | INDICATION):
60
                        Code = (long) arg;
61
                        HiSax_putstatus(st->l1.hardware, "manager: MDL_ERROR",
62
                                "%c %s\n", (char)Code,
63
                                test_bit(FLG_LAPD, &st->l2.flag) ?
64
                                "D-channel" : "B-channel");
65
                        if (test_bit(FLG_LAPD, &st->l2.flag))
66
                                error_handling_dchan(st, Code);
67
                        break;
68
        }
69
}
70
 
71
void
72
setstack_manager(struct PStack *st)
73
{
74
        st->ma.layer = hisax_manager;
75
}

powered by: WebSVN 2.1.0

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