qubes-installer-qubes-os/anaconda/pyanaconda/isys/mem.h
2013-01-24 01:45:53 +01:00

44 lines
1.3 KiB
C

/*
* 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 <http://www.gnu.org/licenses/>.
*
* Red Hat Author(s): Ales Kozumplik <akozumpl@redhat.com>
* David Cantrell <dcantrell@redhat.com>
*/
#ifndef _MEM_H_
#define _MEM_H_
#include <glib.h>
/* 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_ */