summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/rtems/tftp.h
blob: 7fb977ffa078b5e85ec356f36cd58e4aaeb5c555 (plain) (blame)
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
/*
 *  $Id$
 */

/*
 * Trivial File Transfer Protocol (TFTP)
 *
 * Transfer file to/from remote host
 *
 * W. Eric Norum
 * Saskatchewan Accelerator Laboratory
 * University of Saskatchewan
 * Saskatoon, Saskatchewan, CANADA
 * eric@skatter.usask.ca
 */

/*
 * Usage:
 *
 * To open `/bootfiles/image' on `hostname' for reading:
 *         fd = open ("/TFTP/hostname/bootfiles/image", O_RDONLY);
 *
 * The 'TFTP' is the mount path and the `hostname' must be four dot-separated
 * decimal values.
 */

#ifndef _RTEMS_TFTP_H
#define _RTEMS_TFTP_H

#ifdef __cplusplus
extern "C" {
#endif

#include <rtems/libio.h>

/*
 * Filesystem Mount table entry.
 */
int rtems_tftpfs_initialize(rtems_filesystem_mount_table_entry_t *temp_mt_entry);

/*
 * Filesystem initialization routine
 */

int rtems_bsdnet_initialize_tftp_filesystem( void );

/*
 * TFTP file system operations table.
 */

extern rtems_filesystem_operations_table  rtems_tftp_ops;

#ifdef __cplusplus
}
#endif

#endif