summaryrefslogtreecommitdiff
path: root/system/alpha/h/tftp.h
blob: 7fd6b6ae4c02a219152b4c7b19436dda05990cca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#ifndef __TFTP_H_LOADED
#define __TFTP_H_LOADED
/*****************************************************************************

       Copyright © 1993, 1994 Digital Equipment Corporation,
                       Maynard, Massachusetts.

                        All Rights Reserved

Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted, provided
that the copyright notice and this permission notice appear in all copies
of software and supporting documentation, and that the name of Digital not
be used in advertising or publicity pertaining to distribution of the software
without specific, written prior permission. Digital grants this permission
provided that you prominently mark, as not part of the original, any
modifications made to this software or documentation.

Digital Equipment Corporation disclaims all warranties and/or guarantees
with regard to this software, including all implied warranties of fitness for
a particular purpose and merchantability, and makes no representations
regarding the use of, or the results of the use of, the software and
documentation in terms of correctness, accuracy, reliability, currentness or
otherwise; and you rely on the software, documentation and results solely at
your own risk.

******************************************************************************/

/*
 * $Id: tftp.h,v 1.1.1.1 1997/10/30 23:27:17 verghese Exp $
 */

/*
 * MODULE DESCRIPTION:
 *
 *     TFTP protocol interface for EB64 monitor
 *
 * HISTORY:
 *
 * $Log: tftp.h,v $
 * Revision 1.1.1.1  1997/10/30 23:27:17  verghese
 * current 10/29/97
 *
 * Revision 1.5  1994/08/05  20:13:47  fdh
 * Updated Copyright header and RCS $Id: identifier.
 *
 * Revision 1.4  1994/06/28  20:08:21  fdh
 * Modified filenames and build precedure to fit into a FAT filesystem.
 *
 * Revision 1.3  1994/06/20  14:18:59  fdh
 * Fixup header file preprocessor #include conditionals.
 *
 * Revision 1.2  1994/01/21  09:45:59  rusling
 * Added #ifdef <filename>_H around the module.
 * Additionally, any included files are not ifdef'd
 * *before* they're included (ie address.h).
 *
 * Revision 1.1  1993/08/06  10:46:21  berent
 * Initial revision
 *
 *
 */

#include "address.h"

/* tftp_load - load a file from a remote host
 *
 * Arguments:
 *     device_no       - device on which request should be sent
 *     file_name       - name of file to be loaded. Null terminated;
 *     server_addr     - server IP address
 *     load_addr       - address of start of region into which the file should be loaded.
 *
 * Returned value:
 *     TRUE   - tftp successful.
 *     FALSE  - tftp failed.
 */
extern int tftp_load(int device_no,
                      char file_name[128],
                      ip_addr server_addr,
                      unsigned char * load_addr);
/* tftp_init_module - initialise the module
 */
extern void tftp_init_module(void);


#endif /* __TFTP_H_LOADED */