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

Subversion Repositories or1k

[/] [or1k/] [tags/] [MW_0_8_9PRE7/] [mw/] [src/] [rtems/] [net_cfg.h] - Diff between revs 674 and 1765

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

Rev 674 Rev 1765
/***************************************************************************
/***************************************************************************
 *
 *
 * $Header: /home/marcus/revision_ctrl_test/oc_cvs/cvs/or1k/mw/src/rtems/net_cfg.h,v 1.1.1.1 2002-02-15 09:17:40 markom Exp $
 * $Header: /home/marcus/revision_ctrl_test/oc_cvs/cvs/or1k/mw/src/rtems/net_cfg.h,v 1.1.1.1 2002-02-15 09:17:40 markom Exp $
 *
 *
 * MODULE DESCRIPTION: This module specializes the RTEMS Network configuration
 * MODULE DESCRIPTION: This module specializes the RTEMS Network configuration
 *                     for the omniORB examples. It could be used as a starting
 *                     for the omniORB examples. It could be used as a starting
 *                     point of an application using omniORB and RTEMS.
 *                     point of an application using omniORB and RTEMS.
 *
 *
 * This file was based on "networkconfig.h" that comes with the netdemos
 * This file was based on "networkconfig.h" that comes with the netdemos
 * examples that ships with the RTEMS distribution.
 * examples that ships with the RTEMS distribution.
 *
 *
 * NOTE: This file must be modified to match your environment.
 * NOTE: This file must be modified to match your environment.
 *
 *
 * by: Rosimildo da Silva:
 * by: Rosimildo da Silva:
 *     rdasilva@connecttel.com
 *     rdasilva@connecttel.com
 *     http://www.connecttel.com
 *     http://www.connecttel.com
 *
 *
 * MODIFICATION/HISTORY:
 * MODIFICATION/HISTORY:
 *
 *
 * $Log: not supported by cvs2svn $
 * $Log: not supported by cvs2svn $
 * Revision 1.1.1.1  2001/06/21 06:32:42  greg
 * Revision 1.1.1.1  2001/06/21 06:32:42  greg
 * Microwindows pre8 with patches
 * Microwindows pre8 with patches
 *
 *
 * Revision 1.1.1.1  2001/06/05 03:44:03  root
 * Revision 1.1.1.1  2001/06/05 03:44:03  root
 * First import of 5/5/2001 Microwindows to CVS
 * First import of 5/5/2001 Microwindows to CVS
 *
 *
 ****************************************************************************/
 ****************************************************************************/
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
#endif
 
 
/*
/*
#define RTEMS_USE_BOOTP
#define RTEMS_USE_BOOTP
*/
*/
 
 
#include <stdio.h>
#include <stdio.h>
#include <rtems/rtems_bsdnet.h>
#include <rtems/rtems_bsdnet.h>
 
 
/*
/*
 * Define RTEMS_SET_ETHERNET_ADDRESS if you want to specify the
 * Define RTEMS_SET_ETHERNET_ADDRESS if you want to specify the
 * Ethernet address here.  If RTEMS_SET_ETHERNET_ADDRESS is not
 * Ethernet address here.  If RTEMS_SET_ETHERNET_ADDRESS is not
 * defined the driver will choose an address.
 * defined the driver will choose an address.
 */
 */
#define RTEMS_SET_ETHERNET_ADDRESS
#define RTEMS_SET_ETHERNET_ADDRESS
#if (defined (RTEMS_SET_ETHERNET_ADDRESS))
#if (defined (RTEMS_SET_ETHERNET_ADDRESS))
static char ethernet_address[6] = { 0x20, 0x00, 0x27, 0xAF, 0x03, 0x51 };
static char ethernet_address[6] = { 0x20, 0x00, 0x27, 0xAF, 0x03, 0x51 };
#endif
#endif
 
 
#undef  RTEMS_BSP_NETWORK_DRIVER_NAME
#undef  RTEMS_BSP_NETWORK_DRIVER_NAME
#define RTEMS_BSP_NETWORK_DRIVER_NAME  "ep0"
#define RTEMS_BSP_NETWORK_DRIVER_NAME  "ep0"
 
 
extern int rtems_3c509_driver_attach( struct rtems_bsdnet_ifconfig *config );
extern int rtems_3c509_driver_attach( struct rtems_bsdnet_ifconfig *config );
#undef  RTEMS_BSP_NETWORK_DRIVER_ATTACH
#undef  RTEMS_BSP_NETWORK_DRIVER_ATTACH
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_3c509_driver_attach
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_3c509_driver_attach
 
 
/*
/*
 * Default network interface
 * Default network interface
 */
 */
