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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [ecos-2.0/] [packages/] [net/] [tcpip/] [v2_0/] [src/] [ecos/] [init.cxx] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1254 phoenix
//==========================================================================
2
//
3
//      ecos/init.cxx
4
//
5
//      Networking package initializer class
6
//
7
//==========================================================================
8
//####ECOSPDCOPYRIGHTBEGIN####
9
//
10
// Copyright (C) 2000, 2001, 2002 Red Hat, Inc.
11
// All Rights Reserved.
12
//
13
// Permission is granted to use, copy, modify and redistribute this
14
// file.
15
//
16
//####ECOSPDCOPYRIGHTEND####
17
//==========================================================================
18
//#####DESCRIPTIONBEGIN####
19
//
20
// Author(s):    gthomas
21
// Contributors: gthomas
22
// Date:         2000-01-10
23
// Purpose:      
24
// Description:  
25
//              
26
//
27
//####DESCRIPTIONEND####
28
//
29
//==========================================================================
30
 
31
 
32
// Network initialization
33
 
34
#include <pkgconf/system.h>
35
#include <pkgconf/hal.h>
36
#include <cyg/infra/cyg_type.h>
37
 
38
#define NET_INIT CYGBLD_ATTRIB_INIT_AFTER(CYG_INIT_LIBC)
39
 
40
// This is a dummy class just so we can execute the network package 
41
// initialization at it's proper priority
42
 
43
externC void cyg_net_init(void);
44
 
45
class net_init_class {
46
public:
47
    net_init_class(void) {
48
        cyg_net_init();
49
    }
50
};
51
 
52
// And here's an instance of the class just to make the code run
53
static net_init_class _net_init NET_INIT;
54
 
55
externC void
56
cyg_do_net_init(void)
57
{
58
}

powered by: WebSVN 2.1.0

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