X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnand%2Fcore.h;h=5bf9fb3d19ac1228937c3fada60ee532a6e56e9b;hb=9b29cb58acbd14ed831d68fce4d6e6a1728f8caf;hp=04510845c4b546fd736bd716c7aa490e4c60aeee;hpb=fab0dcd7e6cb8cfbf63cb41f0978902371d30205;p=openocd.git diff --git a/src/flash/nand/core.h b/src/flash/nand/core.h index 04510845c4..5bf9fb3d19 100644 --- a/src/flash/nand/core.h +++ b/src/flash/nand/core.h @@ -18,13 +18,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_NAND_CORE_H -#define FLASH_NAND_CORE_H +#ifndef OPENOCD_FLASH_NAND_CORE_H +#define OPENOCD_FLASH_NAND_CORE_H #include @@ -68,7 +66,7 @@ struct nand_device { int address_cycles; int page_size; int erase_size; - int use_raw; + bool use_raw; int num_blocks; struct nand_block *blocks; struct nand_device *next; @@ -218,7 +216,7 @@ int nand_calculate_ecc_kw(struct nand_device *nand, int nand_register_commands(struct command_context *cmd_ctx); -/* / helper for parsing a nand device command argument string */ +/** helper for parsing a nand device command argument string */ COMMAND_HELPER(nand_command_get_device, unsigned name_index, struct nand_device **nand); @@ -231,4 +229,4 @@ COMMAND_HELPER(nand_command_get_device, unsigned name_index, #define ERROR_NAND_ERROR_CORRECTION_FAILED (-1105) #define ERROR_NAND_NO_BUFFER (-1106) -#endif /* FLASH_NAND_CORE_H */ +#endif /* OPENOCD_FLASH_NAND_CORE_H */