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/] [isdn_syms.c] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/* $Id: isdn_syms.c,v 1.1.1.1 2001-09-10 07:44:18 simons Exp $
2
 
3
 * Linux ISDN subsystem, exported symbols (linklevel).
4
 *
5
 * This program is free software; you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License as published by
7
 * the Free Software Foundation; either version 2, or (at your option)
8
 * any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
 *
19
 * $Log: not supported by cvs2svn $
20
 * Revision 1.1.1.1  2001/07/02 17:58:31  simons
21
 * Initial revision
22
 *
23
 * Revision 1.3  1997/02/16 01:02:47  fritz
24
 * Added GPL-Header, Id and Log
25
 *
26
 */
27
 
28
#include <linux/module.h>
29
#include <linux/version.h>
30
 
31
#ifndef __GENKSYMS__      /* Don't want genksyms report unneeded structs */
32
#include <linux/isdn.h>
33
#endif
34
#include "isdn_common.h"
35
 
36
#if (LINUX_VERSION_CODE < 0x020111)
37
static int has_exported;
38
 
39
static struct symbol_table isdn_syms = {
40
#include <linux/symtab_begin.h>
41
        X(register_isdn),
42
#include <linux/symtab_end.h>
43
};
44
 
45
void
46
isdn_export_syms(void)
47
{
48
        if (has_exported)
49
                return;
50
        register_symtab(&isdn_syms);
51
        has_exported = 1;
52
}
53
 
54
#else
55
 
56
EXPORT_SYMBOL(register_isdn);
57
 
58
#endif

powered by: WebSVN 2.1.0

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