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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [net/] [tcpip/] [current/] [src/] [ecos/] [init.cxx] - Blame information for rev 834

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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