|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH 1/5] aspeed: Make sdhci_attach_drive and write_boot_rom public |
Date: | Wed, 25 Dec 2024 12:28:06 +0100 |
User-agent: | Mozilla Thunderbird |
On 25/12/24 03:03, Steven Lee via wrote:
sdhci_attach_drive and write_boot_rom functions may be used by the aspeed machine supporting co-processors. Signed-off-by: Steven Lee <steven_lee@aspeedtech.com> --- hw/arm/aspeed.c | 4 ++-- include/hw/arm/aspeed.h | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/include/hw/arm/aspeed.h b/include/hw/arm/aspeed.h index cbeacb214c..bba224c357 100644 --- a/include/hw/arm/aspeed.h +++ b/include/hw/arm/aspeed.h @@ -10,7 +10,9 @@ #define ARM_ASPEED_H#include "hw/boards.h"+#include "hw/sd/sdhci.h" #include "qom/object.h" +#include "system/blockdev.h"typedef struct AspeedMachineState AspeedMachineState; @@ -41,5 +43,9 @@ struct AspeedMachineClass {uint32_t uart_default; };+void sdhci_attach_drive(SDHCIState *sdhci, DriveInfo *dinfo, bool emmc,+ bool boot_emmc);
Indent is off.
+void write_boot_rom(BlockBackend *blk, hwaddr addr, size_t rom_size, + Error **errp);
Ditto. Pre-existing, functions taking Error as last argument should return a boolean indicating whether error occurred or not. Fixing indentation: Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
[Prev in Thread] | Current Thread | [Next in Thread] |