summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-06-09 09:26:43 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-06-09 09:26:43 +0200
commitee2ac17df0a9acdc49dc776668cc693eaebb330e (patch)
tree12af16949f8ec7ea106bd7c4c090a94ff043364b /include
parentd47e89a45d8ee57c31e6afcdfcbc1288dcaa27a6 (diff)
parent0b06cf7edf84f37e8b5fcdee2819cf4f59934593 (diff)
downloadbarebox-ee2ac17df0a9acdc49dc776668cc693eaebb330e.tar.gz
barebox-ee2ac17df0a9acdc49dc776668cc693eaebb330e.tar.xz
Merge branch 'for-next/am33xx'
Diffstat (limited to 'include')
-rw-r--r--include/bootsource.h1
-rw-r--r--include/dhcp.h25
2 files changed, 26 insertions, 0 deletions
diff --git a/include/bootsource.h b/include/bootsource.h
index 4bca9b99ad..c6d3b3a98b 100644
--- a/include/bootsource.h
+++ b/include/bootsource.h
@@ -15,6 +15,7 @@ enum bootsource {
BOOTSOURCE_ONENAND,
BOOTSOURCE_HD,
BOOTSOURCE_USB,
+ BOOTSOURCE_NET,
};
#define BOOTSOURCE_INSTANCE_UNKNOWN -1
diff --git a/include/dhcp.h b/include/dhcp.h
new file mode 100644
index 0000000000..0796b30cf1
--- /dev/null
+++ b/include/dhcp.h
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2015 PHYTEC Messtechnik GmbH,
+ * Author: Wadim Egorov <w.egorov@phytec.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef __DHCP_H__
+#define __DHCP_H__
+
+#define DHCP_DEFAULT_RETRY 20
+
+struct dhcp_req_param {
+ char *hostname;
+ char *vendor_id;
+ char *client_id;
+ char *user_class;
+ char *client_uuid;
+};
+
+int dhcp(int retries, struct dhcp_req_param *param);
+
+#endif