static struct rtems_bsdnet_ifconfig netdriver_config =
static struct rtems_bsdnet_ifconfig netdriver_config =
{
{
   RTEMS_BSP_NETWORK_DRIVER_NAME,      /* name */
   RTEMS_BSP_NETWORK_DRIVER_NAME,      /* name */
        RTEMS_BSP_NETWORK_DRIVER_ATTACH,    /* attach function */
        RTEMS_BSP_NETWORK_DRIVER_ATTACH,    /* attach function */
 
 
        NULL,                           /* link to next interface */
        NULL,                           /* link to next interface */
 
 
#if (defined (RTEMS_USE_BOOTP))
#if (defined (RTEMS_USE_BOOTP))
        NULL,                           /* BOOTP supplies IP address */
        NULL,                           /* BOOTP supplies IP address */
        NULL,                           /* BOOTP supplies IP net mask */
        NULL,                           /* BOOTP supplies IP net mask */
#else
#else
        "192.168.0.11",         /* IP address */
        "192.168.0.11",         /* IP address */
        "255.255.255.0",                /* IP net mask */
        "255.255.255.0",                /* IP net mask */
#endif /* !RTEMS_USE_BOOTP */
#endif /* !RTEMS_USE_BOOTP */
 
 
#if (defined (RTEMS_SET_ETHERNET_ADDRESS))
#if (defined (RTEMS_SET_ETHERNET_ADDRESS))
        ethernet_address,               /* Ethernet hardware address */
        ethernet_address,               /* Ethernet hardware address */
#else
#else
        NULL,           /* Driver supplies hardware address */
        NULL,           /* Driver supplies hardware address */
#endif
#endif
        0                                /* Use default driver parameters */
        0                                /* Use default driver parameters */
};
};
 
 
/*
/*
 * Network configuration
 * Network configuration
 */
 */
struct rtems_bsdnet_config rtems_bsdnet_config = {
struct rtems_bsdnet_config rtems_bsdnet_config = {
        &netdriver_config,
        &netdriver_config,
 
 
#if (defined (RTEMS_USE_BOOTP))
#if (defined (RTEMS_USE_BOOTP))
        rtems_bsdnet_do_bootp,
        rtems_bsdnet_do_bootp,
#else
#else
        NULL,
        NULL,
#endif
#endif
 
 
        0,                       /* Default network task priority */
        0,                       /* Default network task priority */
        0,                       /* Default mbuf capacity */
        0,                       /* Default mbuf capacity */
        0,                       /* Default mbuf cluster capacity */
        0,                       /* Default mbuf cluster capacity */
 
 
#if (!defined (RTEMS_USE_BOOTP))
#if (!defined (RTEMS_USE_BOOTP))
        "lucila",                       /* Host name */
        "lucila",                       /* Host name */
        "rps.com",                      /* Domain name */
        "rps.com",                      /* Domain name */
        "192.168.0.1",  /* Gateway */
        "192.168.0.1",  /* Gateway */
        "192.168.0.1",  /* Log host */
        "192.168.0.1",  /* Log host */
        {"192.168.0.1" },       /* Name server(s) */
        {"192.168.0.1" },       /* Name server(s) */
#endif /* !RTEMS_USE_BOOTP */
#endif /* !RTEMS_USE_BOOTP */
 
 
};
};
 
 
/*
/*
 * For TFTP test application
 * For TFTP test application
 */
 */
#if (!defined (RTEMS_USE_BOOTP))
#if (!defined (RTEMS_USE_BOOTP))
#define RTEMS_TFTP_TEST_HOST_NAME "192.168.0.2"
#define RTEMS_TFTP_TEST_HOST_NAME "192.168.0.2"
#define RTEMS_TFTP_TEST_FILE_NAME "root/boot.bt"
#define RTEMS_TFTP_TEST_FILE_NAME "root/boot.bt"
#endif
#endif
 
 
 
 
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
 
 
/* end of include file */
/* end of include file */
 
 

powered by: WebSVN 2.1.0

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