diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:01:38 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:01:38 +0200 |
commit | 112ada667b57ec9b9bd1fc0786f5926779cb5b6e (patch) | |
tree | 0b21c8939cadfbdab3d23dfeb48b8173698e9447 /net | |
parent | 4e7505eb8d06e71eee699e91cd974ba8a1a5717f (diff) | |
download | barebox-112ada667b57ec9b9bd1fc0786f5926779cb5b6e.tar.gz barebox-112ada667b57ec9b9bd1fc0786f5926779cb5b6e.tar.xz |
svn_rev_270
WIP FS support
Diffstat (limited to 'net')
-rw-r--r-- | net/tftp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/tftp.c b/net/tftp.c index e58b38030d..2de87385eb 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -9,6 +9,7 @@ #include <net.h> #include <driver.h> #include <clock.h> +#include <fs.h> #include "tftp.h" #include "bootp.h" @@ -57,7 +58,7 @@ static int TftpState; static char default_filename[DEFAULT_NAME_LEN]; static char *tftp_filename; -extern struct memarea_info net_store_mem; +extern int net_store_fd; static __inline__ void store_block (unsigned block, uchar * src, unsigned len) @@ -65,7 +66,7 @@ store_block (unsigned block, uchar * src, unsigned len) ulong offset = block * TFTP_BLOCK_SIZE + TftpBlockWrapOffset; ulong newsize = offset + len; - dev_write(net_store_mem.device, src, len, net_store_mem.start + offset, 0); + write(net_store_fd, src, len); if (NetBootFileXferSize < newsize) NetBootFileXferSize = newsize; |