mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-23 05:08:24 +00:00
Rename disto_[pxe_]getfile to distro_[pxe_]getfile
Replace 'disto' with 'distro' since they are all functions about distro booting. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
This commit is contained in:
parent
2d74226f2c
commit
c2ee5ee7b3
3 changed files with 7 additions and 7 deletions
|
@ -35,7 +35,7 @@ static int distro_get_state_desc(struct udevice *dev, char *buf, int maxsize)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int disto_getfile(struct pxe_context *ctx, const char *file_path,
|
static int distro_getfile(struct pxe_context *ctx, const char *file_path,
|
||||||
char *file_addr, ulong *sizep)
|
char *file_addr, ulong *sizep)
|
||||||
{
|
{
|
||||||
struct distro_info *info = ctx->userdata;
|
struct distro_info *info = ctx->userdata;
|
||||||
|
@ -113,7 +113,7 @@ static int distro_boot(struct udevice *dev, struct bootflow *bflow)
|
||||||
addr = map_to_sysmem(bflow->buf);
|
addr = map_to_sysmem(bflow->buf);
|
||||||
info.dev = dev;
|
info.dev = dev;
|
||||||
info.bflow = bflow;
|
info.bflow = bflow;
|
||||||
ret = pxe_setup_ctx(&ctx, &cmdtp, disto_getfile, &info, true,
|
ret = pxe_setup_ctx(&ctx, &cmdtp, distro_getfile, &info, true,
|
||||||
bflow->subdir);
|
bflow->subdir);
|
||||||
if (ret)
|
if (ret)
|
||||||
return log_msg_ret("ctx", -EINVAL);
|
return log_msg_ret("ctx", -EINVAL);
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include <net.h>
|
#include <net.h>
|
||||||
#include <pxe_utils.h>
|
#include <pxe_utils.h>
|
||||||
|
|
||||||
static int disto_pxe_getfile(struct pxe_context *ctx, const char *file_path,
|
static int distro_pxe_getfile(struct pxe_context *ctx, const char *file_path,
|
||||||
char *file_addr, ulong *sizep)
|
char *file_addr, ulong *sizep)
|
||||||
{
|
{
|
||||||
struct distro_info *info = ctx->userdata;
|
struct distro_info *info = ctx->userdata;
|
||||||
|
@ -142,7 +142,7 @@ static int distro_pxe_boot(struct udevice *dev, struct bootflow *bflow)
|
||||||
info.dev = dev;
|
info.dev = dev;
|
||||||
info.bflow = bflow;
|
info.bflow = bflow;
|
||||||
info.cmdtp = &cmdtp;
|
info.cmdtp = &cmdtp;
|
||||||
ret = pxe_setup_ctx(ctx, &cmdtp, disto_pxe_getfile, &info, false,
|
ret = pxe_setup_ctx(ctx, &cmdtp, distro_pxe_getfile, &info, false,
|
||||||
bflow->subdir);
|
bflow->subdir);
|
||||||
if (ret)
|
if (ret)
|
||||||
return log_msg_ret("ctx", -EINVAL);
|
return log_msg_ret("ctx", -EINVAL);
|
||||||
|
|
|
@ -322,7 +322,7 @@ look like this::
|
||||||
|
|
||||||
The `sf-bootdev` driver can implement a way to read from the SPI flash, using
|
The `sf-bootdev` driver can implement a way to read from the SPI flash, using
|
||||||
the offset and size provided, and return that bootflow file back to the caller.
|
the offset and size provided, and return that bootflow file back to the caller.
|
||||||
When distro boot wants to read the kernel it calls disto_getfile() which must
|
When distro boot wants to read the kernel it calls distro_getfile() which must
|
||||||
provide a way to read from the SPI flash. See `distro_boot()` at distro_boot_
|
provide a way to read from the SPI flash. See `distro_boot()` at distro_boot_
|
||||||
for more details.
|
for more details.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue