]> git.proxmox.com Git - mirror_qemu.git/commit
hw/sd: Introduce sd_cmd_handler type
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Thu, 24 Jun 2021 11:00:08 +0000 (13:00 +0200)
committerCédric Le Goater <clg@kaod.org>
Fri, 1 Sep 2023 09:40:04 +0000 (11:40 +0200)
commit46859b6078bbd78c54693799f6ed1b90d1d5e565
treee2d64abe08212c74b1ef8df1220d5967076e1ecf
parent1b4a234278f04ade4dd358224edc3defcd37fda7
hw/sd: Introduce sd_cmd_handler type

Add 2 command handler arrays in SDProto, for CMD and ACMD.
Have sd_normal_command() / sd_app_command() use these arrays:
if an command handler is registered, call it, otherwise fall
back to current code base.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Message-Id: <20210624142209.1193073-5-f4bug@amsat.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/sd/sd.c