Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4437)

Unified Diff: lib/tftp/include/lib/tftp.h

Issue 1346853002: [app][inetsrv] add tftp server. (Closed) Base URL: https://github.com/travisg/lk.git@master
Patch Set: review changes Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « app/inetsrv/rules.mk ('k') | lib/tftp/rules.mk » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/tftp/include/lib/tftp.h
diff --git a/platform/bcm2835/include/platform/gic.h b/lib/tftp/include/lib/tftp.h
similarity index 81%
copy from platform/bcm2835/include/platform/gic.h
copy to lib/tftp/include/lib/tftp.h
index d1e7c8ca718c3b5c35a9cc45a869de8941f013b8..0661e00d16d689a1267adef7e5ac7b2b30bad789 100644
--- a/platform/bcm2835/include/platform/gic.h
+++ b/lib/tftp/include/lib/tftp.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015 Travis Geiselbrecht
+ * Copyright (c) 2015 Carlos Pizano-Uribe <cpu@chromium.org>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
@@ -20,12 +20,12 @@
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
+
#pragma once
-#include <platform/bcm2835.h>
+typedef int (*tftp_callback_t)(void *data, size_t len, void *arg);
-#define GICBASE(n) (CPUPRIV_BASE_PHYS)
-#define GICC_OFFSET (0x0100)
-#define GICD_OFFSET (0x1000)
+int tftp_server_init(void *arg);
+int tftp_set_write_client(const char* file_name, tftp_callback_t cb, void* arg);
« no previous file with comments | « app/inetsrv/rules.mk ('k') | lib/tftp/rules.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698