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] - Diff between revs 1254 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 1254 Rev 1765
//==========================================================================
//==========================================================================
//
//
//      ecos/init.cxx
//      ecos/init.cxx
//
//
//      Networking package initializer class
//      Networking package initializer class
//
//
//==========================================================================
//==========================================================================
//####ECOSPDCOPYRIGHTBEGIN####
//####ECOSPDCOPYRIGHTBEGIN####
//
//
// Copyright (C) 2000, 2001, 2002 Red Hat, Inc.
// Copyright (C) 2000, 2001, 2002 Red Hat, Inc.
// All Rights Reserved.
// All Rights Reserved.
//
//
// Permission is granted to use, copy, modify and redistribute this
// Permission is granted to use, copy, modify and redistribute this
// file.
// file.
//
//
//####ECOSPDCOPYRIGHTEND####
//####ECOSPDCOPYRIGHTEND####
//==========================================================================
//==========================================================================
//#####DESCRIPTIONBEGIN####
//#####DESCRIPTIONBEGIN####
//
//
// Author(s):    gthomas
// Author(s):    gthomas
// Contributors: gthomas
// Contributors: gthomas
// Date:         2000-01-10
// Date:         2000-01-10
// Purpose:      
// Purpose:      
// Description:  
// Description:  
//              
//              
//
//
//####DESCRIPTIONEND####
//####DESCRIPTIONEND####
//
//
//==========================================================================
//==========================================================================
 
 
 
 
// Network initialization
// Network initialization
 
 
#include <pkgconf/system.h>
#include <pkgconf/system.h>
#include <pkgconf/hal.h>
#include <pkgconf/hal.h>
#include <cyg/infra/cyg_type.h>
#include <cyg/infra/cyg_type.h>
 
 
#define NET_INIT CYGBLD_ATTRIB_INIT_AFTER(CYG_INIT_LIBC)
#define NET_INIT CYGBLD_ATTRIB_INIT_AFTER(CYG_INIT_LIBC)
 
 
// This is a dummy class just so we can execute the network package 
// This is a dummy class just so we can execute the network package 
// initialization at it's proper priority
// initialization at it's proper priority
 
 
externC void cyg_net_init(void);
externC void cyg_net_init(void);
 
 
class net_init_class {
class net_init_class {
public:
public:
    net_init_class(void) {
    net_init_class(void) {
        cyg_net_init();
        cyg_net_init();
    }
    }
};
};
 
 
// And here's an instance of the class just to make the code run
// And here's an instance of the class just to make the code run
static net_init_class _net_init NET_INIT;
static net_init_class _net_init NET_INIT;
 
 
externC void
externC void
cyg_do_net_init(void)
cyg_do_net_init(void)
{
{
}
}
 
 

powered by: WebSVN 2.1.0

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