From 1b4a234278f04ade4dd358224edc3defcd37fda7 Mon Sep 17 00:00:00 2001 From: Philippe Mathieu-Daudé Date: Mon, 30 May 2022 19:09:27 +0200 Subject: hw/sd: Move proto_name to SDProto structure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduce a new structure to hold the bus protocol specific fields: SDProto. The first field is the protocol name. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Bin Meng Message-Id: <20210624142209.1193073-4-f4bug@amsat.org> Signed-off-by: Cédric Le Goater --- include/hw/sd/sd.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/hw/sd/sd.h') diff --git a/include/hw/sd/sd.h b/include/hw/sd/sd.h index 3047adb2fc..b322d8f19b 100644 --- a/include/hw/sd/sd.h +++ b/include/hw/sd/sd.h @@ -124,6 +124,8 @@ struct SDCardClass { void (*enable)(SDState *sd, bool enable); bool (*get_inserted)(SDState *sd); bool (*get_readonly)(SDState *sd); + + const struct SDProto *proto; }; #define TYPE_SD_BUS "sd-bus" -- cgit 1.4.1