X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fcore.h;h=929ebdbea025cd0c81d67fd280b846636b6c942f;hb=6d5b4d709cb05e8daf0350ac507b928da95d0abb;hp=90f4e61431a805c479be1169f3a638d309276fbd;hpb=9f0cba528a163645c8ecace413731c23310f2c26;p=openocd.git diff --git a/src/flash/nor/core.h b/src/flash/nor/core.h index 90f4e61431..929ebdbea0 100644 --- a/src/flash/nor/core.h +++ b/src/flash/nor/core.h @@ -16,13 +16,11 @@ * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * along with this program. If not, see . * ***************************************************************************/ -#ifndef FLASH_NOR_CORE_H -#define FLASH_NOR_CORE_H +#ifndef OPENOCD_FLASH_NOR_CORE_H +#define OPENOCD_FLASH_NOR_CORE_H #include @@ -87,6 +85,10 @@ struct flash_bank { int chip_width; /**< Width of the chip in bytes (1,2,4 bytes) */ int bus_width; /**< Maximum bus width, in bytes (1,2,4 bytes) */ + /** Default padded value used, normally this matches the flash + * erased value. Defaults to 0xFF. */ + uint8_t default_padded_value; + /** * The number of sectors on this chip. This value will * be set intially to 0, and the flash driver must set this to @@ -152,13 +154,6 @@ int default_flash_read(struct flash_bank *bank, * @returns ERROR_OK if successful; otherwise, an error code. */ int default_flash_blank_check(struct flash_bank *bank); -/** - * Provides a default blank flash memory check. Ensures the contents - * of the given bank have truly been erased. - * @param bank The flash bank. - * @returns ERROR_OK if successful; otherwise, an error code. - */ -int default_flash_mem_blank_check(struct flash_bank *bank); /** * Returns the flash bank specified by @a name, which matches the @@ -211,4 +206,4 @@ struct flash_bank *get_flash_bank_by_num_noprobe(int num); int get_flash_bank_by_addr(struct target *target, uint32_t addr, bool check, struct flash_bank **result_bank); -#endif /* FLASH_NOR_CORE_H */ +#endif /* OPENOCD_FLASH_NOR_CORE_H */