Home
last modified time | relevance | path

Searched full:card (Results 1 – 25 of 158) sorted by relevance

1234567

/qemu/hw/usb/
H A Dccid-card-emulated.c2 * CCID Card Device. Emulated card.
14 * Usage 1: standard, mirror hardware reader+card:
15 * qemu .. -usb -device usb-ccid -device ccid-card-emulated
23 * -device ccid-card-emulated,cert1=user1,cert2=user2,cert3=user3
41 #define DPRINTF(card, lvl, fmt, ...) \ argument
43 if (lvl <= card->debug) {\
44 printf("ccid-card-emul: %s: " fmt , __func__, ## __VA_ARGS__);\
49 #define TYPE_EMULATED_CCID "ccid-card-emulated"
142 EmulatedState *card = EMULATED_CCID_CARD(base); in emulated_apdu_from_guest() local
149 qemu_mutex_lock(&card->vreader_mutex); in emulated_apdu_from_guest()
[all …]
H A Dccid-card-passthru.c2 * CCID Passthru Card Device emulation
26 #define DPRINTF(card, lvl, fmt, ...) \ argument
28 if (lvl <= card->debug) { \
29 printf("ccid-card-passthru: " fmt , ## __VA_ARGS__); \
45 /* From an Athena smart card */
68 #define TYPE_CCID_PASSTHRU "ccid-card-passthru"
74 * This code should not depend on the card type. in DECLARE_INSTANCE_CHECKER()
123 PassthruState *card = opaque; in ccid_card_vscard_can_read() local
125 return VSCARD_IN_SIZE >= card->vscard_in_pos ? in ccid_card_vscard_can_read()
126 VSCARD_IN_SIZE - card->vscard_in_pos : 0; in ccid_card_vscard_can_read()
[all …]
H A Dccid.h2 * CCID Passthru Card Device emulation
18 #define TYPE_CCID_CARD "ccid-card"
23 * into the smartcard device (hw/ccid-card-*.c)
29 const uint8_t *(*get_atr)(CCIDCardState *card, uint32_t *len);
30 void (*apdu_from_guest)(CCIDCardState *card,
33 void (*realize)(CCIDCardState *card, Error **errp);
34 void (*unrealize)(CCIDCardState *card);
38 * state of the CCID Card device (i.e. hw/ccid-card-*.c)
46 * API for smartcard calling the CCID device (used by hw/ccid-card-*.c)
48 void ccid_card_send_apdu_to_guest(CCIDCardState *card,
[all …]
H A Ddev-smartcard-reader.c22 * "Universal Serial Bus, Device Class: Smart Card"
293 CCIDCardState *card; member
323 * This device implemented based on the spec and with an Athena Smart Card
329 /* Smart Card Device Class Descriptor */
380 * 100000 USB Wake up signaling supported on card
490 static const uint8_t *ccid_card_get_atr(CCIDCardState *card, uint32_t *len) in ccid_card_get_atr() argument
492 CCIDCardClass *cc = CCID_CARD_GET_CLASS(card); in ccid_card_get_atr()
495 return cc->get_atr(card, len); in ccid_card_get_atr()
500 static void ccid_card_apdu_from_guest(CCIDCardState *card, in ccid_card_apdu_from_guest() argument
504 CCIDCardClass *cc = CCID_CARD_GET_CLASS(card); in ccid_card_apdu_from_guest()
[all …]
/qemu/hw/sd/
H A Dcore.c2 * SD card bus interface code.
82 SDState *card = get_card(sdbus); in sdbus_set_voltage() local
85 if (card) { in sdbus_set_voltage()
86 SDCardClass *sc = SDMMC_COMMON_GET_CLASS(card); in sdbus_set_voltage()
89 sc->set_voltage(card, millivolts); in sdbus_set_voltage()
95 SDState *card = get_card(sdbus); in sdbus_do_command() local
98 if (card) { in sdbus_do_command()
99 SDCardClass *sc = SDMMC_COMMON_GET_CLASS(card); in sdbus_do_command()
101 return sc->do_command(card, req, response); in sdbus_do_command()
109 SDState *card = get_card(sdbus); in sdbus_write_byte() local
[all …]
H A Dallwinner-sdhost.c68 REG_SD_THLDC = 0x100, /* Card Threshold Control / FIFO (sun4i only)*/
70 REG_SD_RES_CRC = 0x110, /* Response CRC from card/eMMC */
71 REG_SD_DATA7_CRC = 0x114, /* CRC Data 7 from card/eMMC */
72 REG_SD_DATA6_CRC = 0x118, /* CRC Data 6 from card/eMMC */
73 REG_SD_DATA5_CRC = 0x11C, /* CRC Data 5 from card/eMMC */
74 REG_SD_DATA4_CRC = 0x120, /* CRC Data 4 from card/eMMC */
75 REG_SD_DATA3_CRC = 0x124, /* CRC Data 3 from card/eMMC */
76 REG_SD_DATA2_CRC = 0x128, /* CRC Data 2 from card/eMMC */
77 REG_SD_DATA1_CRC = 0x12C, /* CRC Data 1 from card/eMMC */
78 REG_SD_DATA0_CRC = 0x130, /* CRC Data 0 from card/eMMC */
[all …]
H A Dbcm2835_sdhost.c29 #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()
38 #define SDVDD 0x30 /* SD card power control - 1 R/W */ in DECLARE_INSTANCE_CHECKER()
42 #define SDDATA 0x40 /* Data to/from SD card - 32 R/W */ in DECLARE_INSTANCE_CHECKER()
H A Dpl181.c2 * Arm PrimeCell PL181 MultiMedia Card Interface
57 /* GPIO outputs for 'card is readonly' and 'card inserted' */
210 /* Transfer data between the card and the FIFO. This is complicated by
211 the FIFO holding 32-bit words and the card taking data in single byte
345 transferred between the serial engine and the card. in pl181_read()
491 /* Reset other state based on current card insertion/readonly status */ in pl181_reset()
506 qdev_init_gpio_out_named(dev, &s->card_readonly, "card-read-only", 1); in pl181_init()
507 qdev_init_gpio_out_named(dev, &s->card_inserted, "card-inserted", 1); in pl181_init()
H A Dssi-sd.c2 * SSI to SD card adapter.
126 /* There must be at least one byte delay before the card responds */ in OBJECT_DECLARE_SIMPLE_TYPE()
152 /* a zero value indicates the card is busy */ in OBJECT_DECLARE_SIMPLE_TYPE()
154 DPRINTF("SD card busy\n"); in OBJECT_DECLARE_SIMPLE_TYPE()
157 /* a non-zero value indicates the card is ready */ in OBJECT_DECLARE_SIMPLE_TYPE()
239 DPRINTF("Card status 0x%02x\n", status); in OBJECT_DECLARE_SIMPLE_TYPE()
248 DPRINTF("Prepare card response (Ncr)\n"); in OBJECT_DECLARE_SIMPLE_TYPE()
H A Dsd.c2 * SD Memory Card emulation as defined in the "SD Memory Card Physical
122 /* SD Memory Card Registers */
149 uint32_t mode; /* current card mode, one of SDCardModes */
150 int32_t state; /* current card state, one of SDCardStates */
311 qemu_log_mask(LOG_GUEST_ERROR, "SD card voltage not supported: %.3fV", in sd_set_voltage()
383 /* card power-up OK */ in sd_ocr_powerup()
399 * Thus, the card's power up status bit should be set to 1 when reset. in sd_set_ocr()
400 * The card's capacity status bit should also be set if SD card size in sd_set_ocr()
417 sd->scr[1] = (2 << 4) /* SDSC Card (Security Version 1.01) */ in sd_set_scr()
431 /* Card IDentification register */
[all …]
/qemu/docs/system/devices/
H A Dccid.rst1 Chip Card Interface Device (CCID)
7 lets one connect smart card readers that implement the same spec. For more
11 Device Class: Smart Card
23 the guest machine. It is also possible to have a completely virtual smart card
24 reader and smart card (i.e. not backed by a physical device) using this device.
28 The cryptographic functions and access to the physical card is done via the
44 Using ccid-card-emulated with hardware
47 user, using libcacard, QEMU acts as another client using ccid-card-emulated::
49 qemu -usb -device usb-ccid -device ccid-card-emulated
51 Using ccid-card-emulated with certificates stored in files
[all …]
H A Dcanokey.rst9 * OpenPGP Card V3.4 with RSA4096, Ed25519 and more [2]_
21 * (virt-card) CanoKey USB/IP
22 * (virt-card) CanoKey FunctionFS
24 In QEMU, yet another CanoKey virt-card is implemented.
46 Also since this is a virtual card, it can be easily used in CI for testing
/qemu/include/hw/sd/
H A Dsd.h2 * 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"
101 * Write a byte to a SD card.
102 * @sd: card
105 * Write a byte on the data lines of a SD card.
109 * Read a byte from a SD card.
110 * @sd: card
112 * Read a byte from the data lines of a SD card.
144 * when the card insertion or readonly status changes
[all …]
/qemu/docs/system/
H A Dtarget-i386-desc.rst.inc5 - Cirrus CLGD 5446 PCI VGA card or dummy VGA card with Bochs VESA
20 - Creative SoundBlaster 16 sound card
22 - ENSONIQ AudioPCI ES1370 sound card
24 - Intel 82801AA AC97 Audio compatible sound card
30 - Gravis Ultrasound GF1 sound card
32 - CS4231A compatible sound card
/qemu/audio/
H A Daudio.h97 bool AUD_register_card (const char *name, QEMUSoundCard *card, Error **errp);
98 void AUD_remove_card (QEMUSoundCard *card);
108 QEMUSoundCard *card,
116 void AUD_close_out (QEMUSoundCard *card, SWVoiceOut *sw);
139 QEMUSoundCard *card,
147 void AUD_close_in (QEMUSoundCard *card, SWVoiceIn *sw);
180 const char *audio_get_id(QEMUSoundCard *card);
H A Daudio_template.h476 void glue (AUD_close_, TYPE) (QEMUSoundCard *card, SW *sw) in glue()
479 if (audio_bug(__func__, !card)) { in glue()
480 dolog ("card=%p\n", card); in glue()
489 QEMUSoundCard *card, in glue()
500 if (audio_bug(__func__, !card || !name || !callback_fn || !as)) { in glue()
501 dolog ("card=%p name=%p callback_fn=%p as=%p\n", in glue()
502 card, name, callback_fn, as); in glue()
506 s = card->state; in glue()
527 glue (AUD_close_, TYPE) (card, sw); in glue()
551 sw->card = card; in glue()
[all …]
/qemu/docs/
H A Dqemupciserial.inf4 ; just an inf file to tell windows which pci id the serial pci card
9 ; serial card" tagged with a yellow question mark. Open properties.
100 QEMU-PCI_SERIAL_1_PORT="1x QEMU PCI Serial Card"
101 QEMU-PCI_SERIAL_2_PORT="2x QEMU PCI Serial Card"
102 QEMU-PCI_SERIAL_4_PORT="4x QEMU PCI Serial Card"
/qemu/docs/system/arm/
H A Dorangepi.rst49 based SoC, which loads the bootloader from a SD card, specified via the -sd argument
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
163 choose to let the Orange Pi PC machine load the bootloader from SD card, just like
199 Use the following U-boot commands to load and boot a Linux kernel from SD card:
229 will not conclude the NetBSD partition is larger than the emulated SD card:
252 Optionally you may save the environment variables to SD card with 'saveenv'.
H A Dsabrelite.rst87 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 Dintegratorcp.rst16 - PL181 MultiMedia Card Interface with SD card.
/qemu/hw/arm/
H A Dversatilepb.c318 DeviceState *card; in versatile_init() local
320 card = qdev_new(TYPE_SD_CARD); in versatile_init()
321 qdev_prop_set_drive_err(card, "drive", blk_by_legacy_dinfo(dinfo), in versatile_init()
323 qdev_realize_and_unref(card, qdev_get_child_bus(dev, "sd-bus"), in versatile_init()
330 DeviceState *card; in versatile_init() local
332 card = qdev_new(TYPE_SD_CARD); in versatile_init()
333 qdev_prop_set_drive_err(card, "drive", blk_by_legacy_dinfo(dinfo), in versatile_init()
335 qdev_realize_and_unref(card, qdev_get_child_bus(dev, "sd-bus"), in versatile_init()
367 /* 0x1000a000 Smart card 1. */ in versatile_init()
386 /* 0x101f0000 Smart card 0. */ in versatile_init()
H A Drealview.c256 /* Wire up MMC card detect and read-only signals. These have in realview_init()
259 * and the PL061 has them the other way about. Also the card in realview_init()
262 split_irq_from_named(dev, "card-read-only", in realview_init()
266 split_irq_from_named(dev, "card-inserted", in realview_init()
272 DeviceState *card; in realview_init() local
274 card = qdev_new(TYPE_SD_CARD); in realview_init()
275 qdev_prop_set_drive_err(card, "drive", blk_by_legacy_dinfo(dinfo), in realview_init()
277 qdev_realize_and_unref(card, qdev_get_child_bus(dev, "sd-bus"), in realview_init()
/qemu/hw/audio/
H A Dpcspk.c51 QEMUSoundCard card; member
126 s->voice = AUD_open_out(&s->card, s->voice, s_spk, s, pcspk_callback, &as); in pcspk_audio_init()
192 if (s->card.state && AUD_register_card(s_spk, &s->card, errp)) { in pcspk_realizefn()
219 DEFINE_AUDIO_PROPERTIES(PCSpkState, card),
H A Dadlib.c60 QEMUSoundCard card; member
243 AUD_remove_card (&s->card); in Adlib_fini()
258 if (!AUD_register_card ("adlib", &s->card, errp)) { in adlib_realizefn()
278 &s->card, in adlib_realizefn()
301 DEFINE_AUDIO_PROPERTIES(AdlibState, card),
/qemu/docs/system/riscv/
H A Dsifive_u.rst26 * 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
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

1234567