summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/tftp.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-04-30 09:24:44 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-05-02 09:56:48 +0200
commitc3bab73b4bb1b02879671d72ff96e625a1b4807e (patch)
tree0e4967c81c4e9ae913b465fecef7d55436537d13 /cpukit/include/rtems/tftp.h
parentlibdebugger: Move to separate library (diff)
downloadrtems-c3bab73b4bb1b02879671d72ff96e625a1b4807e.tar.bz2
tftpfs: Always build TFTP client
Move TFTP client filesystem to separate library libtftpfs.a. Conditionally use legacy network stack features, e.g. BOOTP support. Update #3419.
Diffstat (limited to 'cpukit/include/rtems/tftp.h')
-rw-r--r--cpukit/include/rtems/tftp.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/cpukit/include/rtems/tftp.h b/cpukit/include/rtems/tftp.h
new file mode 100644
index 0000000000..ed3ebd7865
--- /dev/null
+++ b/cpukit/include/rtems/tftp.h
@@ -0,0 +1,44 @@
+/*
+ * 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/fs.h>
+
+/*
+ * Filesystem Mount table entry.
+ */
+int rtems_tftpfs_initialize(
+ rtems_filesystem_mount_table_entry_t *mt_entry,
+ const void *data
+);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif