Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
4d840b7afThis file is pinned to the selected release. Download the original to open it in your design tool.
/* Copyright (C) 2020 NANDO authors
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
*/
#ifndef _NAND_BAD_BLOCK_H_
#define _NAND_BAD_BLOCK_H_
#include <stdint.h>
#include <stdbool.h>
void nand_bad_block_table_init();
int nand_bad_block_table_add(uint32_t page);
bool nand_bad_block_table_lookup(uint32_t page);
void *nand_bad_block_table_iter_alloc(uint32_t *page);
void *nand_bad_block_table_iter_next(void *iter, uint32_t *page);
#endif