/* * \brief Secure Digital Host Controller * \author Christian Prochaska * \date 2019-09-26 */ /* * Copyright (C) 2019 Genode Labs GmbH * * This file is part of the Genode OS framework, which is distributed * under the terms of the GNU Affero General Public License version 3. */ /* local includes */ #include #include using namespace Sd_card; using namespace Genode; Driver::Driver(Env &env) : Driver_base(env.ram()), Attached_mmio(env, Imx8::SDHC_2_MMIO_BASE, Imx8::SDHC_2_MMIO_SIZE), _env(env), _irq(env, Imx8::SDHC_2_IRQ) { log("SD card detected"); log("capacity: ", card_info().capacity_mb(), " MiB"); }