mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 01:27:44 +00:00
Kernel: Add an SD card driver for the aarch64 port
Co-authored-by: Ollrogge <nils-ollrogge@outlook.de>
This commit is contained in:
parent
bb8092d6a1
commit
c91db6ec97
13 changed files with 1465 additions and 0 deletions
28
Kernel/Arch/aarch64/RPi/SDHostController.h
Normal file
28
Kernel/Arch/aarch64/RPi/SDHostController.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* Copyright (c) 2023, the SerenityOS developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <Kernel/Storage/SD/Registers.h>
|
||||
#include <Kernel/Storage/SD/SDHostController.h>
|
||||
|
||||
namespace Kernel::RPi {
|
||||
|
||||
class SDHostController : public ::SDHostController {
|
||||
public:
|
||||
static SDHostController& the();
|
||||
SDHostController();
|
||||
virtual ~SDHostController() override = default;
|
||||
|
||||
protected:
|
||||
// ^SDHostController
|
||||
virtual SD::HostControlRegisterMap volatile* get_register_map_base_address() override { return m_registers; }
|
||||
|
||||
private:
|
||||
SD::HostControlRegisterMap volatile* m_registers;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue