DP839EB-ATS SONIC Packet Driver for PC/TCP by FTP Software
Total Page:16
File Type:pdf, Size:1020Kb
DP839EB-ATS SONIC Packet Driver for PC/TCP by FTP Software AN-748 National Semiconductor DP839EB-ATS SONIC Application Note 748 Packet Driver for PC/TCP January 1991 by FTP Software INTRODUCTION This is a program listing for a driver for the DP839EB-ATS This software does not make use of higher performance SONIC Ethernet Adapter. This driver enables the DP839EB- upper level features, and performance is limited by this. ATS to operate with a TCP/IP software package from FTP The driver is listed by modules in the order listed below. Software Inc. called PC/TCP. This driver is written to ver- 1. pktdrv.c 6. sonic.h sion 2.0x of this software package. 2. far.c 7. isrlib.asm This software program listing is provided primarily as a pro- gramming example for writing software for the DP83932 3. isr.c 8. pktint.asm Systems Oriented Network Interface Controller. This driver 4. sonic.c 9. pktdrv.mak (make file) is written in Microsoft C 5.1 and Microsoft Assembler 5.1. 5. pktdrv.h 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. FILENAME: pktdrv.c TL/F/11142±1 MicrosoftÉ is a registered trademark of Microsoft Corporation. PC/TCPÉ is a registered trademark of FTP Software Inc. C1995 National Semiconductor Corporation TL/F/11142 RRD-B30M75/Printed in U. S. A. TL/F/11142±2 2 TL/F/11142±3 3 TL/F/11142±4 4 TL/F/11142±5 5 TL/F/11142±6 6 TL/F/11142±7 7 TL/F/11142±8 8 TL/F/11142±9 9 TL/F/11142±10 10 TL/F/11142±11 11 TL/F/11142±12 12 TL/F/11142±13 13 TL/F/11142±14 14 FILENAME: far.c TL/F/11142±15 15 FILENAME: isr.c TL/F/11142±16 16 TL/F/11142±17 17 FILENAME: sonic.c TL/F/11142±18 18 TL/F/11142±19 19 TL/F/11142±20 20 TL/F/11142±21 21 FILENAME: pktdrv.h TL/F/11142±22 22 TL/F/11142±23 23 FILENAME: sonic.h TL/F/11142±24 24 TL/F/11142±25 25 TL/F/11142±26 26 FILENAME: isrlib.asm TL/F/11142±27 27 TL/F/11142±28 28 FILENAME: pktint.asm TL/F/11142±29 29 TL/F/11142±30 30 TL/F/11142±31 31 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. 2900 Semiconductor Drive Livry-Gargan-Str. 10 Sumitomo Chemical 13th Floor, Straight Block, Rue Deputado Lacorda Franco Building 16 P.O. Box 58090 D-82256 Furstenfeldbruck4 Engineering Center Ocean Centre, 5 Canton Rd. 120-3A Business Park Drive Santa Clara, CA 95052-8090 Germany Bldg. 7F Tsimshatsui, Kowloon Sao Paulo-SP Monash Business Park Tel: 1(800) 272-9959 Tel: (81-41) 35-0 1-7-1, Nakase, Mihama-Ku Hong Kong Brazil 05418-000 Nottinghill, Melbourne TWX: (910) 339-9240 Telex: 527649 Chiba-City, Tel: (852) 2737-1600 Tel: (55-11) 212-5066 Victoria 3168 Australia Fax: (81-41) 35-1 Ciba Prefecture 261 Fax: (852) 2736-9960 Telex: 391-1131931 NSBR BR Tel: (3) 558-9999 Tel: (043) 299-2300 Fax: (55-11) 212-1181 Fax: (3) 558-9998 Fax: (043) 299-2500 AN-748 DP839EB-ATS SONIC Packet Driver for PC/TCP by FTP Software National does not assume any responsibility for use of any circuitry described, no circuit patent licenses are implied and National reserves the right at any time without notice to change said circuitry and specifications..