DP839EB-ATS SONIC Packet Driver for PC/TCP by FTP Software AN-748
National Semiconductor Application Note 748 January 1991
DP839EB-ATS SONIC Packet Driver for PC/TCP by FTP Software
INTRODUCTION
This is a program listing for a driver for the DP839EB-ATS SONIC Ethernet Adapter. This driver enables the DP839EB- ATS to operate with a TCP/IP software package from FTP Software Inc. called PC/TCP. This driver is written to ver- sion 2.0x of this software package.
This software program listing is provided primarily as a pro- gramming example for writing software for the DP83932 Systems Oriented Network Interface Controller. This driver is written in Microsoft C 5.1 and Microsoft Assembler 5.1.
Since the bulk of the software is written in C, the concepts provided are easily portable to other environments.
This example driver was not written to achieve optimum per- formance with PC/TCP, but primarily to show how the SON- IC Controller can be programmed.
This software does not make use of higher performance upper level features, and performance is limited by this.
The driver is listed by modules in the order listed below.
1. pktdrv.c 6. sonic.h 2. far.c 7. isrlib.asm 3. isr.c 8. pktint.asm
4. sonic.c 9. pktdrv.mak (make file) 5. pktdrv.h
FILENAME: pktdrv.c
TL/F/11142 – 1
TL/F/11142 – 2
TL/F/11142 – 3
TL/F/11142 – 4
TL/F/11142 – 5
TL/F/11142 – 6
TL/F/11142 – 7
TL/F/11142 – 8
TL/F/11142 – 9
TL/F/11142 – 10
TL/F/11142 – 11
TL/F/11142 – 12
TL/F/11142 – 13
TL/F/11142 – 14
FILENAME: far.c
TL/F/11142 – 15
FILENAME: isr.c
TL/F/11142 – 16
TL/F/11142 – 17
FILENAME: sonic.c
TL/F/11142 – 18
TL/F/11142 – 19
TL/F/11142 – 20
TL/F/11142 – 21
FILENAME: pktdrv.h
TL/F/11142 – 22
TL/F/11142 – 23
FILENAME: sonic.h
TL/F/11142 – 24
TL/F/11142 – 25
TL/F/11142 – 26
FILENAME: isrlib.asm
TL/F/11142 – 27
TL/F/11142 – 28
FILENAME: pktint.asm
TL/F/11142 – 29
TL/F/11142 – 30
TL/F/11142 – 31
DP839EB-ATS SONIC Packet Driver for PC/TCP by FTP Software
FILENAME: pktdrv.mak
TL/F/11142 – 32
LIFE SUPPORT POLICY
NATIONAL’S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF THE PRESIDENT OF NATIONAL SEMICONDUCTOR CORPORATION. As used herein:
1. Life support devices or systems are devices or 2. A critical component is any component of a life systems which, (a) are intended for surgical implant support device or system whose failure to perform can into the body, or (b) support or sustain life, and whose be reasonably expected to cause the failure of the life failure to perform, when properly used in accordance support device or system, or to affect its safety or with instructions for use provided in the labeling, can effectiveness.
be reasonably expected to result in a significant injury to the user.
National Semiconductor National Semiconductor National Semiconductor National Semiconductor National Semiconductores National Semiconductor
Corporation GmbH Japan Ltd. Hong Kong Ltd. Do Brazil Ltda. (Australia) Pty, Ltd.