/* * This file is part of the flashrom project. * * SPDX-License-Identifier: GPL-2.0-or-later * SPDX-FileCopyrightText: 2005-2008 coresystems GmbH (Written by Stefan Reinauer for coresystems GmbH) * SPDX-FileCopyrightText: 2011-2013 Stefan Tauner * SPDX-FileCopyrightText: 2016 secunet Security Networks AG (Written by Nico Huber for secunet) */ #ifndef __LAYOUT_H__ #define __LAYOUT_H__ 1 #include #include #include /* Types and macros regarding the maximum flash space size supported by generic code. */ typedef uint32_t chipoff_t; /* Able to store any addressable offset within a supported flash memory. */ typedef uint32_t chipsize_t; /* Able to store the number of bytes of any supported flash memory. */ #define FL_MAX_CHIPOFF_BITS (24) #define FL_MAX_CHIPOFF ((chipoff_t)(1ULL<