aboutsummaryrefslogtreecommitdiff
path: root/hw/sd/sd.c
AgeCommit message (Expand)AuthorFilesLines
2024-07-02hw/sd/sdcard: Introduce sd_cmd_to_sendingdata and sd_generic_read_bytePhilippe Mathieu-Daudé1-0/+39
2024-07-02hw/sd/sdcard: Extract sd_blk_len() helperPhilippe Mathieu-Daudé1-1/+9
2024-07-02hw/sd/sdcard: Add direct reference to SDProto in SDStatePhilippe Mathieu-Daudé1-20/+17
2024-07-02hw/sd/sdcard: Simplify sd_inactive_state handlingPhilippe Mathieu-Daudé1-5/+7
2024-07-02hw/sd/sdcard: Assign SDCardStates enum valuesPhilippe Mathieu-Daudé1-10/+10
2024-07-02hw/sd/sdcard: Use READY_FOR_DATA definition instead of magic valuePhilippe Mathieu-Daudé1-1/+1
2024-07-02hw/sd/sdcard: Send NUM_WR_BLOCKS bits MSB first (ACMD22)Philippe Mathieu-Daudé1-2/+1
2024-07-02hw/sd/sdcard: Send WRITE_PROT bits MSB first (CMD30)Philippe Mathieu-Daudé1-1/+1
2024-07-02hw/sd/sdcard: Restrict SWITCH_FUNCTION to sd_transfer_state (CMD6)Philippe Mathieu-Daudé1-0/+4
2024-07-02hw/sd/sdcard: Trace requested address computed by sd_req_get_address()Philippe Mathieu-Daudé1-2/+7
2024-07-02hw/sd/sdcard: Trace block offset in READ/WRITE data accessesPhilippe Mathieu-Daudé1-2/+2
2024-07-02hw/sd/sdcard: Track last command used to help loggingPhilippe Mathieu-Daudé1-4/+8
2024-06-24hw/sd/sdcard: Add comments around registers and commandsPhilippe Mathieu-Daudé1-0/+20
2024-06-24hw/sd/sdcard: Inline BLK_READ_BLOCK / BLK_WRITE_BLOCK macrosPhilippe Mathieu-Daudé1-8/+7
2024-06-24hw/sd/sdcard: Add sd_invalid_mode_for_cmd to report invalid mode switchPhilippe Mathieu-Daudé1-32/+39
2024-06-24hw/sd/sdcard: Only call sd_req_get_address() where address is usedPhilippe Mathieu-Daudé1-6/+8
2024-06-24hw/sd/sdcard: Factor sd_req_get_address() method outPhilippe Mathieu-Daudé1-1/+9
2024-06-24hw/sd/sdcard: Only call sd_req_get_rca() where RCA is usedPhilippe Mathieu-Daudé1-1/+7
2024-06-24hw/sd/sdcard: Factor sd_req_get_rca() method outPhilippe Mathieu-Daudé1-6/+9
2024-06-24hw/sd/sdcard: Have cmd_valid_while_locked() return a boolean valuePhilippe Mathieu-Daudé1-2/+2
2024-06-24hw/sd/sdcard: Trace update of block count (CMD23)Philippe Mathieu-Daudé1-0/+1
2024-06-24hw/sd/sdcard: Remove explicit entries for illegal commandsPhilippe Mathieu-Daudé1-11/+0
2024-06-24hw/sd/sdcard: Remove ACMD6 handler for SPI modePhilippe Mathieu-Daudé1-1/+1
2024-06-24hw/sd/sdcard: Use Load/Store API to fill some CID/CSD registersPhilippe Mathieu-Daudé1-7/+2
2024-06-24hw/sd/sdcard: Use registerfield CSR::CURRENT_STATE definitionPhilippe Mathieu-Daudé1-2/+2
2024-06-24hw/sd/sdcard: Use HWBLOCK_SHIFT definition instead of magic valuesPhilippe Mathieu-Daudé1-3/+3
2024-06-24hw/sd/sdcard: Fix typo in SEND_OP_COND command namePhilippe Mathieu-Daudé1-3/+3
2024-06-24hw/sd/sdcard: Rewrite sd_cmd_ALL_SEND_CID using switch case (CMD2)Philippe Mathieu-Daudé1-5/+5
2024-06-24hw/sd/sdcard: Correct code indentationPhilippe Mathieu-Daudé1-17/+17
2024-06-24hw/sd/sdcard: Avoid OOB in sd_read_byte() during unexpected CMD switchPhilippe Mathieu-Daudé1-0/+7
2023-12-30hw/sd: Constify VMStateRichard Henderson1-3/+3
2023-11-07hw/sd: Declare QOM types using DEFINE_TYPES() macroPhilippe Mathieu-Daudé1-21/+16
2023-09-06Merge tag 'pull-aspeed-20230901' of https://github.com/legoater/qemu into sta...Stefan Hajnoczi1-133/+215
2023-09-01hw/sd: Introduce a "sd-card" SPI variant modelCédric Le Goater1-14/+40
2023-09-01hw/sd: Add sd_cmd_SET_BLOCK_COUNT() handlerPhilippe Mathieu-Daudé1-14/+16
2023-09-01hw/sd: Add sd_cmd_SEND_TUNING_BLOCK() handlerJoel Stanley1-11/+17
2023-09-01hw/sd: Add sd_cmd_SEND_RELATIVE_ADDR() handlerPhilippe Mathieu-Daudé1-13/+15
2023-09-01hw/sd: Add sd_cmd_ALL_SEND_CID() handlerPhilippe Mathieu-Daudé1-11/+12
2023-09-01hw/sd: Add sd_cmd_SEND_OP_CMD() handlerPhilippe Mathieu-Daudé1-9/+9
2023-09-01hw/sd: Add sd_cmd_GO_IDLE_STATE() handlerPhilippe Mathieu-Daudé1-12/+12
2023-09-01hw/sd: Add sd_cmd_unimplemented() handlerPhilippe Mathieu-Daudé1-9/+12
2023-09-01hw/sd: Add sd_cmd_illegal() handlerPhilippe Mathieu-Daudé1-36/+26
2023-09-01hw/sd: Introduce sd_cmd_handler typePhilippe Mathieu-Daudé1-0/+13
2023-09-01hw/sd: Move proto_name to SDProto structurePhilippe Mathieu-Daudé1-8/+27
2023-09-01hw/sd: When card is in wrong state, log which spec version is usedPhilippe Mathieu-Daudé1-2/+16
2023-09-01hw/sd: When card is in wrong state, log which state it isPhilippe Mathieu-Daudé1-3/+9
2023-09-01hw/sd/sdcard: Return ILLEGAL for CMD19/CMD23 prior SD spec v3.01Philippe Mathieu-Daudé1-2/+2
2023-08-31hw/sd: spelling fixesMichael Tokarev1-1/+1
2023-03-20replace TABs with spacesYeqi Fu1-92/+92
2022-07-12block: Change blk_{pread,pwrite}() param orderAlberto Faria1-2/+2