1 /* 2 * Copyright (c) 2013 Heather Lee Wilson 3 * 4 * Use of this source code is governed by a MIT-style 5 * license that can be found in the LICENSE file or at 6 * https://opensource.org/licenses/MIT 7 */ 8 #pragma once 9 10 #include <stddef.h> 11 #include <sys/types.h> 12 #include <lib/norfs_inode.h> 13 14 /* Tools to help test. */ 15 16 uint32_t write_pointer; 17 uint32_t norfs_nvram_offset; 18 19 status_t find_free_block(uint32_t *ptr); 20 uint8_t block_num(uint32_t flash_pointer); 21 void dump_bank(void); 22 void wipe_fs(void); 23 status_t collect_block(uint32_t garbage_block, uint32_t *garbage_write_ptr); 24 bool get_inode(uint32_t key, struct norfs_inode **inode); 25 26