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); |