qemu/hw/sd
Sai Pavan Boddu 8f25b74a32 hw/sd/sdcard: Add mmc SWITCH function support (CMD6)
switch operation in mmc cards, updated the ext_csd register to
request changes in card operations. Here we implement similar
sequence but requests are mostly dummy and make no change.

Implement SWITCH_ERROR if the write operation offset goes beyond
length of ext_csd.

Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
[PMD: Convert to SDProto handlers, add trace events]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Tested-by: Cédric Le Goater <clg@redhat.com>
Message-Id: <20240712162719.88165-11-philmd@linaro.org>
2024-07-16 20:28:28 +02:00
..
allwinner-sdhost.c hw/sd: Constify VMState 2023-12-30 07:38:06 +11:00
aspeed_sdhci.c hw/sd: Constify VMState 2023-12-30 07:38:06 +11:00
bcm2835_sdhost.c hw/sd: Constify VMState 2023-12-30 07:38:06 +11:00
cadence_sdhci.c hw/sd: Constify VMState 2023-12-30 07:38:06 +11:00
core.c hw/sd/sdcard: Extract TYPE_SDMMC_COMMON from TYPE_SD_CARD 2024-07-05 23:55:02 +02:00
Kconfig hw/sd: Add Cadence SDHCI emulation 2020-09-09 15:54:18 -07:00
meson.build hw/sd/sdcard: Move sd_[a]cmd_name() methods to sd.c 2024-07-02 10:08:32 +02:00
npcm7xx_sdhci.c hw/sd/npcm7xx_sdhci: Use TYPE_SYSBUS_SDHCI definition 2024-07-05 23:50:12 +02:00
omap_mmc.c hw/arm/omap: Drop useless casts from void * to pointer 2023-01-12 17:15:09 +00:00
pl181.c hw/sd: Constify VMState 2023-12-30 07:38:06 +11:00
pxa2xx_mmci.c hw/sd: Constify VMState 2023-12-30 07:38:06 +11:00
sd.c hw/sd/sdcard: Add mmc SWITCH function support (CMD6) 2024-07-16 20:28:28 +02:00
sdhci-internal.h hw/sd/sdhci: Support big endian SD host controller interfaces 2022-12-21 14:17:55 -03:00
sdhci-pci.c hw/sd: Declare QOM types using DEFINE_TYPES() macro 2023-11-07 13:08:49 +01:00
sdhci.c hw/sd/sdhci: Log non-sequencial access as GUEST_ERROR 2024-07-05 23:50:04 +02:00
sdmmc-internal.h hw/sd/sdcard: Extract TYPE_SDMMC_COMMON from TYPE_SD_CARD 2024-07-05 23:55:02 +02:00
ssi-sd.c hw/sd: Constify VMState 2023-12-30 07:38:06 +11:00
trace-events hw/sd/sdcard: Add mmc SWITCH function support (CMD6) 2024-07-16 20:28:28 +02:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00