Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
/*
 * Copyright (c) 2016, Fuzhou Rockchip Electronics Co., Ltd
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */

#ifndef __RK_FTL_API_H
#define __RK_FTL_API_H

void rk_nandc_flash_xfer_completed(void *nandc_reg);
void rk_nandc_flash_ready(void *nandc_reg);
u32 rk_nandc_get_irq_status(void *nandc_reg);
int rknand_proc_ftlread(char *page);
int FtlRead(u8 lun, u32 index, u32 sectors, u8 *buf);
int FtlWrite(u8 lun, u32 index, u32 sectors, u8 *buf);
int rk_ftl_garbage_collect(u32 mode, u32 pages);
void rk_ftl_cache_write_back(void);
int FtlDiscard(u32 index, u32 sectors);
int rk_nand_schedule_enable_config(int en);
int rk_ftl_get_capacity(void);
void rk_ftl_storage_sys_init(void);
int rk_ftl_init(void);
void rk_nand_de_init(void);
void rk_ftl_de_init(void);
void rk_nand_suspend(void);
void rk_nand_resume(void);
int rknand_get_reg_addr(unsigned long *p_nandc0, unsigned long *p_nandc1);
long rknand_sys_storage_ioctl(struct file *file, unsigned int cmd,
			      unsigned long arg);
long rk_ftl_vendor_storage_ioctl(struct file *file, unsigned int cmd,
				 unsigned long arg);
int rk_ftl_vendor_write(u32 id, void *pbuf, u32 size);
int rk_ftl_vendor_read(u32 id, void *pbuf, u32 size);
int rk_ftl_vendor_storage_init(void);
int rknand_vendor_storage_init(void);

#endif