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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [uclinux/] [uClinux-2.0.x/] [drivers/] [isdn/] [hisax/] [cert.c] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/* $Id: cert.c,v 1.1.1.1 2001-09-10 07:44:18 simons Exp $
2
 
3
 * Author       Karsten Keil (keil@isdn4linux.de)
4
 *
5
 *              This file is (c) under GNU PUBLIC LICENSE
6
 *              For changes and modifications please read
7
 *              ../../../Documentation/isdn/HiSax.cert
8
 *
9
 * $Log: not supported by cvs2svn $
10
 * Revision 1.1.1.1  2001/07/02 17:58:32  simons
11
 * Initial revision
12
 *
13
 * Revision 1.2.2.1  1998/11/03 21:46:37  keil
14
 * first version
15
 *
16
 *
17
 */
18
 
19
#include <linux/kernel.h>
20
 
21
int
22
certification_check(int output) {
23
 
24
#ifdef CERTIFICATION
25
#if CERTIFICATION == 0
26
        if (output) {
27
                printk(KERN_INFO "HiSax: Approval certification valid\n");
28
                printk(KERN_INFO "HiSax: Approved with ELSA Quickstep series cards\n");
29
                printk(KERN_INFO "HiSax: Approval registration numbers:\n");
30
                printk(KERN_INFO "HiSax: German D133361J CETECOM ICT Services GmbH\n");
31
                printk(KERN_INFO "HiSax: EU (D133362J) CETECOM ICT Services GmbH\n");
32
        }
33
        return(0);
34
#endif
35
#if CERTIFICATION == 1
36
        if (output) {
37
                printk(KERN_INFO "HiSax: Approval certification failed because of\n");
38
                printk(KERN_INFO "HiSax: unauthorized source code changes\n");
39
        }
40
        return(1);
41
#endif
42
#if CERTIFICATION == 127
43
        if (output) {
44
                printk(KERN_INFO "HiSax: Approval certification not possible\n");
45
                printk(KERN_INFO "HiSax: because \"md5sum\" is not available\n");
46
        }
47
        return(2);
48
#endif
49
#else
50
        if (output) {
51
                printk(KERN_INFO "HiSax: Certification not verified\n");
52
        }
53
        return(3);
54
#endif
55
}

powered by: WebSVN 2.1.0

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