ReactOS 0.4.15-dev-8219-ge8b88cf
nandflash.h
Go to the documentation of this file.
1/*
2 * PROJECT: OMAP3 NAND Flashing Utility
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: tools/nandflash/nandflash.h
5 * PURPOSE: Flashes OmapLDR, FreeLDR and a Root FS into a NAND image
6 * PROGRAMMERS: ReactOS Portable Systems Group
7 */
8
9/* INCLUDES *******************************************************************/
10
11#include <string.h>
12#include <stdio.h>
13#include <fcntl.h>
14#include <typedefs.h>
15
16/* NAND Image Sizes */
17#define NAND_PAGE_SIZE (2 * 1024) // 2 KB
18#define NAND_OOB_SIZE 64 // 64 bytes
19#define NAND_PAGES ((256 * 1024 * 1024) / NAND_PAGE_SIZE) // 256 MB
20
21/* EOF */