wdenk | 592ec2c | 2000-12-28 11:02:30 +0000 | [diff] [blame] | 1 | /* |
| 2 | * LiMon - BOOTP/TFTP. |
| 3 | * |
| 4 | * Copyright 1994, 1995, 2000 Neil Russell. |
Luca Ceresoli | b640ed3 | 2011-05-17 00:03:39 +0000 | [diff] [blame] | 5 | * Copyright 2011 Comelit Group SpA |
| 6 | * Luca Ceresoli <luca.ceresoli@comelit.it> |
wdenk | 592ec2c | 2000-12-28 11:02:30 +0000 | [diff] [blame] | 7 | * (See License) |
| 8 | */ |
| 9 | |
| 10 | #ifndef __TFTP_H__ |
| 11 | #define __TFTP_H__ |
| 12 | |
| 13 | /**********************************************************************/ |
| 14 | /* |
| 15 | * Global functions and variables. |
| 16 | */ |
| 17 | |
| 18 | /* tftp.c */ |
Joe Hershberger | 6470159 | 2015-04-08 01:41:07 -0500 | [diff] [blame] | 19 | void tftp_start(enum proto_t protocol); /* Begin TFTP get/put */ |
wdenk | 592ec2c | 2000-12-28 11:02:30 +0000 | [diff] [blame] | 20 | |
Luca Ceresoli | b640ed3 | 2011-05-17 00:03:39 +0000 | [diff] [blame] | 21 | #ifdef CONFIG_CMD_TFTPSRV |
Joe Hershberger | 6470159 | 2015-04-08 01:41:07 -0500 | [diff] [blame] | 22 | void tftp_start_server(void); /* Wait for incoming TFTP put */ |
Luca Ceresoli | b640ed3 | 2011-05-17 00:03:39 +0000 | [diff] [blame] | 23 | #endif |
| 24 | |
Joe Hershberger | 6470159 | 2015-04-08 01:41:07 -0500 | [diff] [blame] | 25 | extern ulong tftp_timeout_ms; |
| 26 | extern int tftp_timeout_count_max; |
Kim Phillips | 40c2c03 | 2012-10-29 13:34:33 +0000 | [diff] [blame] | 27 | |
wdenk | 592ec2c | 2000-12-28 11:02:30 +0000 | [diff] [blame] | 28 | /**********************************************************************/ |
| 29 | |
| 30 | #endif /* __TFTP_H__ */ |