mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 22:48:23 +00:00
* libmisc/dummy/dummy-networking.c: New.
* libmisc/dummy/dummy.c, libmisc/Makefile.am: Move
trhe networking configuration into a separate file so
configuration varations do not cause conflicts.
* score/inline/rtems/score/object.inl,
score/include/rtems/score/object.h: Remove warnings.
* score/inline/rtems/score/object.inl: Add _Chain_First,
_Chain_Last, _Chain_Mext, and _Chain_Previous.
* sapi/inline/rtems/chain.inl: Add rtems_chain_first,
rtems_chain_last, rtems_chain_mext, and rtems_chain_previous.
* libblock/include/rtems/diskdevs.h: Remove the bdbuf pool id and
block_size_log2. Add media_block_size.
* libblock/src/diskdevs.c: Remove size restrictions on block
size. Add media block size initialisation. Remove comment to clean
up the bdbuf cache.
* libblock/src/blkdev.c: Remove references to
block_size_log2. Allow any block size.
* libblock/include/rtems/bdbuf.h, libblock/src/bdbuf.c: Remove all
references to pools and make the cache handle demand driver
variable buffer size allocation. Added worker threads support the
swapout task.
* sapi/include/confdefs.h: Updated the bdbuf configutation.
59 lines
1.9 KiB
C
59 lines
1.9 KiB
C
/*
|
|
* Dummy configuration file
|
|
*
|
|
* COPYRIGHT (c) 1989-2008.
|
|
* On-Line Applications Research Corporation (OAR).
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rtems.com/license/LICENSE.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include <rtems.h>
|
|
|
|
/* Loopback Network Configuration */
|
|
#if defined(RTEMS_NETWORKING)
|
|
#include <rtems/rtems_bsdnet.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
|
|
extern int rtems_bsdnet_loopattach(struct rtems_bsdnet_ifconfig *, int);
|
|
|
|
static struct rtems_bsdnet_ifconfig loopback_config = {
|
|
"lo0", /* name */
|
|
rtems_bsdnet_loopattach, /* attach function */
|
|
NULL, /* link to next interface */
|
|
"127.0.0.1", /* IP address */
|
|
"255.0.0.0", /* IP net mask */
|
|
0, /* hardware_address */
|
|
0, 0, 0, 0,
|
|
0, 0, 0,
|
|
0
|
|
};
|
|
|
|
struct rtems_bsdnet_config rtems_bsdnet_config = {
|
|
&loopback_config, /* Network interface */
|
|
NULL, /* Use fixed network configuration */
|
|
0, /* Default network task priority */
|
|
0, /* Default mbuf capacity */
|
|
0, /* Default mbuf cluster capacity */
|
|
"testSystem", /* Host name */
|
|
"nowhere.com", /* Domain name */
|
|
"127.0.0.1", /* Gateway */
|
|
"127.0.0.1", /* Log host */
|
|
{"127.0.0.1" }, /* Name server(s) */
|
|
{"127.0.0.1" }, /* NTP server(s) */
|
|
1, /* sb_efficiency */
|
|
0, /* udp_tx_buf_size */
|
|
0, /* udp_rx_buf_size */
|
|
0, /* tcp_tx_buf_size */
|
|
0 /* tcp_rx_buf_size */
|
|
};
|
|
#endif
|