Changeset d9de76f in rtems


Ignore:
Timestamp:
Aug 21, 1998, 12:55:03 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
a83dd86
Parents:
dd89471
Message:

Update from Eric Norum.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/networking/networkapp.t

    rdd89471 rd9de76f  
    6666The network configuration is specified by declaring
    6767and initializing the @code{rtems_bsdnet_configuration}
    68 structure.  This structure may be declared @code{const} since the
    69 network initialization functions do not write to any of the entries.
     68structure.
    7069
    7170The structure entries are described in the following table.
     
    132131Network devices are specified and configured by declaring and initializing a
    133132@code{struct rtems_bsdnet_ifcontig} structure for each network device.
    134 These structures may be declared @code{const} since the
    135 network initialization functions do not write to any of the entries.
    136133
    137134The structure entries are described in the following table.  An application
     
    145142The full name of the network device.  This name consists of the
    146143driver name and the unit number (e.g. @code{"scc1"}).
     144The @code{bsp.h} include file usually defines RTEMS_BSP_NETWORK_DRIVER_NAME as
     145the name of the primary (or only) network driver.
    147146
    148147@item int (*attach)(struct rtems_bsdnet_ifconfig *conf)
     
    150149initialization function calls this function to configure the driver and
    151150attach it to the network stack.
     151The @code{bsp.h} include file usually defines RTEMS_BSP_NETWORK_DRIVER_ATTACH as
     152the name of the  attach function of the primary (or only) network driver.
    152153
    153154@item struct rtems_bsdnet_ifconfig *next
     
    193194
    194195@end table
     196
     197A complete network configuration specification can be as simple as the one
     198shown in the following example.
     199This configuration uses a single network interface, gets
     200network configuration information
     201from a BOOTP server, and uses the default values for all driver
     202parameters.
     203
     204@example
     205static struct rtems_bsdnet_ifconfig netdriver_config = @{
     206        RTEMS_BSP_NETWORK_DRIVER_NAME,
     207        RTEMS_BSP_NETWORK_DRIVER_ATTACH
     208@};
     209struct rtems_bsdnet_config rtems_bsdnet_config = @{
     210        &netdriver_config,
     211        rtems_bsdnet_do_bootp,
     212@};
     213@end example
    195214
    196215
Note: See TracChangeset for help on using the changeset viewer.