Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f31163c8f |
@@ -1,4 +1,4 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0+
|
// SPDX-License-Identifier: GPL-2.0+ BSD-3-Clause
|
||||||
/*
|
/*
|
||||||
* Copyright 2018 Google, Inc
|
* Copyright 2018 Google, Inc
|
||||||
* Written by Simon Glass <sjg@chromium.org>
|
* Written by Simon Glass <sjg@chromium.org>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
/* SPDX-License-Identifier: GPL-2.0+ BSD-3-Clause */
|
||||||
/*
|
/*
|
||||||
* This provides a standard way of passing information between boot phases
|
* This provides a standard way of passing information between boot phases
|
||||||
* (TPL -> SPL -> U-Boot proper.)
|
* (TPL -> SPL -> U-Boot proper.)
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
#define __NET_COMMON_H__
|
#define __NET_COMMON_H__
|
||||||
|
|
||||||
#include <asm/cache.h>
|
#include <asm/cache.h>
|
||||||
|
#include <command.h>
|
||||||
|
#include <env.h>
|
||||||
#include <hexdump.h>
|
#include <hexdump.h>
|
||||||
#include <linux/if_ether.h>
|
#include <linux/if_ether.h>
|
||||||
#include <linux/sizes.h>
|
#include <linux/sizes.h>
|
||||||
@@ -11,8 +13,6 @@
|
|||||||
#include <rand.h>
|
#include <rand.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
struct cmd_tbl;
|
|
||||||
|
|
||||||
#define DEBUG_NET_PKT_TRACE 0 /* Trace all packet data */
|
#define DEBUG_NET_PKT_TRACE 0 /* Trace all packet data */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -463,7 +463,10 @@ int update_tftp(ulong addr, char *interface, char *devstring);
|
|||||||
* 0 to 255
|
* 0 to 255
|
||||||
* Return: IP address, or 0 if invalid
|
* Return: IP address, or 0 if invalid
|
||||||
*/
|
*/
|
||||||
struct in_addr env_get_ip(char *var);
|
static inline struct in_addr env_get_ip(char *var)
|
||||||
|
{
|
||||||
|
return string_to_ip(env_get(var));
|
||||||
|
}
|
||||||
|
|
||||||
int net_init(void);
|
int net_init(void);
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
#include <env.h>
|
|
||||||
#include <net-common.h>
|
#include <net-common.h>
|
||||||
|
|
||||||
void copy_filename(char *dst, const char *src, int size)
|
void copy_filename(char *dst, const char *src, int size)
|
||||||
@@ -26,8 +25,3 @@ int wget_request(ulong dst_addr, char *uri, struct wget_http_info *info)
|
|||||||
wget_info = info ? info : &default_wget_info;
|
wget_info = info ? info : &default_wget_info;
|
||||||
return wget_with_dns(dst_addr, uri);
|
return wget_with_dns(dst_addr, uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct in_addr env_get_ip(char *var)
|
|
||||||
{
|
|
||||||
return string_to_ip(env_get(var));
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user