Changeset 4f6cf1e in rtems-libbsd


Ignore:
Timestamp:
May 10, 2012, 3:03:32 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, c1e05b9ea378b2971e3d7704779112b4bc4296da, freebsd-9.3, 4a77611a223ea883fb548679b516d326a020d447
Children:
7586492
Parents:
06e6d19
git-author:
Sebastian Huber <sebastian.huber@…> (05/10/12 15:03:32)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/10/12 15:04:20)
Message:

Use SYSINIT reference defines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuite/link01/test.c

    r06e6d19 r4f6cf1e  
    99#include <stdio.h>
    1010#include <freebsd/bsd.h>
    11 
    12 /*
    13  * Methods used to make sure the nic drivers
    14  * are pulled into the executable.
    15  */
    16 extern int _bsd_re_pcimodule_sys_init();
    17 extern int _bsd_fxp_pcimodule_sys_init();
    18 extern int _bsd_dc_pcimodule_sys_init();
    19 extern int _bsd_em_pcimodule_sys_init();
    20 extern int _bsd_igb_pcimodule_sys_init();
    21 extern int _bsd_bce_pcimodule_sys_init();
    22 extern int _bsd_lem_pcimodule_sys_init();
    23 extern int _bsd_bfe_pcimodule_sys_init();
    24 extern int _bsd_bge_pcimodule_sys_init();
    2511
    2612rtems_task Init(
     
    3622
    3723  rtems_bsd_initialize_with_interrupt_server();
    38 
    39   printf("Nic Driver Addresses\n");
    40   printf("RealTek %p\n", &_bsd_re_pcimodule_sys_init );
    41   printf("EtherExpress %p\n", &_bsd_fxp_pcimodule_sys_init );
    42   printf("DEC tulip %p\n", &_bsd_dc_pcimodule_sys_init );
    43   printf("Broadcom BCM570XX/BCM571XX %p\n", &_bsd_bce_pcimodule_sys_init );
    44   printf("Broadcom BCM4401 %p\n", &_bsd_bfe_pcimodule_sys_init );
    45 
    46 #if 0
    47   printf("Broadcom BCM570x %p\n", &_bsd_bge_pcimodule_sys_init );
    48   printf("E1000 XXX %p\n", &_bsd_igb_pcimodule_sys_init );
    49   printf("E1000 XXX %p\n", &_bsd_em_pcimodule_sys_init );
    50 #endif
    5124
    5225  printf( "*** END OF LIBFREEBSD INITIALIZATION TEST ***\n" );
     
    6538#define CONFIGURE_INIT
    6639#include <rtems/confdefs.h>
     40
     41#include <freebsd/machine/rtems-bsd-sysinit.h>
     42
     43SYSINIT_NEED_FREEBSD_CORE;
     44SYSINIT_NEED_NET_IF_BFE;
     45SYSINIT_NEED_NET_IF_RE;
     46SYSINIT_NEED_NET_IF_EM;
     47SYSINIT_NEED_NET_IF_IGB;
     48SYSINIT_NEED_NET_IF_LEM;
     49SYSINIT_NEED_NET_IF_BCE;
     50SYSINIT_NEED_NET_IF_BGE;
     51SYSINIT_NEED_NET_IF_FXP;
     52SYSINIT_NEED_NET_IF_DC;
     53
     54const char *const _bsd_nexus_devices [] = {
     55        NULL
     56};
     57
    6758/* end of file */
Note: See TracChangeset for help on using the changeset viewer.