<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qemu/include/hw/sd, branch master</title>
<subtitle>QEMU development tree</subtitle>
<id>https://git.zx2c4.com/qemu/atom/include/hw/sd?h=master</id>
<link rel='self' href='https://git.zx2c4.com/qemu/atom/include/hw/sd?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/'/>
<updated>2024-07-16T18:26:47Z</updated>
<entry>
<title>hw/sd/sdcard: Basis for eMMC support</title>
<updated>2024-07-16T18:26:47Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>f4bug@amsat.org</email>
</author>
<published>2022-05-30T18:06:20Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=1b5a561c7376189ff0afc2d081625e33ffd09478'/>
<id>urn:sha1:1b5a561c7376189ff0afc2d081625e33ffd09478</id>
<content type='text'>
Since eMMC are soldered on boards, it is not user-creatable.

RCA register is initialized to 0x0001, per spec v4.3,
chapter 8.5 "RCA register":

  The default value of the RCA register is 0x0001.
  The value 0x0000 is reserved to set all cards into
  the Stand-by State with CMD7.

The CSD register is very similar to SD one, except
the version announced is v4.3.

eMMC CID register is slightly different from SD:
- One extra PNM (5 -&gt; 6)
- MDT is only 1 byte (2 -&gt; 1).

Signed-off-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Signed-off-by: Cédric Le Goater &lt;clg@kaod.org&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Tested-by: Cédric Le Goater &lt;clg@redhat.com&gt;
Message-Id: &lt;20240712162719.88165-2-philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>hw/sd/sdcard: Introduce set_csd/set_cid handlers</title>
<updated>2024-07-05T21:54:58Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2024-06-14T13:49:10Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=5241b759bcf1e9952a5a5503bc802d76409b4ac6'/>
<id>urn:sha1:5241b759bcf1e9952a5a5503bc802d76409b4ac6</id>
<content type='text'>
In preparation of introducing eMMC support which have
different CSD/CID structures, introduce a pair of handlers
in SDCardClass.

Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Cédric Le Goater &lt;clg@redhat.com&gt;
Tested-by: Andrew Jeffery &lt;andrew@codeconstruct.com.au&gt;
Tested-by: Cédric Le Goater &lt;clg@redhat.com&gt;
Message-Id: &lt;20240628070216.92609-82-philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>hw/sd/sdcard: Remove sd_none enum from sd_cmd_type_t</title>
<updated>2024-07-05T21:54:06Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2024-06-24T19:58:12Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=69372c7e3345f29599e040a7cc629bdf350c3518'/>
<id>urn:sha1:69372c7e3345f29599e040a7cc629bdf350c3518</id>
<content type='text'>
All handlers using the 'sd_none' enum got converted,
remove it.

Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Cédric Le Goater &lt;clg@redhat.com&gt;
Tested-by: Andrew Jeffery &lt;andrew@codeconstruct.com.au&gt;
Tested-by: Cédric Le Goater &lt;clg@redhat.com&gt;
Message-Id: &lt;20240628070216.92609-76-philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>hw/sd/sdcard: Store command type in SDProto</title>
<updated>2024-07-02T08:08:32Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2024-06-17T03:20:57Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=1ab08790bb75e40cf35002edc26672d6b0e8004e'/>
<id>urn:sha1:1ab08790bb75e40cf35002edc26672d6b0e8004e</id>
<content type='text'>
Store the command type altogether with the command handler and name.

Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Tested-by: Cédric Le Goater &lt;clg@redhat.com&gt;
Reviewed-by: Cédric Le Goater &lt;clg@redhat.com&gt;
Message-Id: &lt;20240628070216.92609-41-philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>hw/sd: Introduce a "sd-card" SPI variant model</title>
<updated>2023-09-01T09:40:04Z</updated>
<author>
<name>Cédric Le Goater</name>
<email>clg@kaod.org</email>
</author>
<published>2023-07-03T06:00:08Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=c3287c0f70dae07dd12322c5c8663f7b878826e7'/>
<id>urn:sha1:c3287c0f70dae07dd12322c5c8663f7b878826e7</id>
<content type='text'>
and replace the SDState::spi attribute with a test checking the
SDProto array of commands.

Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Signed-off-by: Cédric Le Goater &lt;clg@kaod.org&gt;
</content>
</entry>
<entry>
<title>hw/sd: Move proto_name to SDProto structure</title>
<updated>2023-09-01T09:40:04Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>f4bug@amsat.org</email>
</author>
<published>2022-05-30T17:09:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=1b4a234278f04ade4dd358224edc3defcd37fda7'/>
<id>urn:sha1:1b4a234278f04ade4dd358224edc3defcd37fda7</id>
<content type='text'>
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é &lt;f4bug@amsat.org&gt;
Reviewed-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Message-Id: &lt;20210624142209.1193073-4-f4bug@amsat.org&gt;
Signed-off-by: Cédric Le Goater &lt;clg@kaod.org&gt;
</content>
</entry>
<entry>
<title>hw: sd: allwinner-sdhost: Add sun50i-a64 SoC support</title>
<updated>2023-06-06T09:19:33Z</updated>
<author>
<name>qianfan Zhao</name>
<email>qianfanguijin@163.com</email>
</author>
<published>2023-06-06T09:19:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=2c992b88ccfc28897e5523b847c3dc1a68be0e11'/>
<id>urn:sha1:2c992b88ccfc28897e5523b847c3dc1a68be0e11</id>
<content type='text'>
A64's sd register was similar to H3, and it introduced a new register
named SAMP_DL_REG location at 0x144. The dma descriptor buffer size of
mmc2 is only 8K and the other mmc controllers has 64K.

