summary refs log tree commit diff stats
path: root/include/hw/sd/sd.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2022-05-30 19:09:27 +0200
committerCédric Le Goater <clg@kaod.org>2023-09-01 11:40:04 +0200
commit1b4a234278f04ade4dd358224edc3defcd37fda7 (patch)
treeb07743fb792bd829580ab05388915dc684488e95 /include/hw/sd/sd.h
parent94ef3041d21a00bb2d57c987c87c6eeb8812c488 (diff)
downloadfocaccia-qemu-1b4a234278f04ade4dd358224edc3defcd37fda7.tar.gz
focaccia-qemu-1b4a234278f04ade4dd358224edc3defcd37fda7.zip
hw/sd: Move proto_name to SDProto structure
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é <f4bug@amsat.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Message-Id: <20210624142209.1193073-4-f4bug@amsat.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'include/hw/sd/sd.h')
-rw-r--r--include/hw/sd/sd.h2
1 files changed, 2 insertions, 0 deletions
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"