/qemu/hw/sd/ |
H A D | sd.c | 2 * SD Memory Card emulation as defined in the "SD Memory Card Physical 41 #include "hw/sd/sd.h" 102 sd_io_state = 15 /* sd */ 107 typedef sd_rsp_type_t (*sd_cmd_handler)(SDState *sd, SDRequest req); 122 /* SD Memory Card Registers */ 185 static bool sd_is_spi(SDState *sd) in sd_is_spi() argument 187 return sd->proto == &sd_proto_spi; in sd_is_spi() 190 static bool sd_is_emmc(SDState *sd) in sd_is_emmc() argument 192 return sd->proto == &sd_proto_emmc; in sd_is_emmc() 266 static const char *sd_cmd_name(SDState *sd, uint8_t cmd) in sd_cmd_name() argument [all …]
|
H A D | Kconfig | 3 select SD 8 select SD 10 config SD config 15 select SD
|
H A D | bcm2835_sdhost.c | 2 * Raspberry Pi (BCM2835) SD Host Controller 19 #include "hw/sd/bcm2835_sdhost.h" 29 #define SDCMD 0x00 /* Command to SD card - 16 R/W */ in DECLARE_INSTANCE_CHECKER() 30 #define SDARG 0x04 /* Argument to SD card - 32 R/W */ in DECLARE_INSTANCE_CHECKER() 33 #define SDRSP0 0x10 /* SD card rsp (31:0) - 32 R */ in DECLARE_INSTANCE_CHECKER() 34 #define SDRSP1 0x14 /* SD card rsp (63:32) - 32 R */ in DECLARE_INSTANCE_CHECKER() 35 #define SDRSP2 0x18 /* SD card rsp (95:64) - 32 R */ in DECLARE_INSTANCE_CHECKER() 36 #define SDRSP3 0x1c /* SD card rsp (127:96) - 32 R */ in DECLARE_INSTANCE_CHECKER() 37 #define SDHSTS 0x20 /* SD host status - 11 R */ in DECLARE_INSTANCE_CHECKER() 38 #define SDVDD 0x30 /* SD card power control - 1 R/W */ in DECLARE_INSTANCE_CHECKER() [all …]
|
H A D | npcm7xx_sdhci.c | 2 * NPCM7xx SD-3.0 / eMMC-4.51 Host Controller 19 #include "hw/sd/sdhci.h" 20 #include "hw/sd/npcm7xx_sdhci.h" 119 /* propagate irq and "sd-bus" from generic-sdhci */ in npcm7xx_sdhci_realize() 121 s->bus = qdev_get_child_bus(DEVICE(sbd_sdhci), "sd-bus"); in npcm7xx_sdhci_realize() 156 dc->desc = "NPCM7xx SD/eMMC Host Controller"; in npcm7xx_sdhci_class_init()
|
H A D | allwinner-sdhost.c | 2 * Allwinner (sun4i and above) SD Host Controller emulation 29 #include "hw/sd/allwinner-sdhost.h" 39 /* SD Host register offsets */ 61 REG_SD_NTSR = 0x5C, /* SD NewTiming Set */ 62 REG_SD_SDBG = 0x60, /* SD newTiming Set Debug */ 84 /* SD Host register flags */ 131 /* SD Host register reset values */ 241 /* Clock change does not actually interact with the SD bus */ in allwinner_sdhost_send_command() 248 /* Send request to SD bus */ in allwinner_sdhost_send_command() 282 * The stop command (CMD12) ensures the SD bus in allwinner_sdhost_auto_stop() [all …]
|
H A D | cadence_sdhci.c | 28 #include "hw/sd/cadence_sdhci.h" 154 /* propagate irq and "sd-bus" from generic-sdhci */ in cadence_sdhci_realize() 156 s->bus = qdev_get_child_bus(DEVICE(sbd_sdhci), "sd-bus"); in cadence_sdhci_realize() 172 dc->desc = "Cadence SD/SDIO/eMMC Host Controller (SD4HC)"; in cadence_sdhci_class_init()
|
H A D | ssi-sd.c | 2 * SSI to SD card adapter. 23 #include "hw/sd/sd.h" 70 #define TYPE_SSI_SD "ssi-sd" 154 DPRINTF("SD card busy\n"); in OBJECT_DECLARE_SIMPLE_TYPE() 178 DPRINTF("SD command failed\n"); in OBJECT_DECLARE_SIMPLE_TYPE() 373 qbus_init(&s->sdbus, sizeof(s->sdbus), TYPE_SD_BUS, DEVICE(d), "sd-bus"); in ssi_sd_realize()
|
/qemu/include/hw/sd/ |
H A D | sd.h | 2 * SD Memory Card emulation. Mostly correct for MMC too. 85 #define TYPE_SD_CARD "sd-card" 88 #define TYPE_SD_CARD_SPI "sd-card-spi" 99 int (*do_command)(SDState *sd, SDRequest *req, uint8_t *response); 101 * Write a byte to a SD card. 102 * @sd: card 105 * Write a byte on the data lines of a SD card. 107 void (*write_byte)(SDState *sd, uint8_t value); 109 * Read a byte from a SD card. 110 * @sd: card [all …]
|
H A D | allwinner-sdhost.h | 2 * Allwinner (sun4i and above) SD Host Controller emulation 25 #include "hw/sd/sd.h" 32 /** Generic Allwinner SD Host Controller (abstract) */ 59 * Allwinner SD Host Controller object instance state. 66 /** Secure Digital (SD) bus, which connects to SD card (if present) */ 108 uint32_t newtiming_set; /**< SD New Timing Set */ 109 uint32_t newtiming_debug; /**< SD New Timing Debug */ 127 * Allwinner SD Host Controller class-level struct.
|
H A D | sdhci.h | 2 * SD Association Host Standard Specification v2.0 controller emulation 30 #include "hw/sd/sd.h" 33 /* SD/MMC host controller state */ 49 QEMUTimer *insert_timer; /* timer for 'changing' sd card. */ 85 uint8_t *fifo_buffer; /* SD host i/o FIFO buffer */ 104 * Write Protect pin default active low for detecting SD card
|
H A D | bcm2835_sdhost.h | 2 * Raspberry Pi (BCM2835) SD Host Controller 18 #include "hw/sd/sd.h"
|
/qemu/pc-bios/s390-ccw/ |
H A D | cio.c | 90 static void print_eckd_dasd_sense_data(SenseDataEckdDasd *sd) in print_eckd_dasd_sense_data() argument 94 if (sd->config_info & 0x8000) { in print_eckd_dasd_sense_data() 101 if (sd->common_status & SNS_STAT0_CMD_REJECT) { in print_eckd_dasd_sense_data() 104 if (sd->common_status & SNS_STAT0_INTERVENTION_REQ) { in print_eckd_dasd_sense_data() 107 if (sd->common_status & SNS_STAT0_BUS_OUT_CHECK) { in print_eckd_dasd_sense_data() 110 if (sd->common_status & SNS_STAT0_EQUIPMENT_CHECK) { in print_eckd_dasd_sense_data() 113 if (sd->common_status & SNS_STAT0_DATA_CHECK) { in print_eckd_dasd_sense_data() 116 if (sd->common_status & SNS_STAT0_OVERRUN) { in print_eckd_dasd_sense_data() 119 if (sd->common_status & SNS_STAT0_INCOMPL_DOMAIN) { in print_eckd_dasd_sense_data() 123 if (sd->status[0] & SNS_STAT1_PERM_ERR) { in print_eckd_dasd_sense_data() [all …]
|
/qemu/docs/system/arm/ |
H A D | orangepi.rst | 7 1GiB RAM, 100Mbit ethernet, USB, SD/MMC, USB, HDMI and 22 * SD/MMC storage controller 49 based SoC, which loads the bootloader from a SD card, specified via the -sd argument 75 $ qemu-system-arm -M orangepi-pc -sd mycard.img \ 132 When using an image as an SD card, it must be resized to a power of two. This can be 142 You can choose to attach the selected image either as an SD card or as USB mass storage. 143 For example, to boot using the Orange Pi PC Debian image on SD card, simply add the -sd 152 -sd OrangePi_pc_debian_stretch_server_linux5.3.5_v1.0.img 163 choose to let the Orange Pi PC machine load the bootloader from SD card, just like 164 a real board would do using the BootROM. Simply pass the selected image via the -sd [all …]
|
H A D | bananapi_m2u.rst | 21 * SD/MMC storage controller 48 based SoC, which loads the bootloader from a SD card, specified via the -sd 83 When using an image as an SD card, it must be resized to a power of two. This can be 96 choose to let the Banana Pi M2U machine load the bootloader from SD card, just like 97 a real board would do using the BootROM. Simply pass the selected image via the -sd 103 -sd openwrt-22.03.3-sunxi-cortexa7-sinovoip_bananapi-m2-ultra-ext4-sdcard.img 119 $ dd if=/dev/zero of=sd.img bs=32M count=1 120 $ dd if=u-boot-sunxi-with-spl.bin of=sd.img bs=1k seek=8 conv=notrunc 126 $ qemu-system-arm -M bpim2u -nographic -sd sd.img
|
H A D | sabrelite.rst | 87 the -kernel argument, along with an SD card image with rootfs: 96 rootfs on an SD card. This requires some additional command line parameters 102 -drive file=sdcard.img,id=rootfs -device sd-card,drive=rootfs 105 blob of the SABRE Lite board. The sample SD card image was populated with the
|
H A D | vexpress.rst | 13 the only available storage option is emulated SD card. 18 - PL181 SD controller 88 -drive if=sd,driver=file,filename=armel-rootfs.ext4 \
|
/qemu/include/hw/misc/ |
H A D | xlnx-versal-pmc-iou-slcr.h | 44 * + Named GPIO output "sd-emmc-sel[0]": Enables 0: SD mode or 1: eMMC mode on 45 * SD/eMMC controller 0. 46 * + Named GPIO output "sd-emmc-sel[1]": Enables 0: SD mode or 1: eMMC mode on 47 * SD/eMMC controller 1.
|
/qemu/tests/qtest/ |
H A D | npcm7xx_sdhci-test.c | 2 * QTests for NPCM7xx SD-3.0 / MMC-4.51 Host Controller 18 #include "hw/sd/npcm7xx_sdhci.h" 37 "-device sd-card,drive=drive0 " in setup_sd_card() 63 /* write message to sd */ in write_sdread() 78 /* Check MMC can read values from sd */ 98 /* read message from sd */ in sdwrite_read() 110 /* Check MMC can write values to sd */
|
H A D | fuzz-sdcard-test.c | 15 * Assertion `wpnum < sd->wpgrps_size' failed. 22 " -device sdhci-pci,sd-spec-version=3" in oss_fuzz_29225() 23 " -device sd-card,drive=d0" in oss_fuzz_29225() 58 * Assertion `wpnum < sd->wpgrps_size' failed. 65 " -device sdhci-pci,sd-spec-version=3 " in oss_fuzz_36217() 66 "-device sd-card,drive=d0 " in oss_fuzz_36217() 99 " -device sdhci-pci,sd-spec-version=3" in oss_fuzz_36391() 100 " -device sd-card,drive=drv" in oss_fuzz_36391()
|
/qemu/tests/qtest/libqos/ |
H A D | sdhci-cmd.h | 19 /* more details at hw/sd/sdhci-internal.h */ 61 /* Set registers needed to send commands to SD */ 66 /* Read at most 1 block of SD using non-DMA */ 70 /* Write at most 1 block of SD using non-DMA */
|
/qemu/docs/system/riscv/ |
H A D | sifive_u.rst | 26 * 1 SD card in SPI mode 109 and SSBL are both on the SD card. 227 SD card image that is properly partitioned and populated with correct contents. 230 A sample configuration file for a 128 MiB SD card image is: 288 Boot U-Boot from SD card, by specifying msel=11 and pass the SD card image 296 -drive file=/path/to/sdcard.img,if=sd 315 case: ZSBL (in QEMU) loads U-Boot SPL from SD card or SPI flash to L2LIM, 320 without the needs of preparing the SPI flash or SD card images, an alternate
|
/qemu/hw/arm/ |
H A D | cubieboard.c | 85 /* Retrieve SD bus */ in cubieboard_init() 88 bus = qdev_get_child_bus(DEVICE(a10), "sd-bus"); in cubieboard_init() 90 /* Plug in SD card */ in cubieboard_init() 100 /* Use Boot ROM to copy data from SD card to SRAM */ in cubieboard_init()
|
H A D | orangepi.c | 81 /* Retrieve SD bus */ in orangepi_init() 84 bus = qdev_get_child_bus(DEVICE(h3), "sd-bus"); in orangepi_init() 86 /* Plug in SD card */ in orangepi_init() 97 /* Use Boot ROM to copy data from SD card to SRAM */ in orangepi_init()
|
H A D | bananapi_m2u.c | 46 bus = qdev_get_child_bus(DEVICE(mmc), "sd-bus"); in mmc_attach_drive() 48 error_report("No SD bus found in SOC object"); in mmc_attach_drive() 57 /* Use Boot ROM to copy data from SD card to SRAM */ in mmc_attach_drive() 97 * Plug in SD card and try load bootrom, R40 has 4 mmc controllers but can in bpim2u_init()
|
/qemu/include/hw/gpio/ |
H A D | bcm2835_gpio.h | 17 #include "hw/sd/sd.h"
|