Also fix allwinner-r40's mmc controller type.

Signed-off-by: qianfan Zhao &lt;qianfanguijin@163.com&gt;
Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
</content>
</entry>
<entry>
<title>replace TABs with spaces</title>
<updated>2023-03-20T11:43:50Z</updated>
<author>
<name>Yeqi Fu</name>
<email>fufuyqqqqqq@gmail.com</email>
</author>
<published>2023-03-15T03:26:49Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=48805df9c22a0700fba4b3b548fafaa21726ca68'/>
<id>urn:sha1:48805df9c22a0700fba4b3b548fafaa21726ca68</id>
<content type='text'>
Bring the files in line with the QEMU coding style, with spaces
for indentation.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/378
Signed-off-by: Yeqi Fu &lt;fufuyqqqqqq@gmail.com&gt;
Message-Id: &lt;20230315032649.57568-1-fufuyqqqqqq@gmail.com&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>hw/arm/npcm7xx: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE()</title>
<updated>2023-01-12T17:15:09Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2023-01-09T14:03:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=c79aa350ea70b5608dfe981b8525ac0248201ecb'/>
<id>urn:sha1:c79aa350ea70b5608dfe981b8525ac0248201ecb</id>
<content type='text'>
NPCM7XX models have been commited after the conversion from
commit 8063396bf3 ("Use OBJECT_DECLARE_SIMPLE_TYPE when possible").
Manually convert them.

Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-id: 20230109140306.23161-11-philmd@linaro.org
Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
</content>
</entry>
<entry>
<title>include/hw/pci: Split pci_device.h off pci.h</title>
<updated>2023-01-08T06:54:22Z</updated>
<author>
<name>Markus Armbruster</name>
<email>armbru@redhat.com</email>
</author>
<published>2022-12-22T10:03:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=edf5ca5dbe8031e7814ea34eb109b8f7d4024ae5'/>
<id>urn:sha1:edf5ca5dbe8031e7814ea34eb109b8f7d4024ae5</id>
<content type='text'>
PCIDeviceClass and PCIDevice are defined in pci.h.  Many users of the
header don't actually need them.  Similar structs live in their own
headers: PCIBusClass and PCIBus in pci_bus.h, PCIBridge in
pci_bridge.h, PCIHostBridgeClass and PCIHostState in pci_host.h,
PCIExpressHost in pcie_host.h, and PCIERootPortClass, PCIEPort, and
PCIESlot in pcie_port.h.

Move PCIDeviceClass and PCIDeviceClass to new pci_device.h, along with
the code that needs them.  Adjust include directives.

This also enables the next commit.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20221222100330.380143-6-armbru@redhat.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
</feed>
