X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fnand%2Fimp.h;h=c8a4ed9c5539074b4025e6ed562b9af9bf933371;hp=b381b538ddc9bad7da00642becdc2bc4eadd9d57;hb=2caa3455ada686baea01a50d092e4244c461e101;hpb=747d6f22868dd87cb54341cc22d9eb3687039735 diff --git a/src/flash/nand/imp.h b/src/flash/nand/imp.h index b381b538dd..c8a4ed9c55 100644 --- a/src/flash/nand/imp.h +++ b/src/flash/nand/imp.h @@ -12,12 +12,16 @@ * 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_IMP_H -#define FLASH_NAND_IMP_H + +#ifndef OPENOCD_FLASH_NAND_IMP_H +#define OPENOCD_FLASH_NAND_IMP_H + +#include "core.h" +#include "driver.h" + +void nand_device_add(struct nand_device *c); int nand_write_page(struct nand_device *nand, uint32_t page, uint8_t *data, uint32_t data_size, @@ -31,4 +35,4 @@ int nand_probe(struct nand_device *nand); int nand_erase(struct nand_device *nand, int first_block, int last_block); int nand_build_bbt(struct nand_device *nand, int first, int last); -#endif // FLASH_NAND_IMP_H +#endif /* OPENOCD_FLASH_NAND_IMP_H */