/*1* Ramdisk driver for Tegra X12*3* Copyright (c) 2019-2021 CTCaer4*5* This program is free software; you can redistribute it and/or modify it6* under the terms and conditions of the GNU General Public License,7* version 2, as published by the Free Software Foundation.8*9* This program is distributed in the hope it will be useful, but WITHOUT10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for12* more details.13*14* You should have received a copy of the GNU General Public License15* along with this program. If not, see <http://www.gnu.org/licenses/>.16*/1718#ifndef RAM_DISK_H19#define RAM_DISK_H2021#include <utils/types.h>2223#define RAMDISK_CLUSTER_SZ 327682425int ram_disk_init(void *ram_fs, u32 ramdisk_size);26int ram_disk_read(u32 sector, u32 sector_count, void *buf);27int ram_disk_write(u32 sector, u32 sector_count, const void *buf);2829#endif3031