source: rtems/bsps/powerpc/beatnik/net/porting/if_xxx.modini.c @ a2aec0b7

5
Last change on this file since a2aec0b7 was 031df391, checked in by Sebastian Huber <sebastian.huber@…>, on 04/23/18 at 07:53:31

bsps: Move legacy network drivers to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 678 bytes
Line 
1#include <rtems.h>
2#include <porting/rtemscompat.h>
3
4/* CEXP module initialization/finalization */
5
6/* Copyright: Till Straumann <strauman@slac.stanford.edu>, 2005;
7 * License:   see LICENSE file.
8 */
9
10void
11_cexpModuleInitialize(void *unused)
12{
13extern void NET_EMBEMB(rtems_,NETDRIVER_PREFIX,_bringup)(char *);
14        METHODSPTR = &METHODS;
15/*
16#ifdef DEBUG
17        NET_EMBEMB(rtems_,NETDRIVER_PREFIX,_bringup)("192.168.2.13/255.255.255.0");
18#endif
19*/
20}
21
22int
23_cexpModuleFinalize(void *unused)
24{
25#ifdef DEBUG
26extern int NET_EMBEMB(rtems_,NETDRIVER_PREFIX,_bringdown)();
27        if (NET_EMBEMB(rtems_,NETDRIVER_PREFIX,_bringdown)())
28                return -1;
29        METHODSPTR = 0;
30        return 0;
31#else
32        return -1;
33#endif
34}
Note: See TracBrowser for help on using the repository browser.