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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [net/] [bsd_tcpip/] [v2_0/] [cdl/] [freebsd_net.cdl] - Diff between revs 27 and 174

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

Rev 27 Rev 174
# ====================================================================
# ====================================================================
#
#
#      freebsd_net.cdl
#      freebsd_net.cdl
#
#
#      Networking configuration data
#      Networking configuration data
#
#
# ====================================================================
# ====================================================================
#####ECOSPDCOPYRIGHTBEGIN####
#####ECOSPDCOPYRIGHTBEGIN####
#
#
# Copyright (C) 2000, 2001, 2002 Red Hat, Inc.
# Copyright (C) 2000, 2001, 2002 Red Hat, Inc.
# All Rights Reserved.
# All Rights Reserved.
#
#
# Permission is granted to use, copy, modify and redistribute this
# Permission is granted to use, copy, modify and redistribute this
# file.
# file.
#
#
#####ECOSPDCOPYRIGHTEND####
#####ECOSPDCOPYRIGHTEND####
# ====================================================================
# ====================================================================
######DESCRIPTIONBEGIN####
######DESCRIPTIONBEGIN####
#
#
# Author(s):      gthomas
# Author(s):      gthomas
# Original data:  gthomas
# Original data:  gthomas
# Contributors:
# Contributors:
# Date:           1999-11-29
# Date:           1999-11-29
#
#
#####DESCRIPTIONEND####
#####DESCRIPTIONEND####
#
#
# ====================================================================
# ====================================================================
cdl_package CYGPKG_NET_FREEBSD_STACK {
cdl_package CYGPKG_NET_FREEBSD_STACK {
    display       "FreeBSD networking stack"
    display       "FreeBSD networking stack"
    parent        CYGPKG_NET
    parent        CYGPKG_NET
    doc           ref/tcpip-freebsd.html
    doc           ref/tcpip-freebsd.html
    include_dir   .
    include_dir   .
    requires      CYGPKG_IO
    requires      CYGPKG_IO
    requires      CYGPKG_ISOINFRA
    requires      CYGPKG_ISOINFRA
    requires      CYGINT_ISO_C_TIME_TYPES
    requires      CYGINT_ISO_C_TIME_TYPES
    requires      CYGINT_ISO_STRERROR
    requires      CYGINT_ISO_STRERROR
    requires      CYGINT_ISO_ERRNO
    requires      CYGINT_ISO_ERRNO
    requires      CYGINT_ISO_ERRNO_CODES
    requires      CYGINT_ISO_ERRNO_CODES
    requires      CYGINT_ISO_MALLOC
    requires      CYGINT_ISO_MALLOC
    requires      CYGINT_ISO_STRING_BSD_FUNCS
    requires      CYGINT_ISO_STRING_BSD_FUNCS
    requires      CYGPKG_IO_FILEIO
    requires      CYGPKG_IO_FILEIO
    description   "Basic networking support, including TCP/IP."
    description   "Basic networking support, including TCP/IP."
    implements    CYGPKG_NET_STACK
    implements    CYGPKG_NET_STACK
    implements    CYGPKG_NET_STACK_INET
    implements    CYGPKG_NET_STACK_INET
    implements    CYGPKG_NET_STACK_INET6
    implements    CYGPKG_NET_STACK_INET6
    # Note: separating the stack implementation from the common support leads
    # Note: separating the stack implementation from the common support leads
    # to some rather incestious config file relationships.
    # to some rather incestious config file relationships.
    define_proc {
    define_proc {
        puts $::cdl_system_header "/***** Networking stack proc output start *****/"
        puts $::cdl_system_header "/***** Networking stack proc output start *****/"
        puts $::cdl_header "#include "
        puts $::cdl_header "#include "
        puts $::cdl_system_header "#define CYGDAT_NET_STACK_CFG "
        puts $::cdl_system_header "#define CYGDAT_NET_STACK_CFG "
        puts $::cdl_system_header "/***** Networking stack proc output end *****/"
        puts $::cdl_system_header "/***** Networking stack proc output end *****/"
    }
    }
    # Export our types to 
    # Export our types to 
    implements    CYGINT_ISO_BSDTYPES
    implements    CYGINT_ISO_BSDTYPES
    requires      { CYGBLD_ISO_BSDTYPES_HEADER == "" }
    requires      { CYGBLD_ISO_BSDTYPES_HEADER == "" }
    # These files are unique to eCos
    # These files are unique to eCos
    compile ecos/support.c \
    compile ecos/support.c \
        ecos/synch.c \
        ecos/synch.c \
        ecos/timeout.c \
        ecos/timeout.c \
        ecos/init.cxx
        ecos/init.cxx
    compile -library=libextras.a sys/kern/sockio.c
    compile -library=libextras.a sys/kern/sockio.c
    # These files were derived from FreeBSD and carry their copyright
    # These files were derived from FreeBSD and carry their copyright
    compile sys/net/if.c \
    compile sys/net/if.c \
        sys/net/rtsock.c \
        sys/net/rtsock.c \
        sys/net/raw_cb.c \
        sys/net/raw_cb.c \
        sys/net/raw_usrreq.c \
        sys/net/raw_usrreq.c \
        sys/net/route.c \
        sys/net/route.c \
        sys/net/radix.c \
        sys/net/radix.c \
        sys/net/if_ethersubr.c \
        sys/net/if_ethersubr.c \
        sys/net/if_loop.c \
        sys/net/if_loop.c \
        sys/netinet/igmp.c \
        sys/netinet/igmp.c \
        sys/netinet/raw_ip.c \
        sys/netinet/raw_ip.c \
        sys/netinet/in.c  \
        sys/netinet/in.c  \
        sys/netinet/in_cksum.c \
        sys/netinet/in_cksum.c \
        sys/netinet/in_pcb.c \
        sys/netinet/in_pcb.c \
        sys/netinet/in_proto.c \
        sys/netinet/in_proto.c \
        sys/netinet/in_rmx.c \
        sys/netinet/in_rmx.c \
        sys/netinet/ip_encap.c \
        sys/netinet/ip_encap.c \
        sys/netinet/ip_id.c \
        sys/netinet/ip_id.c \
        sys/netinet/ip_icmp.c \
        sys/netinet/ip_icmp.c \
        sys/netinet/ip_flow.c \
        sys/netinet/ip_flow.c \
        sys/netinet/ip_input.c \
        sys/netinet/ip_input.c \
        sys/netinet/ip_output.c \
        sys/netinet/ip_output.c \
        sys/netinet/ip_mroute.c \
        sys/netinet/ip_mroute.c \
        sys/netinet/if_ether.c \
        sys/netinet/if_ether.c \
        sys/netinet/udp_usrreq.c \
        sys/netinet/udp_usrreq.c \
        sys/netinet/tcp_input.c \
        sys/netinet/tcp_input.c \
        sys/netinet/tcp_output.c \
        sys/netinet/tcp_output.c \
        sys/netinet/tcp_debug.c \
        sys/netinet/tcp_debug.c \
        sys/netinet/tcp_usrreq.c \
        sys/netinet/tcp_usrreq.c \
        sys/netinet/tcp_timer.c \
        sys/netinet/tcp_timer.c \
        sys/netinet/tcp_subr.c \
        sys/netinet/tcp_subr.c \
        sys/kern/md5c.c \
        sys/kern/md5c.c \
        sys/kern/uipc_domain.c \
        sys/kern/uipc_domain.c \
        sys/kern/uipc_socket.c \
        sys/kern/uipc_socket.c \
        sys/kern/uipc_socket2.c \
        sys/kern/uipc_socket2.c \
        sys/kern/uipc_mbuf.c \
        sys/kern/uipc_mbuf.c \
        sys/kern/uipc_mbuf2.c \
        sys/kern/uipc_mbuf2.c \
        sys/kern/uipc_accf.c \
        sys/kern/uipc_accf.c \
        sys/kern/kern_subr.c
        sys/kern/kern_subr.c
    cdl_component CYGPKG_NET_FREEBSD_INET {
    cdl_component CYGPKG_NET_FREEBSD_INET {
        display       "INET support"
        display       "INET support"
        active_if     CYGPKG_NET_INET
        active_if     CYGPKG_NET_INET
        flavor        bool
        flavor        bool
        no_define
        no_define
        default_value 1
        default_value 1
        description   "
        description   "
            This option enables support for INET (IPv4) network processing."
            This option enables support for INET (IPv4) network processing."
        cdl_option CYGPKG_NET_FREEBSD_INET6 {
        cdl_option CYGPKG_NET_FREEBSD_INET6 {
            display       "IPv6 support"
            display       "IPv6 support"
            active_if     CYGPKG_NET_INET6
            active_if     CYGPKG_NET_INET6
            flavor        bool
            flavor        bool
            default_value 1
            default_value 1
            description   "
            description   "
                This option enables support for new IPv6."
                This option enables support for new IPv6."
            # These files were derived from FreeBSD and carry their copyright
            # These files were derived from FreeBSD and carry their copyright
            compile \
            compile \
              sys/netinet6/dest6.c \
              sys/netinet6/dest6.c \
              sys/netinet6/frag6.c \
              sys/netinet6/frag6.c \
              sys/netinet6/icmp6.c \
              sys/netinet6/icmp6.c \
              sys/netinet6/in6.c \
              sys/netinet6/in6.c \
              sys/netinet6/in6_cksum.c \
              sys/netinet6/in6_cksum.c \
              sys/netinet6/in6_ifattach.c \
              sys/netinet6/in6_ifattach.c \
              sys/netinet6/in6_pcb.c \
              sys/netinet6/in6_pcb.c \
              sys/netinet6/in6_proto.c \
              sys/netinet6/in6_proto.c \
              sys/netinet6/in6_rmx.c \
              sys/netinet6/in6_rmx.c \
              sys/netinet6/in6_src.c \
              sys/netinet6/in6_src.c \
              sys/netinet6/ip6_forward.c \
              sys/netinet6/ip6_forward.c \
              sys/netinet6/ip6_input.c \
              sys/netinet6/ip6_input.c \
              sys/netinet6/ip6_mroute.c \
              sys/netinet6/ip6_mroute.c \
              sys/netinet6/ip6_output.c \
              sys/netinet6/ip6_output.c \
              sys/netinet6/mld6.c \
              sys/netinet6/mld6.c \
              sys/netinet6/nd6.c \
              sys/netinet6/nd6.c \
              sys/netinet6/nd6_nbr.c \
              sys/netinet6/nd6_nbr.c \
              sys/netinet6/nd6_rtr.c \
              sys/netinet6/nd6_rtr.c \
              sys/netinet6/raw_ip6.c \
              sys/netinet6/raw_ip6.c \
              sys/netinet6/route6.c \
              sys/netinet6/route6.c \
              sys/netinet6/scope6.c \
              sys/netinet6/scope6.c \
              sys/netinet6/udp6_output.c \
              sys/netinet6/udp6_output.c \
              sys/netinet6/udp6_usrreq.c \
              sys/netinet6/udp6_usrreq.c \
## Only if firewall enabled
## Only if firewall enabled
##              sys/netinet6/ip6_fw.c \
##              sys/netinet6/ip6_fw.c \
##
##
        }
        }
    }
    }
    cdl_option CYGPKG_NET_NGIF {
    cdl_option CYGPKG_NET_NGIF {
        display "Number of GIF things"
        display "Number of GIF things"
        flavor  data
        flavor  data
        default_value 0
        default_value 0
        description   "
        description   "
            This option controls the number of active GIF things."
            This option controls the number of active GIF things."
        define NGIF
        define NGIF
    }
    }
    cdl_option CYGPKG_NET_NLOOP {
    cdl_option CYGPKG_NET_NLOOP {
        display "Number of loopback interfaces"
        display "Number of loopback interfaces"
        flavor  data
        flavor  data
        default_value 1
        default_value 1
        description   "
        description   "
            This option controls the number of loopback, i.e. local, interfaces.
            This option controls the number of loopback, i.e. local, interfaces.
            There is seldom need for this value to be anything other than one."
            There is seldom need for this value to be anything other than one."
        define NLOOP
        define NLOOP
    }
    }
    cdl_option CYGPKG_NET_FREEBSD_LOGGING {
    cdl_option CYGPKG_NET_FREEBSD_LOGGING {
        display       "Error and warning log control"
        display       "Error and warning log control"
        flavor        booldata
        flavor        booldata
        default_value 0xC08F
        default_value 0xC08F
        description   "
        description   "
            This option controls the type and amount of information
            This option controls the type and amount of information
            printed by the networking code.  Different logging
            printed by the networking code.  Different logging
            facilities may be enabled by bitwise or-ing:
            facilities may be enabled by bitwise or-ing:
              LOG_ERR     0x0001 - error conditions
              LOG_ERR     0x0001 - error conditions
              LOG_WARNING 0x0002 - interesting, but not errors
              LOG_WARNING 0x0002 - interesting, but not errors
              LOG_NOTICE  0x0004 - things to look out for
              LOG_NOTICE  0x0004 - things to look out for
              LOG_INFO    0x0008 - generic comments
              LOG_INFO    0x0008 - generic comments
              LOG_DEBUG   0x0010 - for finding obscure problems
              LOG_DEBUG   0x0010 - for finding obscure problems
              LOG_MDEBUG  0x0020 - additional information about memory allocations
              LOG_MDEBUG  0x0020 - additional information about memory allocations
              LOG_IOCTL   0x0040 - information about ioctl calls
              LOG_IOCTL   0x0040 - information about ioctl calls
              LOG_INIT    0x0080 - information as system initializes
              LOG_INIT    0x0080 - information as system initializes
              LOG_ADDR    0x0100 - information about IPv6 addresses
              LOG_ADDR    0x0100 - information about IPv6 addresses
              LOG_FAIL    0x0200 - why packets (IPv6) are ignored, etc.
              LOG_FAIL    0x0200 - why packets (IPv6) are ignored, etc.
              LOG_EMERG   0x4000 - emergency conditions
              LOG_EMERG   0x4000 - emergency conditions
              LOG_CRIT    0x8000 - critical error
              LOG_CRIT    0x8000 - critical error
            "
            "
    }
    }
    cdl_option CYGPKG_NET_MEM_USAGE {
    cdl_option CYGPKG_NET_MEM_USAGE {
        display "Memory designated for networking buffers."
        display "Memory designated for networking buffers."
        flavor  data
        flavor  data
        default_value 256*1024
        default_value 256*1024
        description   "
        description   "
            This option controls the amount of memory pre-allocated
            This option controls the amount of memory pre-allocated
        for buffers used by the networking code."
        for buffers used by the networking code."
    }
    }
    cdl_option CYGPKG_NET_MAXSOCKETS {
    cdl_option CYGPKG_NET_MAXSOCKETS {
        display "Max number of open sockets."
        display "Max number of open sockets."
        flavor  data
        flavor  data
        default_value CYGNUM_FILEIO_NFILE
        default_value CYGNUM_FILEIO_NFILE
        description   "
        description   "
            This option controls the amount of memory pre-allocated
            This option controls the amount of memory pre-allocated
        for socket buffers used by the networking code."
        for socket buffers used by the networking code."
    }
    }
    cdl_option CYGPKG_NET_NUM_WAKEUP_EVENTS {
    cdl_option CYGPKG_NET_NUM_WAKEUP_EVENTS {
        display "Number of supported pending network events"
        display "Number of supported pending network events"
        flavor  data
        flavor  data
        default_value 8
        default_value 8
        description   "
        description   "
            This option controls the number of pending network events
            This option controls the number of pending network events
        used by the networking code."
        used by the networking code."
    }
    }
    cdl_option CYGPKG_NET_THREAD_PRIORITY {
    cdl_option CYGPKG_NET_THREAD_PRIORITY {
        display "Priority level for backgound network processing."
        display "Priority level for backgound network processing."
        flavor  data
        flavor  data
        default_value 7
        default_value 7
        description   "
        description   "
            This option allows the thread priority level used by the
            This option allows the thread priority level used by the
        networking stack to be adjusted by the user.  It should be set
        networking stack to be adjusted by the user.  It should be set
        high enough that sufficient CPU resources are available to
        high enough that sufficient CPU resources are available to
        process network data, but may be adjusted so that application
        process network data, but may be adjusted so that application
        threads can have precedence over network processing."
        threads can have precedence over network processing."
    }
    }
    cdl_option CYGPKG_NET_FAST_THREAD_PRIORITY {
    cdl_option CYGPKG_NET_FAST_THREAD_PRIORITY {
        display "Priority level for fast network processing."
        display "Priority level for fast network processing."
        flavor  data
        flavor  data
        default_value CYGPKG_NET_THREAD_PRIORITY - 1
        default_value CYGPKG_NET_THREAD_PRIORITY - 1
        description   "
        description   "
            This option sets the thread priority level used by the fast
            This option sets the thread priority level used by the fast
        network thread.  The fast network thread runs often but briefly, to
        network thread.  The fast network thread runs often but briefly, to
        service network device interrupts and network timeout events.  This
        service network device interrupts and network timeout events.  This
        thread should have higher priority than the background network
        thread should have higher priority than the background network
        thread.  It is reasonable to set this thread's priority higher than
        thread.  It is reasonable to set this thread's priority higher than
        application threads for best network throughput, or to set it lower
        application threads for best network throughput, or to set it lower
        than application threads for best latency for those application
        than application threads for best latency for those application
        threads themselves, potentially at a cost to network throughput."
        threads themselves, potentially at a cost to network throughput."
    }
    }
    cdl_component CYGPKG_NET_FAST_THREAD_TICKLE_DEVS {
    cdl_component CYGPKG_NET_FAST_THREAD_TICKLE_DEVS {
        display "Fast network processing thread 'tickles' drivers"
        display "Fast network processing thread 'tickles' drivers"
        default_value 1
        default_value 1
        description "
        description "
            If this is enabled, the fast network thread will tickle the
            If this is enabled, the fast network thread will tickle the
            device(s) periodically, to unblock them when the hardware has
            device(s) periodically, to unblock them when the hardware has
            become wedged due to a lost interrupt or other hardware
            become wedged due to a lost interrupt or other hardware
            race-condition type problem.
            race-condition type problem.
            This is not necessary if a networked app is running which sends
            This is not necessary if a networked app is running which sends
            packets itself often - or
            packets itself often - or
            uses TCP, or any similar protocol which exchanges keep-alive
            uses TCP, or any similar protocol which exchanges keep-alive
            packets periodically and often enough.
            packets periodically and often enough.
            Trying to send a packet passes control into the driver; this is
            Trying to send a packet passes control into the driver; this is
            sufficient to detect and unblock jammed hardware."
            sufficient to detect and unblock jammed hardware."
        cdl_option CYGNUM_NET_FAST_THREAD_TICKLE_DEVS_DELAY {
        cdl_option CYGNUM_NET_FAST_THREAD_TICKLE_DEVS_DELAY {
            display "Delay in kernel clocks of tickle loop"
            display "Delay in kernel clocks of tickle loop"
            flavor data
            flavor data
            default_value 50
            default_value 50
            description "
            description "
                The default is 50, which will usually mean a delay between
                The default is 50, which will usually mean a delay between
                tests for 'stuck' devices of 500mS, that is half a second.
                tests for 'stuck' devices of 500mS, that is half a second.
                The overhead only applies if no network activity occurred,
                The overhead only applies if no network activity occurred,
                so it may be acceptable to make this value very small,
                so it may be acceptable to make this value very small,
                where high CPU load does not matter during network idle
                where high CPU load does not matter during network idle
                periods, or very large if your application tries often to
                periods, or very large if your application tries often to
                send packets itself."
                send packets itself."
        }
        }
    }
    }
    cdl_component CYGPKG_NET_FREEBSD_STACK_OPTIONS {
    cdl_component CYGPKG_NET_FREEBSD_STACK_OPTIONS {
        display "Networking support build options"
        display "Networking support build options"
        flavor  none
        flavor  none
        no_define
        no_define
        cdl_option CYGPKG_NET_FREEBSD_STACK_CFLAGS_ADD {
        cdl_option CYGPKG_NET_FREEBSD_STACK_CFLAGS_ADD {
            display "Additional compiler flags"
            display "Additional compiler flags"
            flavor  data
            flavor  data
            no_define
            no_define
            default_value { "-D_KERNEL" }
            default_value { "-D_KERNEL" }
            description   "
            description   "
                This option modifies the set of compiler flags for
                This option modifies the set of compiler flags for
                building the networking package.
                building the networking package.
                These flags are used in addition
                These flags are used in addition
                to the set of global flags."
                to the set of global flags."
        }
        }
        cdl_option CYGPKG_NET_FREEBSD_STACK_CFLAGS_REMOVE {
        cdl_option CYGPKG_NET_FREEBSD_STACK_CFLAGS_REMOVE {
            display "Suppressed compiler flags"
            display "Suppressed compiler flags"
            flavor  data
            flavor  data
            no_define
            no_define
            default_value { "" }
            default_value { "" }
            description   "
            description   "
                This option modifies the set of compiler flags for
                This option modifies the set of compiler flags for
                building the networking package. These flags are removed from
                building the networking package. These flags are removed from
                the set of global flags if present."
                the set of global flags if present."
        }
        }
    }
    }
    cdl_component CYGPKG_NET_FREEBSD_STACK_BUILD_TESTS {
    cdl_component CYGPKG_NET_FREEBSD_STACK_BUILD_TESTS {
        display "Build networking tests (demo programs)"
        display "Build networking tests (demo programs)"
        flavor  bool
        flavor  bool
        no_define
        no_define
        default_value 0
        default_value 0
        description   "
        description   "
        This option enables the building of additional network tests
        This option enables the building of additional network tests
        which at this time are just demos; otherwise only loopback
        which at this time are just demos; otherwise only loopback
        interface tests will be built."
        interface tests will be built."
        cdl_option CYGPKG_NET_FREEBSD_STACK_TESTS {
        cdl_option CYGPKG_NET_FREEBSD_STACK_TESTS {
            display "Networking tests"
            display "Networking tests"
            flavor  data
            flavor  data
            no_define
            no_define
            calculated { CYGPKG_NET_BUILD_TESTS ? \
            calculated { CYGPKG_NET_BUILD_TESTS ? \
                    "tests/mbuf_test \
                    "tests/mbuf_test \
                    tests/socket_test \
                    tests/socket_test \
                    tests/ftp_test \
                    tests/ftp_test \
                    tests/server_test \
                    tests/server_test \
                    tests/nc_test_slave \
                    tests/nc_test_slave \
                    tests/tftp_client_test \
                    tests/tftp_client_test \
                    tests/tftp_server_test \
                    tests/tftp_server_test \
                    tests/tcp_echo \
                    tests/tcp_echo \
                    tests/set_mac_address \
                    tests/set_mac_address \
                    tests/bridge \
                    tests/bridge \
                    tests/flood \
                    tests/flood \
                    tests/ping_test \
                    tests/ping_test \
                    tests/dhcp_test \
                    tests/dhcp_test \
                    tests/ping_lo_test \
                    tests/ping_lo_test \
                    tests/tcp_lo_test \
                    tests/tcp_lo_test \
                    tests/udp_lo_test \
                    tests/udp_lo_test \
                    tests/multi_lo_select \
                    tests/multi_lo_select \
                    tests/tcp_lo_select"
                    tests/tcp_lo_select"
            :
            :
                    "tests/ping_lo_test \
                    "tests/ping_lo_test \
                    tests/tcp_lo_test \
                    tests/tcp_lo_test \
                    tests/udp_lo_test \
                    tests/udp_lo_test \
                    tests/multi_lo_select \
                    tests/multi_lo_select \
                    tests/tcp_lo_select"
                    tests/tcp_lo_select"
        }
        }
            description   "
            description   "
            This option specifies the set of tests
            This option specifies the set of tests
            for the networking package."
            for the networking package."
        }
        }
    }
    }
}
}
 
 

powered by: WebSVN 2.1.0

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