http://www.spansion.com/Support/AppNotes/CFI_Spec_AN_03.pdf
http://www.spansion.com/Support/AppNotes/cfi_100_20011201.pdf
- Copyright (C) 2010-2011 Free Software Foundation, Inc.
+ Copyright (C) 2010-2016 Free Software Foundation, Inc.
Contributed by Analog Devices, Inc.
This file is part of simulators.
/* TODO: support vendor query tables. */
-#include "cconfig.h"
+#include "config.h"
#include <math.h>
#include <errno.h>
/* Figure out where our initial flash data is coming from. */
if (fd != -1 && fd_writable)
{
-#ifdef HAVE_MMAP
+#if defined (HAVE_MMAP) && defined (HAVE_POSIX_FALLOCATE)
posix_fallocate (fd, 0, cfi->dev_size);
cfi->mmap = mmap (NULL, cfi->dev_size,