aboutsummaryrefslogtreecommitdiff
path: root/include/hw
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
parent94ef3041d21a00bb2d57c987c87c6eeb8812c488 (diff)
downloadqemu-1b4a234278f04ade4dd358224edc3defcd37fda7.zip
qemu-1b4a234278f04ade4dd358224edc3defcd37fda7.tar.gz
qemu-1b4a234278f04ade4dd358224edc3defcd37fda7.tar.bz2
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')
-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 3047adb..b322d8f 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"