mirror of
https://github.com/xemu-project/xemu.git
synced 2026-07-11 01:24:41 +02:00
hw/arm/aspeed: Rename and export connect_serial_hds_to_uarts() as aspeed_connect_serial_hds_to_uarts()
The helper function connect_serial_hds_to_uarts() has been renamed to aspeed_connect_serial_hds_to_uarts() and promoted to a public Aspeed machine API. Previously, this function was declared static within aspeed.c and only used internally. Renaming it with the aspeed_ prefix and exporting its declaration in aspeed.h makes the function accessible to other Aspeed machine implementations that need to attach host serial devices to SoC UARTs. No functional changes. Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Link: https://lore.kernel.org/qemu-devel/20251104031325.146374-30-jamin_lin@aspeedtech.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
committed by
Cédric Le Goater
parent
064f1ce95f
commit
fcbcfb5afe
@@ -111,4 +111,18 @@ I2CSlave *aspeed_create_pca9554(AspeedSoCState *soc, int bus_id, int addr);
|
||||
*/
|
||||
void aspeed_machine_ast2600_class_emmc_init(ObjectClass *oc);
|
||||
|
||||
/*
|
||||
* aspeed_connect_serial_hds_to_uarts:
|
||||
* @bmc: pointer to the #AspeedMachineState.
|
||||
*
|
||||
* Connect host serial backends (character devices) to the UART interfaces
|
||||
* of the Aspeed SoC used by the given BMC machine.
|
||||
*
|
||||
* The function assigns `serial_hd(0)` to the primary UART channel
|
||||
* (either chosen via `bmc->uart_chosen` or the machine class default),
|
||||
* and iteratively connects remaining serial ports to other available UARTs
|
||||
* on the SoC based on their index.
|
||||
*/
|
||||
void aspeed_connect_serial_hds_to_uarts(AspeedMachineState *bmc);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user