summaryrefslogtreecommitdiffstats
path: root/doc/networking/driver.t
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-04-19 14:58:16 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-04-19 14:58:16 +0000
commit202d54ef279eff08fdcc13d61aab524bbce10013 (patch)
tree8ae0b0cf453f9cbbfd9063864936bf389519652d /doc/networking/driver.t
parentFirst cut at addition of information on macros that need to be defined. (diff)
downloadrtems-202d54ef279eff08fdcc13d61aab524bbce10013.tar.bz2
Comments from Eric Norum taken into account.
Diffstat (limited to '')
-rw-r--r--doc/networking/driver.t16
1 files changed, 14 insertions, 2 deletions
diff --git a/doc/networking/driver.t b/doc/networking/driver.t
index c6e62043a0..417e966705 100644
--- a/doc/networking/driver.t
+++ b/doc/networking/driver.t
@@ -113,7 +113,18 @@ The value returned is the value returned by the @code{rtems_event_receive}.
@section Network Driver Makefile
Network drivers are considered part of the BSD network package and as such
-are to be compiled with the appropriate flags.
+are to be compiled with the appropriate flags. This can be accomplished by
+adding @code{-D__INSIDE_RTEMS_BSD_TCPIP_STACK__} to the @code{command line}.
+If the driver is inside the RTEMS source tree or is built using the
+RTEMS application Makefiles, then adding the following line accomplishes
+this:
+
+@example
+DEFINES += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
+@end example
+
+This is equivalent to the following list of definitions. Early versions
+of the RTEMS BSD network stack required that all of these be defined.
@example
-D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS -DDIAGNOSTIC -DBOOTP_COMPAT
@@ -134,12 +145,13 @@ of this. Because of this, network drivers should not include
of @code{malloc()}.
@b{Application level} code including network servers such as the FTP
-daemon are @b{not} part of the BSD network package and should not be
+daemon are @b{not} part of the BSD kernel network code and should not be
compiled with the BSD network flags. They should include
@code{<stdlib.h>} and not define the network stack visibility
macros.
@section Write the Driver Attach Function
+
The driver attach function is responsible for configuring the driver
and making the connection between the network stack
and the driver.