commit | 8b91a5613ca1520286b7c3ffe19ebecf144c781a | [log] [tgz] |
---|---|---|
author | Philippe Mathieu-Daudé <philmd@linaro.org> | Tue Jun 11 16:50:30 2024 +0200 |
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | Mon Jun 24 10:41:42 2024 +0200 |
tree | 1cc06f44f32d8358ab187cc86d90f002f27e22ca | |
parent | 4a829730c85a8e44f142aeca6c95b8b07742c96b [diff] |
hw/sd/sdcard: Factor sd_req_get_address() method out Extract sd_cmd_get_address() so we can re-use it in various SDProto handlers. Use CARD_CAPACITY and HWBLOCK_SHIFT definitions instead of magic values. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Cédric Le Goater <clg@redhat.com> Tested-by: Cédric Le Goater <clg@redhat.com> Message-Id: <20240621080554.18986-17-philmd@linaro.org>