/* * mem.h * * Copyright (C) 2010-2011 Red Hat, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 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, see . * * Red Hat Author(s): Ales Kozumplik * David Cantrell */ #ifndef _MEM_H_ #define _MEM_H_ #include /* The *_RAM sizes are all in KB */ #if defined(__powerpc64__) || defined(__sparc__) #define MIN_RAM 768*1024 #define GUI_INSTALL_EXTRA_RAM 512*1024 #else #define MIN_RAM 512 * 1024 #define GUI_INSTALL_EXTRA_RAM 0 * 1024 #endif #define MIN_GUI_RAM MIN_RAM + GUI_INSTALL_EXTRA_RAM #define EARLY_SWAP_RAM 896 * 1024 #define MEMINFO "/proc/meminfo" guint64 totalMemory(void); #endif /* _MEM_H_ */