1 /* 2 * Copyright (c) 2012 Travis Geiselbrecht 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 <sys/types.h> 11 12 struct flash_nor_bank { 13 addr_t base; 14 size_t len; 15 size_t page_size; 16 uint flags; 17 }; 18 19 #define FLASH_NOR_FLAG_NONE 0 20 21 const struct flash_nor_bank *flash_nor_get_bank(unsigned int bank); 22 23